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:
parent
0046114810
commit
3a51a4ab67
14
gzip-stdio.in.patch
Normal file
14
gzip-stdio.in.patch
Normal 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@
|
@ -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
|
Tue Feb 7 21:33:35 UTC 2012 - rschweikert@suse.com
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ Patch2: zmore.diff
|
|||||||
Patch3: non-exec-stack.diff
|
Patch3: non-exec-stack.diff
|
||||||
Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable.diff
|
Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable.diff
|
||||||
Patch6: zdiff.diff
|
Patch6: zdiff.diff
|
||||||
|
Patch7: gzip-stdio.in.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -47,6 +48,7 @@ times.
|
|||||||
%patch3
|
%patch3
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch6
|
%patch6
|
||||||
|
%patch7 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
|
CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
|
||||||
|
Loading…
Reference in New Issue
Block a user