diff mbox

[2/6] wget: Fix compatibility with (e)glibc 2.16+

Message ID 3f74023f9b7f32b7a407ee8f1f68728490ac007f.1409312414.git.kibo@prevas.dk
State Under Review
Delegated to: Kim
Headers show

Commit Message

Kim Bøndergaard Aug. 29, 2014, 12:30 p.m. UTC
From: Esben Haabendal <esben.haabendal@prevas.dk>

Signed-off-by: Esben Haabendal <esben.haabendal@prevas.dk>
---
 recipes/wget/wget-1.13.4/remove-gets.patch | 23 +++++++++++++++++++++++
 recipes/wget/wget_1.13.4.oe                |  2 ++
 2 files changed, 25 insertions(+)
 create mode 100644 recipes/wget/wget-1.13.4/remove-gets.patch
diff mbox

Patch

diff --git a/recipes/wget/wget-1.13.4/remove-gets.patch b/recipes/wget/wget-1.13.4/remove-gets.patch
new file mode 100644
index 0000000..ccc821a
--- /dev/null
+++ b/recipes/wget/wget-1.13.4/remove-gets.patch
@@ -0,0 +1,23 @@ 
+ISO C11 removes the specification of gets() from the C language, eglibc 2.16+ removed it
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+
+Upstream-Status: Pending
+Index: wget-1.13.4/lib/stdio.in.h
+===================================================================
+--- wget-1.13.4.orig/lib/stdio.in.h	2011-09-13 01:15:14.000000000 -0700
++++ wget-1.13.4/lib/stdio.in.h		2012-07-04 12:22:45.749092515 -0700
+@@ -693,11 +693,13 @@
+ _GL_CXXALIAS_SYS (gets, char *, (char *s));
+ #  undef gets
+ # endif
++# if defined 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
+ 
+ 
\ No newline at end of file
diff --git a/recipes/wget/wget_1.13.4.oe b/recipes/wget/wget_1.13.4.oe
index a863ce3..f0b5d70 100644
--- a/recipes/wget/wget_1.13.4.oe
+++ b/recipes/wget/wget_1.13.4.oe
@@ -1 +1,3 @@ 
 require wget.inc
+
+SRC_URI += "file://remove-gets.patch"