From f95516276c4a6a2f05852a344899cddf1adfe0d7b080d5c8d1ff7e28c44b5947 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 18 Jul 2012 15:12:52 +0000 Subject: [PATCH] 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 --- diffutils-stdio.in.patch | 19 +++++++++++++++++++ diffutils.changes | 5 +++++ diffutils.spec | 3 +++ 3 files changed, 27 insertions(+) create mode 100644 diffutils-stdio.in.patch diff --git a/diffutils-stdio.in.patch b/diffutils-stdio.in.patch new file mode 100644 index 0000000..117ade4 --- /dev/null +++ b/diffutils-stdio.in.patch @@ -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@ diff --git a/diffutils.changes b/diffutils.changes index 5d53538..4c8deff 100644 --- a/diffutils.changes +++ b/diffutils.changes @@ -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 diff --git a/diffutils.spec b/diffutils.spec index 8f610ef..2a27564 100644 --- a/diffutils.spec +++ b/diffutils.spec @@ -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