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