SHA256
1
0
forked from pool/findutils

Accepting request 128963 from Base:System

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

OBS-URL: https://build.opensuse.org/request/show/128963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/findutils?expand=0&rev=37
This commit is contained in:
Stephan Kulow 2012-07-30 18:13:53 +00:00 committed by Git OBS Bridge
commit e933e04238
4 changed files with 28 additions and 16 deletions

View File

@ -1,13 +0,0 @@
Index: findutils-4.5.10/configure.ac
===================================================================
--- findutils-4.5.10.orig/configure.ac
+++ findutils-4.5.10/configure.ac
@@ -77,8 +77,6 @@ AC_PROG_CPP
dnl for gnulib
gl_EARLY
-AM_C_PROTOTYPES
-
AC_PROG_INSTALL
AC_PROG_RANLIB
dnl AC_PROG_LIBTOOL

16
findutils-stdio.in.patch Normal file
View 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)

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
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
- remove useless automake dependency, it was needed for selinux.patch
which has been removed since findutils 4.5.10
-------------------------------------------------------------------
Tue May 29 11:29:27 UTC 2012 - puzel@suse.com

View File

@ -35,9 +35,8 @@ 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: automake-1.12.patch
Patch5: findutils-stdio.in.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
%if 0%{?suse_version} > 1100
BuildRequires: libselinux-devel
%endif
@ -86,7 +85,6 @@ switching on the computer.
%patch5 -p1
%build
autoreconf
%ifarch %arm armv5tel armv7l armv7el armv5el
# this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ...
export DEFAULT_ARG_SIZE="(31u * 1024u)"