From 4b04d0f2e294f63ae9977c01fce800f589b257cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 8 Jul 2011 16:19:43 +0000 Subject: [PATCH] - disable epoll on ac due 2.4 kernels Changed files: bind.spec -> 1.320 --- bind.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bind.spec b/bind.spec index 94559e9..e783ab7 100644 --- a/bind.spec +++ b/bind.spec @@ -10,7 +10,16 @@ %bcond_without static_libs # build without static libraries %bcond_without tests # perform tests %bcond_with hip # build with HIP RR support -# +%if "%{pld_release}" == "ac" +%bcond_with epoll # enable epoll support +# there didn't exist x86_64 2.4 kernel in PLD, so can safely enable epoll +%ifarch %{x8664} +%define with_epoll 1 +%endif +%else +%bcond_without epoll # disable epoll support +%endif + %define ver 9.8.0 %if 1 %define pverdot .P4 @@ -68,6 +77,7 @@ BuildRequires: libtool %{?with_ldap:BuildRequires: openldap-devel} %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} %{?with_sql:BuildRequires: postgresql-devel} +BuildRequires: rpm >= 4.4.9-56 BuildRequires: rpmbuild(macros) >= 1.268 %{?with_sql:BuildRequires: unixODBC-devel} Requires(post,preun): /sbin/chkconfig @@ -369,6 +379,7 @@ cp -f /usr/share/automake/config.* . --with-dlz-odbc=no \ --with-dlz-stub=yes \ --enable-largefile \ + %{!?with_epoll:--disable-epoll --disable-devpoll} \ %{!?with_static_libs:--enable-static=no} \ --enable-threads \ --enable-getifaddrs -- 2.44.0