From e7ac447ca1a5f3043c4f1d5188863ff2adafb605adcd5512170eb9865626fdc0 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Sat, 28 Jul 2012 10:06:53 +0000 Subject: [PATCH] Accepting request 129047 from home:a_jaeger:FactoryFix Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/129047 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=37 --- augeas-stdio.h.patch | 14 ++++++++++++++ augeas.changes | 5 +++++ augeas.spec | 4 ++++ 3 files changed, 23 insertions(+) create mode 100644 augeas-stdio.h.patch diff --git a/augeas-stdio.h.patch b/augeas-stdio.h.patch new file mode 100644 index 0000000..e137d91 --- /dev/null +++ b/augeas-stdio.h.patch @@ -0,0 +1,14 @@ +Index: augeas-0.10.0/gnulib/lib/stdio.in.h +=================================================================== +--- augeas-0.10.0.orig/gnulib/lib/stdio.in.h ++++ augeas-0.10.0/gnulib/lib/stdio.in.h +@@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets ++#if HAVE_RAW_DECL_GETS + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#endif + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/augeas.changes b/augeas.changes index 2656db5..8f4c4f4 100644 --- a/augeas.changes +++ b/augeas.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 27 06:57:31 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Sat Mar 17 14:54:10 UTC 2012 - jengelh@medozas.de diff --git a/augeas.spec b/augeas.spec index 4d07103..cbade31 100644 --- a/augeas.spec +++ b/augeas.spec @@ -14,6 +14,8 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: augeas Version: 0.10.0 Release: 0 @@ -27,6 +29,7 @@ Patch0: augeas-modprobe-lense.patch # PATCH-FIX-OPENSUSE bnc-729491-recognize-suse-sysconfig-files.patch [bnc#729491] Patch1: bnc-729491-recognize-suse-sysconfig-files.patch Patch2: augeas-pkgdeps.diff +Patch3: augeas-stdio.h.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glib2-devel BuildRequires: libxml2-devel @@ -101,6 +104,7 @@ modifying the official lenses, or when creating new ones. %patch0 -p1 %patch1 -p1 %patch -P 2 -p1 +%patch3 -p1 %build export CFLAGS="-Wno-error $RPM_OPT_FLAGS"