From f51b865a448f86fa37fa95c0f4d83762d9f7bf4c22a5a77988a5976947ec82a2 Mon Sep 17 00:00:00 2001 From: Robert Milasan Date: Thu, 26 Jul 2012 07:56:25 +0000 Subject: [PATCH] Accepting request 128958 from home:a_jaeger:FactoryFix Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/128958 OBS-URL: https://build.opensuse.org/package/show/Base:System/findutils?expand=0&rev=34 --- findutils-stdio.in.patch | 16 ++++++++++++++++ findutils.changes | 5 +++++ findutils.spec | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 findutils-stdio.in.patch diff --git a/findutils-stdio.in.patch b/findutils-stdio.in.patch new file mode 100644 index 0000000..ffdd805 --- /dev/null +++ b/findutils-stdio.in.patch @@ -0,0 +1,16 @@ +Index: findutils-4.5.10/gnulib/lib/stdio.in.h +=================================================================== +--- findutils-4.5.10.orig/gnulib/lib/stdio.in.h ++++ findutils-4.5.10/gnulib/lib/stdio.in.h +@@ -178,9 +178,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not + /* 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 + #undef gets + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +- ++#endif + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) diff --git a/findutils.changes b/findutils.changes index 8d0da0b..bbec9de 100644 --- a/findutils.changes +++ b/findutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 26 07:24:20 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Wed May 30 17:13:20 UTC 2012 - sweet_f_a@gmx.de diff --git a/findutils.spec b/findutils.spec index 28eb240..d73f161 100644 --- a/findutils.spec +++ b/findutils.spec @@ -35,6 +35,7 @@ Patch1: findutils-4.4.2-xautofs.patch Patch2: findutils-4.4.2-updatedb.patch Patch3: findutils-4.5.10-prune_unknown.patch Patch4: findutils-4.5.10-updatedb_ignore_nfsv4.patch +Patch5: findutils-stdio.in.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1100 BuildRequires: libselinux-devel @@ -81,6 +82,7 @@ switching on the computer. %patch2 %patch3 %patch4 +%patch5 -p1 %build %ifarch %arm armv5tel armv7l armv7el armv5el