3
0
forked from pool/diffutils

Accepting request 128169 from Base:System

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

OBS-URL: https://build.opensuse.org/request/show/128169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffutils?expand=0&rev=21
This commit is contained in:
Stephan Kulow 2012-07-18 15:12:52 +00:00 committed by Git OBS Bridge
parent cce418b8c2
commit f95516276c
3 changed files with 27 additions and 0 deletions

19
diffutils-stdio.in.patch Normal file
View File

@ -0,0 +1,19 @@
Index: diffutils-3.2/lib/stdio.in.h
===================================================================
--- diffutils-3.2.orig/lib/stdio.in.h
+++ diffutils-3.2/lib/stdio.in.h
@@ -693,12 +693,14 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s
_GL_CXXALIAS_SYS (gets, char *, (char *s));
# undef gets
# endif
+#if HAVE_RAW_DECL_GETS
_GL_CXXALIASWARN (gets);
/* 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. */
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
+#endif
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 17 19:04:29 UTC 2012 - aj@suse.de
- Fix build with missing gets declaration (glibc 2.16)
-------------------------------------------------------------------
Mon Feb 27 16:22:01 CET 2012 - jslaby@suse.de

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: diffutils
Url: http://www.gnu.org/software/diffutils/
Provides: diff
@ -26,6 +27,7 @@ Summary: GNU diff Utilities
License: GFDL-1.2 ; GPL-3.0+
Group: Productivity/Text/Utilities
Source: %{name}-%{version}.tar.xz
Patch1: diffutils-stdio.in.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xz
@ -35,6 +37,7 @@ make source code patches, for instance.
%prep
%setup -q
%patch1 -p1
%build
%configure