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 \