diff --git a/openscap-stdio.h.patch b/openscap-stdio.h.patch new file mode 100644 index 0000000..8e38fac --- /dev/null +++ b/openscap-stdio.h.patch @@ -0,0 +1,14 @@ +Index: openscap-0.8.2/lib/stdio.in.h +=================================================================== +--- openscap-0.8.2.orig/lib/stdio.in.h ++++ openscap-0.8.2/lib/stdio.in.h +@@ -733,7 +733,9 @@ _GL_CXXALIASWARN (gets); + /* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ ++# if HAVE_RAW_DECL_GETS + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++# endif + #endif + + diff --git a/openscap.changes b/openscap.changes index 750c90b..daa93a0 100644 --- a/openscap.changes +++ b/openscap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jul 28 14:24:46 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Fri Mar 30 16:21:21 CEST 2012 - meissner@suse.de diff --git a/openscap.spec b/openscap.spec index 6450b56..d89ff49 100644 --- a/openscap.spec +++ b/openscap.spec @@ -25,6 +25,7 @@ Release: 1.0 Source: http://www.open-scap.org/download/%name-%version.tar.gz Source1: oscap-scan.init Source2: sysconfig.oscap-scan +Patch1: openscap-stdio.h.patch Url: http://www.open-scap.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libacl-devel @@ -138,6 +139,7 @@ commonly used and require additional dependencies. %prep %setup -q +%patch1 -p1 %build