From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487873561298993152 X-Received: by 10.223.166.129 with SMTP id t1mr1454054wrc.32.1510582086515; Mon, 13 Nov 2017 06:08:06 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.159.4 with SMTP id i4ls947866wme.3.gmail; Mon, 13 Nov 2017 06:08:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZNDSylzVjQKhh9K/bLCvBfPx0HFOq4MIHv97q0UINLZI+mN7kpptqDHQZG/qcmQw7AbaQV X-Received: by 10.28.132.202 with SMTP id g193mr1025242wmd.24.1510582086126; Mon, 13 Nov 2017 06:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510582086; cv=none; d=google.com; s=arc-20160816; b=irzRot/4biPToDJDIiZ96GQx09j6otVvEWFPKBgllzqrQM7mTK0cdz/KTfHCsMwLa7 m/g84mzazRi8I0JH3WzDb3ooNioqjXzxuf74AzIw5Yc6WukBAQky3KuKM4OQZuM0UWpc KuV13b2GMLtmDrkIJwup++fsplX5zuDCzLjynMS0Zabx9HJV4uWl5J/p4bxdEz2xCQj2 VhbvGNrYVOcrkbiCbah/YDsovDjsvkPq/6vN3uXn4vbvaz3nHLJHJJGpPmXZGZMIJPL4 uGw0mFIviegtZkVilKcRuqw6laMwghvDLdX9BOplEYuMFw0BfJH5b8DJpzlWPqMyFzzN aEng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject :arc-authentication-results; bh=zRSd0wMIA6Ys13YdfT/5gJjT4IusKrHQev7fv7uSVg4=; b=j9j4Ug/MavyR2m5YMJDsydW+ox27mnaQxzD6i/0aI4HO0nsGflWJoaeRO1wPMU0kFj poNKfvqIj+DQD0UE6+KXACi/Re8IN9nhFQv3ZspCITxBQ1DHrtcKqtPcEuefwoE3XPM3 LrIgx4BCl+AgsHtwppJqGXayzTwdCXChuhCVC7m2HsWf4HptGxMl/PIXuU2gNRUoGALz Xl9EyPsvUMGnSnBRxQkTOm3ytUCRwFYhHjKnnXZnI09LtUyGvPD6DT6EiX96iFYb8KHv 0ilrihhv3nDZE5jDtzSrLPLq9W64d/JbDSbkL5Dut+nrKAqhm8sVpcz41/uLo9NmojwJ 7gPQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id d1si55484wmd.2.2017.11.13.06.08.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 06:08:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id vADE83lC005584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 13 Nov 2017 15:08:05 +0100 Subject: Re: [PATCH] build.sh: Fix perl complaints about locale From: Alexander Smirnov To: isar-users@googlegroups.com References: <20171113131931.tnbt64umjgcmmne7@MD1KR9XC.ww002.siemens.net> <2e4a157d-6981-c979-30f4-56f1fd58790a@ilbers.de> Message-ID: Date: Mon, 13 Nov 2017 17:07:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <2e4a157d-6981-c979-30f4-56f1fd58790a@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: CZ1U5zRZaHLL On 11/13/2017 04:44 PM, Alexander Smirnov wrote: > Hi, > > On 11/13/2017 04:19 PM, Christian Storm wrote: >>> On 11/13/2017 03:21 PM, Christian Storm wrote: >>>> 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... Alex >> >> --- a/meta/recipes-devtools/buildchroot/files/build.sh >> +++ b/meta/recipes-devtools/buildchroot/files/build.sh >> @@ -3,6 +3,8 @@ >>   # This software is a part of ISAR. >>   # Copyright (C) 2015-2017 ilbers GmbH >> +[ -r /etc/default/locale ] && . /etc/default/locale >> + >>   # Go to build directory >>   cd $1 >> -- >> >> for which I could send a patch if this is OK for you.. >> >> >>> BTW, which target distro do you use, Stretch? I already have this >>> issue in todo list, but you are welcome to fix this. :-) >> >> Yes, stretch. >> >> >> >> Besten Gruß, >>     Christian >> >