From 94e87e40ce5cbb2dc4dd8f678757c61f47a5f946177fd8bda3518e020cf5dbc0 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Fri, 27 Jul 2012 21:29:06 +0000 Subject: [PATCH] Accepting request 129130 from home:a_jaeger:FactoryFix Add missing sys/resource.h include (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/129130 OBS-URL: https://build.opensuse.org/package/show/network:utilities/wget?expand=0&rev=26 --- wget-stdio.h.patch | 17 +++++++++++++++++ wget.changes | 5 +++++ wget.spec | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 wget-stdio.h.patch diff --git a/wget-stdio.h.patch b/wget-stdio.h.patch new file mode 100644 index 0000000..5ad4d93 --- /dev/null +++ b/wget-stdio.h.patch @@ -0,0 +1,17 @@ +Index: wget-1.13.4/lib/stdio.in.h +=================================================================== +--- wget-1.13.4.orig/lib/stdio.in.h ++++ wget-1.13.4/lib/stdio.in.h +@@ -694,10 +694,12 @@ _GL_CXXALIAS_SYS (gets, char *, (char *s + # undef gets + # endif + _GL_CXXALIASWARN (gets); ++# if HAVE_RAW_DECL_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/wget.changes b/wget.changes index 0ee0212..813ca60 100644 --- a/wget.changes +++ b/wget.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 27 20:03:31 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Wed Mar 21 19:44:53 UTC 2012 - dimstar@opensuse.org diff --git a/wget.spec b/wget.spec index b667a83..f13ad10 100644 --- a/wget.spec +++ b/wget.spec @@ -29,6 +29,7 @@ Patch0: wgetrc.patch # PATCH-FEATURE-UPSTREAM wget-libproxy.patch dimstar@opensuse.org -- Add libproxy support to wget Patch1: wget-libproxy.patch Patch3: wget-sni.patch +Patch4: wget-stdio.h.patch BuildRequires: libpng-devel %if 0%{suse_version} > 1110 BuildRequires: libproxy-devel @@ -51,6 +52,7 @@ This can be done in script files or via the command line. %patch1 %endif %patch3 +%patch4 -p1 %build %if 0%{suse_version} > 1110