From patchwork Tue Nov 8 22:18:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 692514 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tD3cR0Zgqz9t1d for ; Wed, 9 Nov 2016 09:18:47 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EUxwmc7V"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EF2E1953B9; Tue, 8 Nov 2016 22:18:41 +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 6W2RTe6mnRS1; Tue, 8 Nov 2016 22:18:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9145C953B5; Tue, 8 Nov 2016 22:18:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id BF3C51C2229 for ; Tue, 8 Nov 2016 22:18:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6887E953CF for ; Tue, 8 Nov 2016 22:18:39 +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 zyz8Fw4p1Yoj for ; Tue, 8 Nov 2016 22:18:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4DF72953A6 for ; Tue, 8 Nov 2016 22:18:38 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id a20so14739393wme.2 for ; Tue, 08 Nov 2016 14:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qa5LgXmEm6hmqI76s9Yyfpj+XAdSp2eun9FukEBvyEo=; b=EUxwmc7VvxXa30zE+qXf+MMAYbCPysnQHz9yNalRsT+XCs/P6tfkJLfcNLr2kjxCSQ 9DKFdTaqwhrlmOW8AyHTTv7UkY1QSgZvLHyOW1xbTL2LrlrKJjliftBqVtaNV7NekEPI q3bfveGcWqvjaz7sl4qWD6LPmLX7bdv8ucIV8tK2W+E6GF9RrVw5TE2IlsphMnvptQho AU3lEHW8WYE4TmMyOEZlJRANvxeNJhcKFeQWsU5UHMwRNQzyeh2d/Ka6HQ+nMWhwibIb xY1L9gkMe50o8ULiBHPjDEKH8seyn2/2MiWOY96WCXSArucXLUu5/pDs89EubABPGGxh ayMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Qa5LgXmEm6hmqI76s9Yyfpj+XAdSp2eun9FukEBvyEo=; b=Fxm/GOtjbVo01s3L5AYGFM8gsq+T+CxCdIwgcH6BP30Ry9ITgl4Xij+lK3CH9g1Cx1 W4BMOy/kEbZUw/lGZv53cTA9s2WsxQ98u0WS+K/8q90NzseouooH61mqj+j9R2IxeodJ q/17XzKWckLzppBVL3uiwO7KAeAI5/5UrEN5guBCTlI5B8bW52m1gooZ4Ss+jqTXdJnb SOkpkwT9ZFDCRRCWbCuXPdlG2/xHD1x+l9EMpzi5/EQw2fq4yii/kSo13o5l8lVUOBxW LWA0qIjeb1sGiUerwdIPywPXgDXa1eZ+bVG2u9DkIVzgE2XNNX07vXUzRXLzBmG8KLSf eY1Q== X-Gm-Message-State: ABUngvdUzaJMpyNc5rlvoOFfo/2/goVw2n4fRW+fpejlqvi62MuPHRE2xIEAgKSFbW9sig== X-Received: by 10.28.35.14 with SMTP id j14mr16403234wmj.24.1478643516791; Tue, 08 Nov 2016 14:18:36 -0800 (PST) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id m1sm20443741wjk.22.2016.11.08.14.18.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Nov 2016 14:18:36 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 Nov 2016 23:18:31 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Cc: Patrick Keroulas , =?UTF-8?q?Ga=C3=ABl=20PORTAY?= , "Yann E. MORIN" Subject: [Buildroot] [PATCH 1/5] package/pseudo: enforce the host bitness X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" pseudo can detect the host bitness, but is not sure about it: it checks what type of file /bin/sh is, using file(1). However, in some conditions, /bin/sh can be of a different bitness than the rest of the system (weird, but not impossible), which causes build issues. Just enforce the bitness, so that pseudo needs not (wrongly) guess it. Signed-off-by: "Yann E. MORIN" Cc: Gaƫl PORTAY Cc: Patrick Keroulas Cc: Erico Nunes Cc: Julien BOIBESSOT Cc: Arnout Vandecappelle Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- Changes v1 -> v2: - directly extract bitness for $(HOSTARCH) (Arnout) --- package/pseudo/pseudo.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/pseudo/pseudo.mk b/package/pseudo/pseudo.mk index 67538a6..92de2c6 100644 --- a/package/pseudo/pseudo.mk +++ b/package/pseudo/pseudo.mk @@ -17,6 +17,7 @@ HOST_PSEUDO_DEPENDENCIES = host-attr host-sqlite # configure script is not generated by autoconf, so passing --libdir # is necessary, even if the infrastructure passes --prefix already. HOST_PSEUDO_CONF_OPTS = \ + --bits=$(if $(filter %64,$(HOSTARCH)),64,32) \ --libdir=$(HOST_DIR)/usr/lib \ --with-sqlite=$(HOST_DIR)/usr