From patchwork Wed Dec 14 18:06:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wookey X-Patchwork-Id: 5713 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 4AF8023E0C for ; Wed, 14 Dec 2011 18:06:19 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2F548A18058 for ; Wed, 14 Dec 2011 18:06:19 +0000 (UTC) Received: by eaak10 with SMTP id k10so990315eaa.11 for ; Wed, 14 Dec 2011 10:06:19 -0800 (PST) Received: by 10.204.156.208 with SMTP id y16mr1735898bkw.72.1323885978958; Wed, 14 Dec 2011 10:06:18 -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 hg2cs15683bkc; Wed, 14 Dec 2011 10:06:18 -0800 (PST) Received: by 10.180.92.234 with SMTP id cp10mr6880087wib.28.1323885977276; Wed, 14 Dec 2011 10:06:17 -0800 (PST) Received: from stoneboat.aleph1.co.uk (stoneboat.aleph1.co.uk. [80.68.88.63]) by mx.google.com with ESMTPS id x32si2095275weq.17.2011.12.14.10.06.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Dec 2011 10:06:17 -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 1RatDa-00065S-Pq for patches@linaro.org; Wed, 14 Dec 2011 18:06:16 +0000 Received: from wookey by dream.aleph1.co.uk with local (Exim 4.72) (envelope-from ) id 1RatDU-0006RZ-LO for patches@linaro.org; Wed, 14 Dec 2011 18:06:08 +0000 Date: Wed, 14 Dec 2011 18:06:08 +0000 From: Wookey To: patches@linaro.org Message-ID: <20111214180608.GS28260@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: 0005-Attempt-to-fix.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 dd180e00da03f2103106c6cca0700cadb1eead30 Mon Sep 17 00:00:00 2001 From: Hector Oron Date: Mon, 12 Dec 2011 19:21:28 +0000 Subject: [PATCH 05/17] Attempt to fix: $ sbuild -d sid-amd64-sbuild hello_2.6-1 --host=armel --build=i386 Chroot sid-amd64-sbuild for architecture i386 not found Signed-off-by: Hector Oron --- lib/Sbuild/ChrootInfo.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Sbuild/ChrootInfo.pm b/lib/Sbuild/ChrootInfo.pm index 75bf07b..a417a9a 100644 --- a/lib/Sbuild/ChrootInfo.pm +++ b/lib/Sbuild/ChrootInfo.pm @@ -124,9 +124,9 @@ sub find { $chroot = "${namespace}:${distribution}"; } - if ($arch_set && !$arch_found && $arch ne "") { + if ($arch_set && !$arch_found && $host_arch ne "") { # TODO: Return error, rather than die. - die "Chroot $distribution for architecture $arch not found\n"; + die "Chroot $distribution for architecture $host_arch not found\n"; return undef; } }