SHA256
3
0
forked from pool/cpio

Accepting request 128242 from Archiving

Fix build with missing gets declaration (glibc 2.16) (forwarded request 128196 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/128242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpio?expand=0&rev=39
This commit is contained in:
Stephan Kulow 2012-07-20 08:16:11 +00:00 committed by Git OBS Bridge
commit 9fef393936
3 changed files with 23 additions and 0 deletions

15
cpio-stdio.in.patch Normal file
View File

@ -0,0 +1,15 @@
Index: cpio-2.11/gnu/stdio.in.h
===================================================================
--- cpio-2.11.orig/gnu/stdio.in.h
+++ cpio-2.11/gnu/stdio.in.h
@@ -138,8 +138,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@

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 18 08:31:24 UTC 2012 - aj@suse.de
- Fix build with missing gets declaration (glibc 2.16)
-------------------------------------------------------------------
Thu Feb 2 13:31:13 UTC 2012 - rschweikert@suse.com

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cpio
Url: http://www.gnu.org/software/cpio/cpio.html
BuildRequires: autoconf
@ -40,6 +41,7 @@ Patch18: cpio-default_tape_dev.patch
#PATCH-FIX-UPSTREAM cpio-2.10-close_files_after_copy.patch
Patch20: cpio-close_files_after_copy.patch
Patch21: cpio-pattern-file-sigsegv.patch
Patch22: cpio-stdio.in.patch
PreReq: %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang = %{version}
@ -76,6 +78,7 @@ Authors:
%patch18
%patch20
%patch21 -p1
%patch22 -p1
#chmod 755 .
#chmod u+w *
#chmod a+r *