public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: claudius.heine.ext@siemens.com
To: isar-users@googlegroups.com
Cc: Claudius Heine <ch@denx.de>
Subject: [PATCH 1/2] classes/isar-bootstrap-helper: set locale variables
Date: Thu, 26 Apr 2018 15:40:53 +0200	[thread overview]
Message-ID: <20180426134054.18815-2-claudius.heine.ext@siemens.com> (raw)
In-Reply-To: <20180426134054.18815-1-claudius.heine.ext@siemens.com>

From: Claudius Heine <ch@denx.de>

Some Perl warnings happend while installing packages via apt on the
rootfs. Setting the base locale variables should fix those.

Signed-off-by: Claudius Heine <ch@denx.de>
---
 meta/classes/isar-bootstrap-helper.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/isar-bootstrap-helper.bbclass b/meta/classes/isar-bootstrap-helper.bbclass
index e062921..4284d02 100644
--- a/meta/classes/isar-bootstrap-helper.bbclass
+++ b/meta/classes/isar-bootstrap-helper.bbclass
@@ -32,6 +32,10 @@ setup_root_file_system() {
     # Install packages:
     E="${@ bb.utils.export_proxies(d)}"
     export DEBIAN_FRONTEND=noninteractive
+    # To avoid Perl locale warnings:
+    export LANG=C
+    export LANGUAGE=C
+    export LC_ALL=C
     sudo -E chroot "$ROOTFSDIR" /usr/bin/apt-get update \
         -o Dir::Etc::sourcelist="sources.list.d/isar-apt.list" \
         -o Dir::Etc::sourceparts="-" \
-- 
2.17.0


  reply	other threads:[~2018-04-26 13:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 13:40 [PATCH 0/2] Fixup Perl warnings about locale claudius.heine.ext
2018-04-26 13:40 ` claudius.heine.ext [this message]
2018-04-26 13:40 ` [PATCH 2/2] buildchroot/build.sh: set locale variables claudius.heine.ext
2018-04-26 16:55 ` [PATCH 0/2] Fixup Perl warnings about locale Alexander Smirnov
2018-04-26 17:27   ` Claudius Heine
2018-04-26 18:15     ` Alexander Smirnov
2018-05-15 12:21       ` Alexander Smirnov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180426134054.18815-2-claudius.heine.ext@siemens.com \
    --to=claudius.heine.ext@siemens.com \
    --cc=ch@denx.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox