* [Buildroot] [PATCH] core: override the user's locale while setting HOSTARCH
@ 2016-01-20 21:53 Romain Naour
2016-01-20 21:56 ` Yann E. MORIN
2016-01-20 22:03 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Romain Naour @ 2016-01-20 21:53 UTC (permalink / raw)
To: 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 <romain.naour@gmail.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
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/' \
--
2.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] core: override the user's locale while setting HOSTARCH
2016-01-20 21:53 [Buildroot] [PATCH] core: override the user's locale while setting HOSTARCH Romain Naour
@ 2016-01-20 21:56 ` Yann E. MORIN
2016-01-20 22:03 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2016-01-20 21:56 UTC (permalink / raw)
To: buildroot
Romain, All,
On 2016-01-20 22:53 +0100, Romain Naour spake thusly:
> 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 <romain.naour@gmail.com>
> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
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/' \
> --
> 2.4.3
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] core: override the user's locale while setting HOSTARCH
2016-01-20 21:53 [Buildroot] [PATCH] core: override the user's locale while setting HOSTARCH Romain Naour
2016-01-20 21:56 ` Yann E. MORIN
@ 2016-01-20 22:03 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-01-20 22:03 UTC (permalink / raw)
To: buildroot
Dear Romain Naour,
On Wed, 20 Jan 2016 22:53:19 +0100, Romain Naour wrote:
> 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 <romain.naour@gmail.com>
> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-20 22:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 21:53 [Buildroot] [PATCH] core: override the user's locale while setting HOSTARCH Romain Naour
2016-01-20 21:56 ` Yann E. MORIN
2016-01-20 22:03 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox