From patchwork Thu Nov 21 17:19:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 293203 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 75AA72C00A1 for ; Fri, 22 Nov 2013 04:19:55 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D6E989393F; Thu, 21 Nov 2013 17:19:53 +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 lx6X0ONSMmXe; Thu, 21 Nov 2013 17:19:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1FBC09391A; Thu, 21 Nov 2013 17:19:52 +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 9EC601BFA0A for ; Thu, 21 Nov 2013 17:19:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 964B38B662 for ; Thu, 21 Nov 2013 17:19:51 +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 x7q6Ly1F-PCL for ; Thu, 21 Nov 2013 17:19:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id B7C2B8B7F8 for ; Thu, 21 Nov 2013 17:19:50 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id t60so37999wes.31 for ; Thu, 21 Nov 2013 09:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=owK0QE52ZUJ19p/rgLUXwvA65YD8LxM3du7o/2ddNBw=; b=U9Rxz9WmqsTzFRrP5VilXjLJk9uKyEPMTJ5/vOyyS6LR3AKPjt1zvquPq9N3h9/bVA 8OCXy+0XAaFrm4fQulnnb+OltufwrmZIt2PX0jus7/0HslstNM/EXlTmZ2sTbqvboxOv adMp9Lkb3hoguLzE/uZ8k8GA/6o7ZYQmS3z+EdtCqGrfKbyET9Mw7ggoyWNPGUuzrRuk pQYKYxxkP+ksUvx4guuepRV7aiC6US+LEO6Gb9MMUXBJRZE7njlB1bRY3RPM0VA9m0D9 nYGLEb01CSgVVd7HnWk9qAPizP+gd2I4DKLBKeOBKAzd/fBMiqRsa/VV2diJvaHem/pR E1Dw== X-Received: by 10.194.1.139 with SMTP id 11mr6266962wjm.33.1385054389004; Thu, 21 Nov 2013 09:19:49 -0800 (PST) Received: from percy.lan (host-92-24-119-175.ppp.as43234.net. [92.24.119.175]) by mx.google.com with ESMTPSA id bs15sm7082654wib.10.2013.11.21.09.19.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 09:19:47 -0800 (PST) From: spdawson@gmail.com To: buildroot@busybox.net Date: Thu, 21 Nov 2013 17:19:40 +0000 Message-Id: <1385054380-20684-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Buildroot] [PATCH] libroxml: fix avr32 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 From: Simon Dawson The -Wno-unused-result option is not understood by the version of gcc used by the avr32 toolchain. Remove the option from the compilation flags. Fixes build failures such as the following. http://autobuild.buildroot.net/results/e22/e22d94fca3eabb4e54d82af04319f17ad8e10c20/ The single existing patch for libroxml has been renamed to include a numerical component for application order sorting. The existing patch has also been updated to apply without fuzz. Signed-off-by: Simon Dawson --- ...oxml-werror.patch => libroxml-0001-werror.patch} | 2 +- .../libroxml/libroxml-0002-wno-unused-result.patch | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) rename package/libroxml/{libroxml-werror.patch => libroxml-0001-werror.patch} (97%) create mode 100644 package/libroxml/libroxml-0002-wno-unused-result.patch diff --git a/package/libroxml/libroxml-werror.patch b/package/libroxml/libroxml-0001-werror.patch similarity index 97% rename from package/libroxml/libroxml-werror.patch rename to package/libroxml/libroxml-0001-werror.patch index 6435b01..91f322c 100644 --- a/package/libroxml/libroxml-werror.patch +++ b/package/libroxml/libroxml-0001-werror.patch @@ -11,7 +11,7 @@ Index: a/Makefile =================================================================== --- a/Makefile +++ b/Makefile -@@ -41,7 +41,7 @@ +@@ -46,7 +46,7 @@ # options override CPPFLAGS += -Iinc/ diff --git a/package/libroxml/libroxml-0002-wno-unused-result.patch b/package/libroxml/libroxml-0002-wno-unused-result.patch new file mode 100644 index 0000000..406bf3c --- /dev/null +++ b/package/libroxml/libroxml-0002-wno-unused-result.patch @@ -0,0 +1,21 @@ +The -Wno-unused-result option is not understood by the version of gcc used by the +avr32 toolchain. Remove the option from the compilation flags. + +Fixes build failures such as the following. + + http://autobuild.buildroot.net/results/e22/e22d94fca3eabb4e54d82af04319f17ad8e10c20/ + +Signed-off-by: Simon Dawson + +diff -Nurp a/Makefile b/Makefile +--- a/Makefile 2013-11-21 17:13:17.679388374 +0000 ++++ b/Makefile 2013-11-21 17:13:35.219299157 +0000 +@@ -46,7 +46,7 @@ DEFINES = -DIGNORE_EMPTY_TEXT_NODES + + # options + override CPPFLAGS += -Iinc/ +-override CFLAGS += $(OPTIM) -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-result -Iinc/ $(DEFINES) ++override CFLAGS += $(OPTIM) -fPIC -Wall -Wextra -Wno-unused-parameter -Iinc/ $(DEFINES) + override LDFLAGS += + + ifeq ("$(OS)", "Darwin")