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
This commit is contained in:
Andreas Stieger 2012-07-27 21:29:06 +00:00 committed by Git OBS Bridge
parent 415a56c43e
commit 94e87e40ce
3 changed files with 24 additions and 0 deletions

17
wget-stdio.h.patch Normal file
View File

@ -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

View File

@ -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

View File

@ -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