From patchwork Tue Nov 5 07:43:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 288404 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 721FD2C05FC for ; Tue, 5 Nov 2013 18:43:38 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 950438F8C9; Tue, 5 Nov 2013 07:43:37 +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 rfE5VcEI4a0H; Tue, 5 Nov 2013 07:43:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 90F118F8C5; Tue, 5 Nov 2013 07:43:36 +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 B08701BF9E7 for ; Tue, 5 Nov 2013 07:43:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id ACE3B8F8B7 for ; Tue, 5 Nov 2013 07:43:34 +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 9tdDOEBCHwty for ; Tue, 5 Nov 2013 07:43:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id D6F848F8BF for ; Tue, 5 Nov 2013 07:43:33 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id k14so3139064wgh.7 for ; Mon, 04 Nov 2013 23:43:32 -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=Ch9JWMaqmJ6hsfyYOte6H1ETmRmSOb4wOQEuiFhv01M=; b=Qn8dakiihTYvwEQYn167g6bGaPkaBpvse7ETVHdY8BSMQxGUjc6AnEITTK6QRevXkr ov2Si//0mM27ANsYQuvLLszHqyfjEmVkcJn8HawquwWHS0KVvmd0JJXK6u1eYty8XLw4 iDGdmgkduTrNC6xa/4RGx0UgS/4EeepKQwlnuAQREuLCiw+xp5jnm+GXAbv49J6ALdh3 XFw9B36Kk40NOSjlcqBg3AiODKLtU6tH56lrJSQa6j9GtG0gJ0pBfWauYT43LD6HbmPY 6JRPAoi26/BmbFbwcbghBxS3QZYI9aBZQVgRPYiHY0Jxf4MsP/stj3Al+di//yBB5nKB yFNg== X-Received: by 10.194.94.137 with SMTP id dc9mr8648162wjb.38.1383637412189; Mon, 04 Nov 2013 23:43:32 -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 qc10sm11538040wic.9.2013.11.04.23.43.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Nov 2013 23:43:31 -0800 (PST) From: spdawson@gmail.com To: buildroot@busybox.net Date: Tue, 5 Nov 2013 07:43:29 +0000 Message-Id: <1383637409-8306-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Buildroot] [PATCH v2] libsigsegv: fix avr32 build 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 libsigsegv configure step fails to correctly figure out the direction of stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and build failures such as the following. http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33 Signed-off-by: Simon Dawson --- v2: autoreconf, instead of patching configure, recommended by Peter Korsgaard .../libsigsegv/libsigsegv-0001-fix-avr32-build.patch | 20 ++++++++++++++++++++ package/libsigsegv/libsigsegv.mk | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch diff --git a/package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch b/package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch new file mode 100644 index 0000000..f585764 --- /dev/null +++ b/package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch @@ -0,0 +1,20 @@ +The libsigsegv configure step fails to correctly figure out the direction of +stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and +build failures such as the following. + + http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33 + +Signed-off-by: Simon Dawson + +diff -Nurp a/m4/stack-direction.m4 b/m4/stack-direction.m4 +--- a/m4/stack-direction.m4 2009-11-21 12:22:45.000000000 +0000 ++++ b/m4/stack-direction.m4 2013-11-04 09:29:27.558036038 +0000 +@@ -16,7 +16,7 @@ AC_DEFUN([SV_STACK_DIRECTION], + alpha* | \ + arc | \ + arm* | strongarm* | xscale* | \ +- avr | \ ++ avr | avr32 | \ + c1 | c2 | c32 | c34 | c38 | \ + clipper | \ + cris | \ diff --git a/package/libsigsegv/libsigsegv.mk b/package/libsigsegv/libsigsegv.mk index 2cc2544..a5bb31c 100644 --- a/package/libsigsegv/libsigsegv.mk +++ b/package/libsigsegv/libsigsegv.mk @@ -11,4 +11,6 @@ LIBSIGSEGV_CONF_ENV = sv_cv_fault_posix=yes LIBSIGSEGV_LICENSE = GPLv2+ LIBSIGSEGV_LICENSE_FILES = COPYING +LIBSIGSEGV_AUTORECONF = YES + $(eval $(autotools-package))