Accepting request 128245 from Base:System

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

OBS-URL: https://build.opensuse.org/request/show/128245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/m4?expand=0&rev=25
This commit is contained in:
Ismail Dönmez 2012-07-21 10:30:24 +00:00 committed by Git OBS Bridge
commit a3fdc6f856
3 changed files with 21 additions and 0 deletions

14
m4-stdio.in.patch Normal file
View File

@ -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@

View File

@ -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

View File

@ -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 \