Accepting request 128703 from Base:System

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

OBS-URL: https://build.opensuse.org/request/show/128703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtasn1?expand=0&rev=22
This commit is contained in:
Stephan Kulow 2012-07-23 08:14:22 +00:00 committed by Git OBS Bridge
parent ccf4aa2774
commit e4307b5a57
3 changed files with 25 additions and 0 deletions

18
libtasn1-stdio.h.patch Normal file
View File

@ -0,0 +1,18 @@
Index: libtasn1-2.12/gl/stdio.in.h
===================================================================
--- libtasn1-2.12.orig/gl/stdio.in.h
+++ libtasn1-2.12/gl/stdio.in.h
@@ -710,11 +710,13 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s
_GL_CXXALIAS_SYS (gets, char *, (char *s));
# undef gets
# endif
+# if HAVE_RAW_DECL_GETS
_GL_CXXALIASWARN (gets);
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+# endif
#endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 22 06:25:15 UTC 2012 - aj@suse.de
- Fix build with missing gets declaration (glibc 2.16)
-------------------------------------------------------------------
Fri Jun 29 14:45:07 UTC 2012 - cfarrell@suse.com

View File

@ -27,6 +27,7 @@ License: LGPL-2.1+ and GPL-3.0
Group: Productivity/Networking/Security
Source: %{name}-%{version}.tar.bz2
Source99: baselibs.conf
Patch1: libtasn1-stdio.h.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
@ -57,6 +58,7 @@ http://www.gnutls.org
%prep
%setup
%patch1 -p1
%build
%configure --disable-static