From patchwork Fri Aug 29 12:30:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 384218 X-Patchwork-Delegate: kiho@prevas.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 1656B140131 for ; Fri, 29 Aug 2014 22:31:02 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 2A6F83FD95 for ; Fri, 29 Aug 2014 14:31:00 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id 41B263FD93 for ; Fri, 29 Aug 2014 14:30:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1747; q=dns/txt; s=ironport1; t=1409315459; x=1440851459; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=Q/xNHhenLloDBGVFE+dor0cP7ka1gchy6oaP2cK1Dfo=; b=Q7V4o+Pf0xj5TlCr8okgh5sLytvAX7yX13NdXzvhWTRhtCcFQ8qDxRx7 YQ60fCT3UudeOPB5d1Y7gpPZ5Im2NCT7kdlhSO4pcYTEe1aH45hhSfFfn 7V6iMFYhGHjI67nLzj/mwjxPVO9didcar5n5cdHxU+0QCV01dViknSqgR c=; X-IronPort-AV: E=Sophos;i="5.04,424,1406584800"; d="scan'208";a="5030401" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 29 Aug 2014 14:30:59 +0200 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Fri, 29 Aug 2014 14:30:58 +0200 Received: by localhost (Postfix, from userid 30019) id E48DF681678; Fri, 29 Aug 2014 12:30:57 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: Subject: [PATCH 2/6] wget: Fix compatibility with (e)glibc 2.16+ Date: Fri, 29 Aug 2014 12:30:51 +0000 Message-ID: <3f74023f9b7f32b7a407ee8f1f68728490ac007f.1409312414.git.kibo@prevas.dk> X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 Cc: Esben Haabendal X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Esben Haabendal Signed-off-by: Esben Haabendal --- 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 --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 + +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"