From patchwork Fri Feb 17 18:53:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov via arch-projects X-Patchwork-Id: 13 Return-Path: Delivered-To: patchwork@archlinux.org Received: from nymeria.archlinux.org by nymeria.archlinux.org (Dovecot) with LMTP id 9+NoLJ1Gp1gBXAAAtiB/HQ for ; Fri, 17 Feb 2017 19:53:17 +0100 Received: from nymeria.archlinux.org (localhost.localdomain [127.0.0.1]) by nymeria.archlinux.org (Postfix) with ESMTP id A71B54030D; Fri, 17 Feb 2017 19:53:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on nymeria.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=2.5 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.1 Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by nymeria.archlinux.org (Postfix) with ESMTPS; Fri, 17 Feb 2017 19:53:15 +0100 (CET) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 5996423675; Fri, 17 Feb 2017 18:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1487357595; bh=Jqgs5J9WG1GVue65C2kg2Zme3GL1CMmlC3FSdWqR/DQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc; b=TTia7Kt7MGmxuJyb3c1L3rjM6NbJ3NokGrKUoS5jLHl5AyCDltReFCA4WKMc5IQLD lauxbF62uPThN05zt4EYH1XgJTNWwiF5z4lcuw6KRlnSyg3PacXvNXrFxnmKnfZmpJ Clirl0aY9aA4hbUScRwC+dofjrjCfvVwfBXutHofbhEk3/aUkQouH0UVP67tN9nPIO 87ygSp6LumJMZd4WDRDInSeWv075tIR/r7J/m3UiHoz3qi5hmeSp3xiA5A8PIEFba6 IcUMq6dyb7h8hV5e4+Dv/+jnP6glkcH5d+kmVpsEsxv887eZ+RdwEkxU7FLYrwz8s2 GF3g8twKIW8WxEWvkQEM0smv3ZweAHAw05Ojz7pD2Y7f0Zc2XzszhROwIby9Wo3h+t 3dneKH4tCHpI0Us9dib15ptd7YeZKRlKYHbV8HkHAMSLA7HavnnAg6okBNgW3cSsiy 7PrZ0FREH42R0S2SHNvW1Orm2jY5VHFCBzg7e68TIjxVTGhLIBsKXyD54SeLvrkkto YzsZH8teOIVtkqyscaQ8hCGQZsmYg44muNTjKh9nulo/x9j/kb4dnNYolh7xjPZLgV U2sn8PhN51Sgwbd9nv6Cw2+Hajr/HnvSy+9hMtYX2GZdBVcsZ/7DAuLceZ7uxdP4yv Gnbg6zBqZf1Ixmtd/M92vjxY= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 9AA5F23671 for ; Fri, 17 Feb 2017 18:53:13 +0000 (UTC) Received: from nymeria.archlinux.org (nymeria.archlinux.org [89.238.67.251]) by luna.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Feb 2017 18:53:13 +0000 (UTC) Received: from nymeria.archlinux.org (localhost.localdomain [127.0.0.1]) by nymeria.archlinux.org (Postfix) with ESMTP id 3989040241 for ; Fri, 17 Feb 2017 19:53:12 +0100 (CET) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by nymeria.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Feb 2017 19:53:12 +0100 (CET) Received: by mail-wm0-x244.google.com with SMTP id c85so4049134wmi.1 for ; Fri, 17 Feb 2017 10:53:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DXZi8wR5rZDzsP2aJJFAcP3I3rrQwpxUx8U86ZLdL7Q=; b=Dq+FD5cjpPf5I7VT3nxhCFw4Ny9ibcnaQJFcopqYp5ulnZruXS7UMKHfm7Lmq9GZoe VjdQUyORXsdX90gJ2hWXGk/G6V0pWMVyL4j17kZuMV0H/HiE3Ycj1/Dl7gLOvfDhn65z Rb4+atC5YFzW5sc1jQ1Qnn55RnIoGp3xiBsh6mBA9Z/8iSOpHacucbM2eS2gVbwPtK2b 2ZWdvdh3oHEMbITRgNpYeApXvZMZVbObJ/jK+3NEoTaoI80F8xGlKibS3DEL+s4S2AIz qujNKAOhLnMHHF8Gp1PBZIanapzejVNSLTlMt4iM1YdJphc3vdsYf1RwZoGiQQrbXP+I 1CUg== X-Gm-Message-State: AMke39k1i1jTyoUz2AiSKKOiekRv+szQD34SV2uokgvzIwUroD8RdyoJCx4cNMjtrKKnbQ== X-Received: by 10.28.54.226 with SMTP id y95mr3070132wmh.105.1487357590975; Fri, 17 Feb 2017 10:53:10 -0800 (PST) Received: from philomeena.fritz.box (philomeena.heftig.homenet.org. [2001:4dd0:ff22:0:4685:ff:fe94:4571]) by smtp.gmail.com with ESMTPSA id q5sm13927352wrd.32.2017.02.17.10.53.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Feb 2017 10:53:09 -0800 (PST) To: arch-projects@archlinux.org Date: Fri, 17 Feb 2017 19:53:01 +0100 Message-Id: <20170217185301.22193-1-jan.steffens@gmail.com> X-Mailer: git-send-email 2.11.1 Subject: [arch-projects] [devtools] [PATCH] mkarchroot: Set LANG=en_US.UTF-8 X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Jan Alexander Steffens \(heftig\) via arch-projects" Reply-To: Arch Linux projects development discussion Cc: "Jan Alexander Steffens \(heftig\)" Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" X-UID: 43 Status: X-Keywords: Content-Length: 1575 In order to have an UTF-8 locale in the build root. This is something normally set on real machines but is not set from our chroots. Meson, for example, loudly complains when the locale charset is not UTF-8. I'd like to have C.UTF-8, as most other distributions do. Unfortunately, it's not part of vanilla glibc; en_US.UTF-8 will have to do. mkarchroot already creates roots with both en_US.UTF-8 and de_DE.UTF-8, the latter because builds of gcc (perhaps used to) require it. Bump the CHROOT_VERSION due to the setting change. --- arch-nspawn.in | 2 +- mkarchroot.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch-nspawn.in b/arch-nspawn.in index e46b57ffcdc2cda2..b5fcc9d51e3768f3 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -10,7 +10,7 @@ m4_include(lib/common.sh) -CHROOT_VERSION='v3' +CHROOT_VERSION='v4' working_dir='' diff --git a/mkarchroot.in b/mkarchroot.in index 4d8efb0d8a90f873..c4bb51a1d218a78c 100644 --- a/mkarchroot.in +++ b/mkarchroot.in @@ -10,7 +10,7 @@ m4_include(lib/common.sh) -CHROOT_VERSION='v3' +CHROOT_VERSION='v4' working_dir='' @@ -72,7 +72,7 @@ pacstrap -GMcd ${pac_conf:+-C "$pac_conf"} "$working_dir" \ "${cache_dirs[@]/#/--cachedir=}" "$@" || die 'Failed to install all packages' printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen" -echo 'LANG=C' > "$working_dir/etc/locale.conf" +echo 'LANG=en_US.UTF-8' > "$working_dir/etc/locale.conf" echo "$CHROOT_VERSION" > "$working_dir/.arch-chroot" systemd-machine-id-setup --root="$working_dir"