From 3a51a4ab6718a8369928bcd45d90eda24f14bf8e7825d4540bc7ae0353f09776 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 18 Jul 2012 15:54:15 +0000 Subject: [PATCH] Accepting request 128155 from home:a_jaeger:FactoryFix Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/128155 OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=18 --- gzip-stdio.in.patch | 14 ++++++++++++++ gzip.changes | 5 +++++ gzip.spec | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 gzip-stdio.in.patch diff --git a/gzip-stdio.in.patch b/gzip-stdio.in.patch new file mode 100644 index 0000000..d3f98d7 --- /dev/null +++ b/gzip-stdio.in.patch @@ -0,0 +1,14 @@ +Index: gzip-1.4/lib/stdio.in.h +=================================================================== +--- gzip-1.4.orig/lib/stdio.in.h ++++ gzip-1.4/lib/stdio.in.h +@@ -125,7 +125,9 @@ extern int fclose (FILE *stream) _GL_ARG + 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/gzip.changes b/gzip.changes index 4078328..1508a08 100644 --- a/gzip.changes +++ b/gzip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 17 19:00:13 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Tue Feb 7 21:33:35 UTC 2012 - rschweikert@suse.com diff --git a/gzip.spec b/gzip.spec index 6c63897..614a45e 100644 --- a/gzip.spec +++ b/gzip.spec @@ -31,6 +31,7 @@ Patch2: zmore.diff Patch3: non-exec-stack.diff Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable.diff Patch6: zdiff.diff +Patch7: gzip-stdio.in.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -47,6 +48,7 @@ times. %patch3 %patch4 -p1 %patch6 +%patch7 -p1 %build CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \