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 \