Accepting request 128196 from home:a_jaeger:FactoryFix
Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/128196 OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=38
This commit is contained in:
parent
3e9f9a49ef
commit
0e0e26f785
15
cpio-stdio.in.patch
Normal file
15
cpio-stdio.in.patch
Normal 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@
|
@ -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
|
||||
|
||||
|
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user