From 49b7fe1d279f2f2012ed5f953e64cd75177f240270cbb6881b07f77382ecc4a5 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 18 Jul 2012 16:03:00 +0000 Subject: [PATCH] Accepting request 128157 from home:a_jaeger:FactoryFix Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/128157 OBS-URL: https://build.opensuse.org/package/show/Base:System/m4?expand=0&rev=23 --- m4-stdio.in.patch | 14 ++++++++++++++ m4.changes | 5 +++++ m4.spec | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 m4-stdio.in.patch diff --git a/m4-stdio.in.patch b/m4-stdio.in.patch new file mode 100644 index 0000000..ebd2e6a --- /dev/null +++ b/m4-stdio.in.patch @@ -0,0 +1,14 @@ +Index: m4-1.4.16/lib/stdio.in.h +=================================================================== +--- m4-1.4.16.orig/lib/stdio.in.h ++++ m4-1.4.16/lib/stdio.in.h +@@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets ++#if HAVE_RAW_DECL_GETS + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#endif + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/m4.changes b/m4.changes index f188933..63fe264 100644 --- a/m4.changes +++ b/m4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 17 19:07:25 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Wed May 30 21:00:37 UTC 2012 - sweet_f_a@gmx.de diff --git a/m4.spec b/m4.spec index a495916..8ab18af 100644 --- a/m4.spec +++ b/m4.spec @@ -26,6 +26,7 @@ License: GPL-3.0+ Group: Development/Languages/Other Url: http://www.gnu.org/software/m4/ Source: http://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.bz2 +Patch1: m4-stdio.in.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -33,6 +34,7 @@ GNU m4 is an implementation of the traditional Unix macro processor. %prep %setup -q +%patch1 -p1 %build %configure \