From patchwork Wed Dec 14 17:59:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wookey X-Patchwork-Id: 5711 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 93FD023E33 for ; Wed, 14 Dec 2011 18:00:18 +0000 (UTC) Received: from mail-lpp01m010-f52.google.com (mail-lpp01m010-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id 65FE6A18067 for ; Wed, 14 Dec 2011 18:00:18 +0000 (UTC) Received: by lahj13 with SMTP id j13so770093lah.11 for ; Wed, 14 Dec 2011 10:00:18 -0800 (PST) Received: by 10.205.127.12 with SMTP id gy12mr1712276bkc.108.1323885616253; Wed, 14 Dec 2011 10:00:16 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.129.2 with SMTP id hg2cs15535bkc; Wed, 14 Dec 2011 10:00:16 -0800 (PST) Received: by 10.180.96.166 with SMTP id dt6mr6838481wib.47.1323885615795; Wed, 14 Dec 2011 10:00:15 -0800 (PST) Received: from stoneboat.aleph1.co.uk (stoneboat.aleph1.co.uk. [80.68.88.63]) by mx.google.com with ESMTPS id fh21si1980448wbb.100.2011.12.14.10.00.15 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Dec 2011 10:00:15 -0800 (PST) Received-SPF: neutral (google.com: 80.68.88.63 is neither permitted nor denied by best guess record for domain of wookey@wookware.org) client-ip=80.68.88.63; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.68.88.63 is neither permitted nor denied by best guess record for domain of wookey@wookware.org) smtp.mail=wookey@wookware.org Received: from host-78-151-164-206.static.as13285.net ([78.151.164.206] helo=dream.aleph1.co.uk) by stoneboat.aleph1.co.uk with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Rat7X-0005XH-6x for patches@linaro.org; Wed, 14 Dec 2011 18:00:15 +0000 Received: from wookey by dream.aleph1.co.uk with local (Exim 4.72) (envelope-from ) id 1Rat7R-0006F2-3L for patches@linaro.org; Wed, 14 Dec 2011 17:59:53 +0000 Date: Wed, 14 Dec 2011 17:59:52 +0000 From: Wookey To: patches@linaro.org Message-ID: <20111214175952.GQ28260@dream.aleph1.co.uk> MIME-Version: 1.0 Content-Disposition: inline Organization: Wookware User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: 78.151.164.206 X-SA-Exim-Mail-From: wookey@wookware.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on stoneboat.aleph1.co.uk X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.5 tests=AWL,BAYES_00 autolearn=no version=3.3.1 Subject: 0002-Sbuild-Build-Add-dpkg-buildpackage-a-option-when-cro.patch X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:51:10 +0000) X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk) >From fb087412f62965f622aa7eb30e7e9743928bfb45 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Mon, 12 Dec 2011 19:21:28 +0000 Subject: [PATCH 02/17] Sbuild::Build: Add dpkg-buildpackage -a option when cross building --- lib/Sbuild/Build.pm | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm index 4b1a017..88367ee 100644 --- a/lib/Sbuild/Build.pm +++ b/lib/Sbuild/Build.pm @@ -1413,6 +1413,10 @@ sub build { $self->get_conf('BUILD_ENV_CMND')); push (@{$buildcmd}, 'dpkg-buildpackage'); + if ($self->get_conf('BUILD_ARCH') != $self->get_conf('BUILD_ARCH')) { + push (@{$buildcmd}, '-a' . $self->get_conf('BUILD_ARCH')); + } + if (defined($self->get_conf('PGP_OPTIONS')) && $self->get_conf('PGP_OPTIONS')) { if (ref($self->get_conf('PGP_OPTIONS')) eq 'ARRAY') {