From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487873561298993152 X-Received: by 10.80.163.200 with SMTP id t8mr2806993edb.1.1510582683911; Mon, 13 Nov 2017 06:18:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.167.100 with SMTP id h91ls10229366edc.8.gmail; Mon, 13 Nov 2017 06:18:03 -0800 (PST) X-Google-Smtp-Source: ABhQp+RhklAxLYJ9oDzO7WMU7KR0kEPP8KNOr6l0wMjsKy3jSoZi1vb2rMEC31UCfw5k0zIbDtM8 X-Received: by 10.80.206.3 with SMTP id y3mr3290086edi.11.1510582683614; Mon, 13 Nov 2017 06:18:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510582683; cv=none; d=google.com; s=arc-20160816; b=BYwYMzNb51wRovacWPydFPXiU8o+C4FRUaJW5tUtM8nbwAOCS1hHDNzYiKElIXR0v9 k2rIIXcrRmEnY72vNNO57p+mFFVPcx5Cgg7fqDHVnllT41WYBjAOFv3KXHwt22muq0gS 4AgzTxHE411ullT70s3qaXRU2lYkBr/QULEj4Llr1xWYaWYtKH6LE1a+tecmx73r/W5p IB1OUzD6PKrS1Xla7WP0x7aZ2S3dHNCii77FgtetusdSz3gxeEQE7ZGWGzPNqusJ4rEL 4C50yUntSu09MuVY0qcXwHSrAU0SHAZXoi0t4Fqsm5FEI3xtHwItGu8Lp9JdZcKWdqSb NoRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:arc-authentication-results; bh=ESUiW4J61oLpmH6Gq+vIIsXKv2/W84PF9SN27LzBTwo=; b=clGNMDqTeJBL8taXKIRv39U0iVVULjmD1wU5HaYNXDAA7qZ7dey8MR2dthhJGbvPEe DO67XCmy8rApLH5o3NVRvHQApIYezn3dSXe5ocmFBac4KDvcfSQAKPsfCdvlAjSQ+unk RXhq0xFwH/81CQgPzvp6Gl//HN4u4VhOw/ADXeF6BnYNopJYAWz5mCUHP88oTKnWMA1Q /3reHwSgEORlaHonOnn13K7su7WverDwxh96owYIIFch5pk2EqNWGykV5GBhodjoUlWN ChxVxEwnO+L7ppk3UbCRHLzHDQIkpLArhHCy50MLQSzPOl0Ly7rP46qWygZ3e7VftlRU 7Hiw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id m13si1290604edc.2.2017.11.13.06.18.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 06:18:03 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vADEI3DK016114 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 13 Nov 2017 15:18:03 +0100 Received: from localhost ([139.25.69.251]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTPS id vADEI3cd025106 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 13 Nov 2017 15:18:03 +0100 Date: Mon, 13 Nov 2017 15:16:54 +0100 From: Christian Storm To: isar-users@googlegroups.com Subject: Re: [PATCH] build.sh: Fix perl complaints about locale Message-ID: <20171113141654.x74kl5dzxzraszvd@MD1KR9XC.ww002.siemens.net> Mail-Followup-To: isar-users@googlegroups.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/20170113 (1.7.2) X-TUID: 8saNNrn4bbbD > >>>> The log.do_build is flooded by perl's locale complaints: > >>>> > >>>> ����� perl: warning: Setting locale failed. > >>>> ����� perl: warning: Please check that your locale settings: > >>>> ������������� LANGUAGE = (unset), > >>>> ������������� LC_ALL = "en_US.UTF-8", > >>>> ������������� LANG = (unset) > >>>> ��������� are supported and installed on your system. > >>>> ����� perl: warning: Falling back to the standard locale ("C"). > >>>> > >>>> Make perl happy by explicitly giving it the C locale. > >>>> > >>>> Signed-off-by: Christian Storm > >>>> --- > >>>> �� meta/recipes-devtools/buildchroot/files/build.sh | 2 +- > >>>> �� 1 file changed, 1 insertion(+), 1 deletion(-) > >>>> > >>>> diff --git a/meta/recipes-devtools/buildchroot/files/build.sh > >>>> b/meta/recipes-devtools/buildchroot/files/build.sh > >>>> index 19d554e..e53d359 100644 > >>>> --- a/meta/recipes-devtools/buildchroot/files/build.sh > >>>> +++ b/meta/recipes-devtools/buildchroot/files/build.sh > >>>> @@ -23,4 +23,4 @@ for i in configure aclocal.m4 Makefile.am > >>>> Makefile.in; do > >>>> �� done > >>>> �� # Build the package > >>>> -dpkg-buildpackage > >>>> +LC_ALL=C LANGUAGE=C LANG=C dpkg-buildpackage > >>>> > >>> > >>> There is code that should setup locales for current buildchroot: > >>> > >>> https://github.com/ilbers/isar/blob/master/meta/recipes-devtools/buildchroot/files/configscript.sh#L8 > >>> > >>> > >>> So it would be nice to fix this globally instead of local solution. > >> > >> Sure, but this alone doesn't solve the problem as you have to put the > >> locale into every (sudo) environment. Then, what about > > > > Hmm, it works as it is for archs different from host machine. I've > > attached 3 build logs for hello application in Stretch: amd64, arm and > > i386 and only *amd64* has locale flood. The others are OK. So that's why > > I think it's rather bug in configscript. > > Working on PRoot I've found the following multistrap option: > > "ignorenativearch=true" > > Probably it could somehow help here... Hm, this sounds unrelated to me at first sight. I did a quick local clean run with the following patch and it resolved the issue, for me at least. Could you please also try a run with the patch applied for all the arches? If it solves the issue I'll send a proper patch. Thanks! ``` diff --git a/meta/recipes-devtools/buildchroot/files/configscript.sh b/meta/recipes-devtools/buildchroot/files/configscript.sh old mode 100644 new mode 100755 index 9813c9a..1fd2061 --- a/meta/recipes-devtools/buildchroot/files/configscript.sh +++ b/meta/recipes-devtools/buildchroot/files/configscript.sh @@ -32,6 +32,9 @@ locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8 locales locales/default_environment_locale select en_US.UTF-8 END +sed -i 's/^# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen +dpkg-reconfigure --frontend=noninteractive locales + #set up non-interactive configuration export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true export LC_ALL=C LANGUAGE=C LANG=C ``` Besten Gru�, Christian -- Dr. Christian Storm Siemens AG, Corporate Technology, CT RDA ITP SES-DE Otto-Hahn-Ring 6, 81739 M�nchen, Germany