SPECS: apparmor-parser.spec - don't use fdopendir on ac

arekm arekm at pld-linux.org
Tue Dec 12 23:36:33 CET 2006


Author: arekm                        Date: Tue Dec 12 22:36:33 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- don't use fdopendir on ac

---- Files affected:
SPECS:
   apparmor-parser.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/apparmor-parser.spec
diff -u SPECS/apparmor-parser.spec:1.6 SPECS/apparmor-parser.spec:1.7
--- SPECS/apparmor-parser.spec:1.6	Tue Dec 12 16:44:39 2006
+++ SPECS/apparmor-parser.spec	Tue Dec 12 23:36:27 2006
@@ -12,6 +12,7 @@
 # Source0-md5:	cbb25435e4353b10b5fdd96f80c854b9
 Source1:	%{name}.init
 Patch0:		%{name}-pld.patch
+Patch1:		%{name}-no-fdopendir.patch
 URL:		http://forge.novell.com/modules/xfmod/project/?apparmor
 BuildRequires:	bash
 BuildRequires:	bison
@@ -34,6 +35,8 @@
 %prep
 %setup -q -n %{name}-%{_ver}
 %patch0 -p1
+echo 'int main() { fdopendir(0); }' > test-fdopendir.c
+%{__cc} test-fdopendir.c -o test-fdopendir || patch -p1 < %{PATCH1} || exit 1
 
 %build
 %{__make} \
@@ -85,6 +88,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2006/12/12 22:36:27  arekm
+- don't use fdopendir on ac
+
 Revision 1.6  2006/12/12 15:44:39  arekm
 - add init script
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/apparmor-parser.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list