From patchwork Wed Jan 20 21:53:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 570917 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]) by ozlabs.org (Postfix) with ESMTP id BF1F31402BF for ; Thu, 21 Jan 2016 08:53: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=vpEjUoy7; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 610D19368F; Wed, 20 Jan 2016 21:53:46 +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 nQX0evqcRu13; Wed, 20 Jan 2016 21:53:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9458F9367B; Wed, 20 Jan 2016 21:53:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id A75FD1C0FC5 for ; Wed, 20 Jan 2016 21:53:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A0333310AB for ; Wed, 20 Jan 2016 21:53:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i9-Nk6Joo7Gn for ; Wed, 20 Jan 2016 21:53:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by silver.osuosl.org (Postfix) with ESMTPS id 2D7043176A for ; Wed, 20 Jan 2016 21:53:41 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id l65so196844835wmf.1 for ; Wed, 20 Jan 2016 13:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=eslbTgK00FfUuajLoZX6eA+Z7EqAfB3PNwP72zwRe5g=; b=vpEjUoy7C7s1ofoFo3vvtYO18ASet5Yn6T4McsQPvPA73ksXHbD0Tht88f1/imnmkG pv0qRK4G3mp81b6OIN62NyKjf9bp83dv5dHZd8at3oyTFKKRnzwo5kOU87yNMUSdYQGa HLhASEt/wcLDrmqbur9rxGP/G6zynrNxWQh1xXoo20+Kx2oFXnilt3oxsC7g8HvYMNPy zrphbovsAFXQJsO+fTD+vM7KAE7LrGwoF4h8KiS3r1jbD4sugUZiGTcoRYmUI3yKGHst bGYw2537EZrNmrx3/M+kWsjeUrGOlu+QRfAtk/nuqBGJtwHt8LPUXhzXPdE2xedq6n7f 4luQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eslbTgK00FfUuajLoZX6eA+Z7EqAfB3PNwP72zwRe5g=; b=HSL6V6dOaLO0o2Q1D5NE7062+f1y9zjeF9cEOQE7llBx36gmZ7IdzAErwP/YDFKSaw 884HeJzPbKsatE6IJabBf8gA7jjy3C6JFMtJEHa3rxuSV0HdoxA5bb5W/+3/4IpvsU9J XHuwGtcHIGb+Ms8sAf8PrcSzYoHygCajojfRLNfTa7A7+5luR/+tDNm0UgMJAD57GXei N2amcVy3QvPNxSec8NmPIHIVlEVZo8d2R3TT4+Ben/a3uOMQxtRg2gY5o3gVjva7Rj7N /ZatC+VuDRgqHkjnqROqyqkv5Sa32v1Me/1Yi5qtMLDzVGdV8UQ7izgdezddro6KQPhf cy/g== X-Gm-Message-State: ALoCoQlCl/77Hh9UHNzREUo/h91AosnTBBvv32oCLt81OdXp+2RL1MKW+V3+wIVvJ2luWHCh3EY3EHxjuKfhQKJ5gs8oE+Rh+w== X-Received: by 10.194.116.97 with SMTP id jv1mr38181220wjb.38.1453326819717; Wed, 20 Jan 2016 13:53:39 -0800 (PST) Received: from adeos.localdomain (gam75-1-81-57-22-125.fbx.proxad.net. [81.57.22.125]) by smtp.gmail.com with ESMTPSA id u191sm26991611wmd.4.2016.01.20.13.53.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2016 13:53:38 -0800 (PST) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 20 Jan 2016 22:53:19 +0100 Message-Id: <1453326799-14060-1-git-send-email-romain.naour@gmail.com> X-Mailer: git-send-email 2.4.3 Cc: Thomas Petazzoni , Romain Naour , "Yann E. MORIN" Subject: [Buildroot] [PATCH] core: override the user's locale while setting HOSTARCH 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" At least with French user's locale HOSTARCH is empty since 'Target' is not present in gcc output. gcc -v 2>&1 Utilisation des specs internes. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/lto-wrapper Cible : x86_64-redhat-linux Override the user's local with LC_ALL=C. Signed-off-by: Romain Naour Cc: "Yann E. MORIN" Cc: Thomas Petazzoni Acked-by: "Yann E. MORIN" --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2e09611..17c181b 100644 --- a/Makefile +++ b/Makefile @@ -297,7 +297,7 @@ export HOSTCC_NOCCACHE HOSTCXX_NOCCACHE # So, we extract the first part of the tuple the host gcc was # configured to generate code for; we assume this is our userland. # -export HOSTARCH := $(shell $(HOSTCC_NOCCACHE) -v 2>&1 | \ +export HOSTARCH := $(shell LC_ALL=C $(HOSTCC_NOCCACHE) -v 2>&1 | \ sed -e '/^Target: \([^-]*\).*/!d' \ -e 's//\1/' \ -e 's/i.86/x86/' \