forked from pool/findutils
Accepting request 128958 from home:a_jaeger:FactoryFix
Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/128958 OBS-URL: https://build.opensuse.org/package/show/Base:System/findutils?expand=0&rev=34
This commit is contained in:
parent
972977e6de
commit
f51b865a44
16
findutils-stdio.in.patch
Normal file
16
findutils-stdio.in.patch
Normal file
@ -0,0 +1,16 @@
|
||||
Index: findutils-4.5.10/gnulib/lib/stdio.in.h
|
||||
===================================================================
|
||||
--- findutils-4.5.10.orig/gnulib/lib/stdio.in.h
|
||||
+++ findutils-4.5.10/gnulib/lib/stdio.in.h
|
||||
@@ -178,9 +178,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@
|
||||
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 26 07:24:20 UTC 2012 - aj@suse.de
|
||||
|
||||
- Fix build with missing gets declaration (glibc 2.16)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 30 17:13:20 UTC 2012 - sweet_f_a@gmx.de
|
||||
|
||||
|
@ -35,6 +35,7 @@ Patch1: findutils-4.4.2-xautofs.patch
|
||||
Patch2: findutils-4.4.2-updatedb.patch
|
||||
Patch3: findutils-4.5.10-prune_unknown.patch
|
||||
Patch4: findutils-4.5.10-updatedb_ignore_nfsv4.patch
|
||||
Patch5: findutils-stdio.in.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 1100
|
||||
BuildRequires: libselinux-devel
|
||||
@ -81,6 +82,7 @@ switching on the computer.
|
||||
%patch2
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
%ifarch %arm armv5tel armv7l armv7el armv5el
|
||||
|
Loading…
Reference in New Issue
Block a user