From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487873561298993152 X-Received: by 10.46.91.212 with SMTP id m81mr363226lje.8.1510579241862; Mon, 13 Nov 2017 05:20:41 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.66.144 with SMTP id h16ls4120983ljf.11.gmail; Mon, 13 Nov 2017 05:20:41 -0800 (PST) X-Google-Smtp-Source: AGs4zMbxEDu3/s1n9Sc3WwUDlgd1leufmbij7IsSJ6g0Le5+KtfwTNqyAbYK6byaSz0xUElUxvtH X-Received: by 10.25.199.133 with SMTP id x127mr410395lff.36.1510579241098; Mon, 13 Nov 2017 05:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579241; cv=none; d=google.com; s=arc-20160816; b=LYsRD263xVtF5zXSDBCQIC0bYzKecuyKKGZUVHriOSyuE3r2QdnOAYQR7eG/kOBIn5 RZcVNjCUi9UyaH9UBO+adqaNcXYe8PC6ov9+vD8pgScorpjS97kX1KzfFXceI7igjWRM P7/XeY79EMmjvQGD2jU4pIs4VQc0LHnlnEU/mnthXNkjooYWcdn8SKfu/rwehEKqo3IQ JbNLdY/4+30b0gkD7PvFZLHxCL055Ms0j2oMwCm9I5ToQDFEn5+ZrANtRGaX9Y5dCz1j l84Qqwc1gQI/aUomLo7Czw1fJnMwfgiDlMucwVRUA+aMj/cMaZFs5Vji09RHCdPaBn38 0Z8g== 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=U7Xh//fpZthVHbE8FtJGYeuLikFQFVKOAqvEsipUJQA=; b=zGl1h+nE76ioxv1q+gAOeqGWtv0Vv9ycAD39ynsFaBKBar4IlrqxKyQH+F72hXB2Zz gm9XpKUbimag0buIVfh7qCVI/5S3FPa5qrZhSGFtKNXsMKhuy5BS/kCuw+rLMceiaLmH oM6UemaSLoWfKrtct3UWwULaylfQVvVpIPT7OCjkJxlvDH/0AzLUauceuTpAyzd7STH7 HQKnILfpkhrSg+nkof2bPLMATTX2rulUJYAzpw1+sZr+wl9urWL8FaqU2Hz+8Mcg5ysb pPZvH5pBEvpR0ayUFH8dYaJoO++5Y6X0WZUyNJgb0Nj8mkyJs00YauzArdRLlMf/Jo+F bXOw== 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 w29si1330995lfc.1.2017.11.13.05.20.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 05:20:40 -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 mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vADDKdhI020870 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 13 Nov 2017 14:20:39 +0100 Received: from localhost ([139.25.69.251]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTPS id vADDKdJe030637 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 13 Nov 2017 14:20:39 +0100 Date: Mon, 13 Nov 2017 14:19:31 +0100 From: Christian Storm To: isar-users@googlegroups.com Subject: Re: [PATCH] build.sh: Fix perl complaints about locale Message-ID: <20171113131931.tnbt64umjgcmmne7@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: <6c84c20e-96df-03d5-7f60-0c31597d9813@ilbers.de> User-Agent: Mutt/20170113 (1.7.2) X-TUID: ciCbf5JZxQS3 > 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 --- 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 -- Dr. Christian Storm Siemens AG, Corporate Technology, CT RDA ITP SES-DE Otto-Hahn-Ring 6, 81739 M�nchen, Germany