diff --git a/cpio-stdio.in.patch b/cpio-stdio.in.patch new file mode 100644 index 0000000..cae7903 --- /dev/null +++ b/cpio-stdio.in.patch @@ -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@ diff --git a/cpio.changes b/cpio.changes index ab0d5f2..390d76b 100644 --- a/cpio.changes +++ b/cpio.changes @@ -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 diff --git a/cpio.spec b/cpio.spec index 51d20c8..ab2c04d 100644 --- a/cpio.spec +++ b/cpio.spec @@ -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 *