From patchwork Tue Jun 11 10:52:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 250526 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id D49BC2C0098 for ; Tue, 11 Jun 2013 20:52:17 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8EBD5A0023; Tue, 11 Jun 2013 10:52:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fI-WAoAv+o53; Tue, 11 Jun 2013 10:52:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 377ACA004D; Tue, 11 Jun 2013 10:52:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9C01B8F753 for ; Tue, 11 Jun 2013 10:52:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D96E887BF for ; Tue, 11 Jun 2013 10:52:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EbfvVDEdnu+v for ; Tue, 11 Jun 2013 10:52:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2CC4B8889A for ; Tue, 11 Jun 2013 10:52:08 +0000 (UTC) Received: from asgard (host115.190-138-228.telecom.net.ar [190.138.228.115]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.7/8.14.7) with ESMTP id r5BAq10B032413 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Jun 2013 10:52:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1370947926; bh=o9wdcOiFIb6FraBD+a5Fvbt5ux9Vxyc9wDr0DPXCe/A=; h=From:To:Cc:Subject:Date; b=GFPmE4vx5DNCnYq6toGLGCYd0DWp8IR1NXAEfNjdRCPCcK9Dx/mWRlccxAtVky0n5 eSrry5LVZEU0gpcW5XuFKBcf+gkZOVe17pnuBprbJlYQm3QN3e31ZEKlweQo6cbM8B tUDfY3RmVSxLNFG99XunbXwGuUirLisA9CMLogO0= Received: by asgard (sSMTP sendmail emulation); Tue, 11 Jun 2013 07:52:00 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Tue, 11 Jun 2013 07:52:00 -0300 Message-Id: <1370947920-10745-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 X-Virus-Scanned: clamav-milter 0.97.7 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] openswan: fix older gcc build failure X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Older gcc versions (< 4.4) don't accept cpp as -Werror / -Wno-error parameters. Disable it since it's not yet a default with any version and we don't do -Werror by default. Fixes: http://autobuild.buildroot.net/results/977/9779215c4dfb68dc105f27097246a97851b1f6c2/ Signed-off-by: Gustavo Zacarias --- package/openswan/openswan-wno-error-cpp.patch | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/openswan/openswan-wno-error-cpp.patch diff --git a/package/openswan/openswan-wno-error-cpp.patch b/package/openswan/openswan-wno-error-cpp.patch new file mode 100644 index 0000000..8e79ae9 --- /dev/null +++ b/package/openswan/openswan-wno-error-cpp.patch @@ -0,0 +1,29 @@ +Kill -Wno-error=cpp, old(ish) gcc versions (< 4.4) don't like it and we still +got 4.3.x available for internal toolchains. + +Signed-off-by: Gustavo Zacarias + +diff -Nura openswan-2.6.39.orig/lib/libopenswan/Makefile openswan-2.6.39/lib/libopenswan/Makefile +--- openswan-2.6.39.orig/lib/libopenswan/Makefile 2013-06-11 07:22:50.228520267 -0300 ++++ openswan-2.6.39/lib/libopenswan/Makefile 2013-06-11 07:27:40.087849447 -0300 +@@ -86,7 +86,7 @@ + CFLAGS+= -Wno-error=cast-qual + + # some junk left in alg_info.c +-CFLAGS+= -Wno-error=cpp ++#CFLAGS+= -Wno-error=cpp + + #CFLAGS+= -Wmissing-declarations + CFLAGS+= -Wstrict-prototypes +diff -Nura openswan-2.6.39.orig/programs/pluto/Makefile openswan-2.6.39/programs/pluto/Makefile +--- openswan-2.6.39.orig/programs/pluto/Makefile 2013-06-11 07:22:49.753504978 -0300 ++++ openswan-2.6.39/programs/pluto/Makefile 2013-06-11 07:27:53.020265681 -0300 +@@ -47,7 +47,7 @@ + + # must turn this off due to myid.c + CFLAGS+= -Wno-error=cast-qual +-CFLAGS+= -Wno-error=cpp ++#CFLAGS+= -Wno-error=cpp + + ifeq ($(HAVE_BROKEN_POPEN),true) + CFLAGS+=-DHAVE_BROKEN_POPEN