SHA256
1
0
forked from pool/gzip

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
This commit is contained in:
Marcus Meissner 2012-07-18 15:54:15 +00:00 committed by Git OBS Bridge
parent 0046114810
commit 3a51a4ab67
3 changed files with 21 additions and 0 deletions

14
gzip-stdio.in.patch Normal file
View File

@ -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@

View File

@ -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

View File

@ -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 \