diff --git a/bison-stdio.in.patch b/bison-stdio.in.patch new file mode 100644 index 0000000..1297e0f --- /dev/null +++ b/bison-stdio.in.patch @@ -0,0 +1,14 @@ +Index: bison-2.5/lib/stdio.in.h +=================================================================== +--- bison-2.5.orig/lib/stdio.in.h ++++ bison-2.5/lib/stdio.in.h +@@ -181,7 +181,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/bison.changes b/bison.changes index 9d59267..aabbb54 100644 --- a/bison.changes +++ b/bison.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 17 18:55:21 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Mon Jan 9 09:54:18 UTC 2012 - aj@suse.de diff --git a/bison.spec b/bison.spec index 72c2d64..28d0e26 100644 --- a/bison.spec +++ b/bison.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: bison BuildRequires: gcc-c++ Requires(pre): %install_info_prereq @@ -30,6 +31,7 @@ Group: Development/Languages/C and C++ Url: http://www.gnu.org/software/bison/bison.html Source: bison-%{version}.tar.bz2 Source2: baselibs.conf +Patch1: bison-stdio.in.patch # Requires: m4 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -39,6 +41,7 @@ Bison is a parser generator similar to yacc(1). %prep %setup -q +%patch1 -p1 %build %configure