From e4307b5a57f746f0f64dc37d1dfc8ed6237df07ea3303c00aab8f551cbe8aee7 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 23 Jul 2012 08:14:22 +0000 Subject: [PATCH] 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 --- libtasn1-stdio.h.patch | 18 ++++++++++++++++++ libtasn1.changes | 5 +++++ libtasn1.spec | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 libtasn1-stdio.h.patch diff --git a/libtasn1-stdio.h.patch b/libtasn1-stdio.h.patch new file mode 100644 index 0000000..2e0ea4f --- /dev/null +++ b/libtasn1-stdio.h.patch @@ -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 + + diff --git a/libtasn1.changes b/libtasn1.changes index 768322d..47cc3d4 100644 --- a/libtasn1.changes +++ b/libtasn1.changes @@ -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 diff --git a/libtasn1.spec b/libtasn1.spec index 92da6f3..1e71ac5 100644 --- a/libtasn1.spec +++ b/libtasn1.spec @@ -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