From patchwork Mon Mar 18 19:00:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Kjaergaard X-Patchwork-Id: 228773 X-Patchwork-Delegate: esben@haabendal.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 B10012C00B0 for ; Tue, 19 Mar 2013 06:00:29 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 7C2C43FA78 for ; Mon, 18 Mar 2013 20:00:28 +0100 (CET) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail02.prevas.se (mail02.prevas.se [62.95.78.10]) by hugin.dotsrc.org (Postfix) with ESMTPS id 573243FA78 for ; Mon, 18 Mar 2013 20:00:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=3534; q=dns/txt; s=ironport2; t=1363633227; x=1395169227; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=I0xjbSN7ZXR2iv/xEolWWHXSPier6+A+b7GL6kogW4I=; b=b/hrJ/ICeWunGWViKtElzc7IAW/Go8KBNiB+i5y65Op1+3/LgL4KAeOl NpGtZsNkFkHlPq6FeyK9iciLlangxOqzanK+Xo4MYsF9ax/XRWAgjdT2S 1iIwluT4lw9OwFs9Xg9eaXMcGuhOvGg2Q0Vo29eh6Lyu5/hF/Q9DZIXaS o=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq9QAC1jR1FXOZe5PGdsb2JhbABDxRgEAYFVFwMBAQEBODWCJAEBBVYjEBwDAQIdEiEYCgwIGYgCAxMIuC0NiVcEjEyBLoEbB4NAA5R+gWCLaIglOw X-IronPort-AV: E=Sophos;i="4.84,865,1355094000"; d="scan'208";a="2284711" Received: from 87-57-151-185-dynamic.dk.customer.tdc.net (HELO arh116.home) ([87.57.151.185]) by mail02.prevas.se with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 Mar 2013 20:00:26 +0100 From: Jacob Barsoe To: dev@oe-lite.org Subject: [PATCH 1/2] iproute2: Add version 3.8.0 Date: Mon, 18 Mar 2013 20:00:20 +0100 Message-Id: <67dfc569207121d72bcf6a75f8748cf249806529.1363632977.git.jacob.kjaergaard@prevas.dk> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: 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: , MIME-Version: 1.0 Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Jacob Kjaergaard --- ...tion-error-of-m_ipt.c-with-Werror-enabled.patch | 44 ++++++++++++++++++++ recipes/iproute2/iproute2_3.8.0.oe | 7 ++++ recipes/iproute2/iproute2_3.8.0.oe.sig | 1 + 3 files changed, 52 insertions(+) create mode 100644 recipes/iproute2/iproute2-3.8.0/0001-Fix-compilation-error-of-m_ipt.c-with-Werror-enabled.patch create mode 100644 recipes/iproute2/iproute2_3.8.0.oe create mode 100644 recipes/iproute2/iproute2_3.8.0.oe.sig diff --git a/recipes/iproute2/iproute2-3.8.0/0001-Fix-compilation-error-of-m_ipt.c-with-Werror-enabled.patch b/recipes/iproute2/iproute2-3.8.0/0001-Fix-compilation-error-of-m_ipt.c-with-Werror-enabled.patch new file mode 100644 index 0000000..aa74c67 --- /dev/null +++ b/recipes/iproute2/iproute2-3.8.0/0001-Fix-compilation-error-of-m_ipt.c-with-Werror-enabled.patch @@ -0,0 +1,44 @@ + +From 9235195666af7d887771cf557ef2bd3f00b9ecc8 Mon Sep 17 00:00:00 2001 +From: Vijay Subramanian +Date: Tue, 26 Feb 2013 09:12:07 +0000 +Subject: [PATCH] Fix compilation error of m_ipt.c with -Werror enabled + +Commit (5a650703d47e10aa386406c855eff5a593b2120b Makefile: make warnings into +errors ) causes the following build error. + +gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes +-Wmissing-declarations -Wold-style-definition -O2 -I../include +-DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" +-D_GNU_SOURCE -DCONFIG_GACT -DCONFIG_GACT_PROB -DIPT_LIB_DIR=\"/lib/xtables\" +-DYY_NO_INPUT -c -o m_ipt.o m_ipt.c +cc1: warnings being treated as errors +m_ipt.c:72: error: no previous prototype for 'xtables_register_target' +m_ipt.c:361: error: no previous prototype for 'build_st' +make[1]: *** [m_ipt.o] Error 1 + +This is fixed by adding the prototype in the header include/iptables.h + +I am not sure if this is due to something wrong on my build system but I am +using current glibc 2.17. + +Signed-off-by: Vijay Subramanian +--- + include/iptables.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/iptables.h b/include/iptables.h +index dd844c1..f1e62e2 100644 +--- a/include/iptables.h ++++ b/include/iptables.h +@@ -143,6 +143,8 @@ extern int line; + /* Your shared library should call one of these. */ + extern void register_match(struct iptables_match *me); + extern void register_target(struct iptables_target *me); ++extern void xtables_register_target(struct iptables_target *me); ++extern int build_st(struct iptables_target *target, struct ipt_entry_target *t); + + extern struct in_addr *dotted_to_addr(const char *dotted); + extern char *addr_to_dotted(const struct in_addr *addrp); +-- +1.7.9.5 diff --git a/recipes/iproute2/iproute2_3.8.0.oe b/recipes/iproute2/iproute2_3.8.0.oe new file mode 100644 index 0000000..f0cb536 --- /dev/null +++ b/recipes/iproute2/iproute2_3.8.0.oe @@ -0,0 +1,7 @@ +require iproute2.inc + +SRC_URI="https://www.kernel.org/pub/linux/utils/net/${PN}/${PN}-${PV}.tar.bz2 \ + file://0001-Fix-compilation-error-of-m_ipt.c-with-Werror-enabled.patch\ +" + +S="${SRCDIR}/${PN}-${PV}" diff --git a/recipes/iproute2/iproute2_3.8.0.oe.sig b/recipes/iproute2/iproute2_3.8.0.oe.sig new file mode 100644 index 0000000..6874d05 --- /dev/null +++ b/recipes/iproute2/iproute2_3.8.0.oe.sig @@ -0,0 +1 @@ +6dfc5f120406406cb23db23d631133ed897313d1 iproute2-3.8.0.tar.bz2