SHA256
3
0
forked from pool/bison

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
This commit is contained in:
Ismail Dönmez 2012-08-02 11:30:16 +00:00 committed by Git OBS Bridge
parent 1a4813ff12
commit 7638c43a8b
3 changed files with 22 additions and 0 deletions

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

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

View File

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

View File

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