From 7638c43a8b21b66f51ca52ac3286aeb4b063b0683b2b883574ec2a0cf8188237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 2 Aug 2012 11:30:16 +0000 Subject: [PATCH] Accepting request 128154 from home:a_jaeger:FactoryFix Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/128154 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/bison?expand=0&rev=18 --- bison-stdio.in.patch | 14 ++++++++++++++ bison.changes | 5 +++++ bison.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 bison-stdio.in.patch 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