packages: bind/bind.spec - disable epoll on ac due 2.4 kernels

glen glen at pld-linux.org
Fri Jul 8 18:19:48 CEST 2011


Author: glen                         Date: Fri Jul  8 16:19:48 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- disable epoll on ac due 2.4 kernels

---- Files affected:
packages/bind:
   bind.spec (1.319 -> 1.320) 

---- Diffs:

================================================================
Index: packages/bind/bind.spec
diff -u packages/bind/bind.spec:1.319 packages/bind/bind.spec:1.320
--- packages/bind/bind.spec:1.319	Fri Jul  8 18:09:08 2011
+++ packages/bind/bind.spec	Fri Jul  8 18:19:43 2011
@@ -11,7 +11,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
@@ -69,6 +78,7 @@
 %{?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
@@ -370,6 +380,7 @@
 	--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
@@ -620,6 +631,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.320  2011/07/08 16:19:43  glen
+- disable epoll on ac due 2.4 kernels
+
 Revision 1.319  2011/07/08 16:09:08  glen
 - adapter, preserve timestamps
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bind/bind.spec?r1=1.319&r2=1.320&f=u



More information about the pld-cvs-commit mailing list