forked from pool/bison
Accepting request 129649 from devel:tools:compiler
Fix build with missing gets declaration (glibc 2.16) (forwarded request 128154 from a_jaeger) OBS-URL: https://build.opensuse.org/request/show/129649 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bison?expand=0&rev=20
This commit is contained in:
commit
25f50eb66f
14
bison-stdio.in.patch
Normal file
14
bison-stdio.in.patch
Normal 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@
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user