From unknown Thu Aug 14 22:23:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#70280 <70280@debbugs.gnu.org> To: bug#70280 <70280@debbugs.gnu.org> Subject: Status: [PATCH 0/5] Reducing system size: locales and initrd Reply-To: bug#70280 <70280@debbugs.gnu.org> Date: Fri, 15 Aug 2025 05:23:50 +0000 retitle 70280 [PATCH 0/5] Reducing system size: locales and initrd reassign 70280 guix-patches submitter 70280 Ludovic Court=C3=A8s severity 70280 normal tag 70280 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 08 10:23:13 2024 Received: (at submit) by debbugs.gnu.org; 8 Apr 2024 14:23:13 +0000 Received: from localhost ([127.0.0.1]:47316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtptx-0000a2-9P for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:23:13 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtptv-0000Yc-HP for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:23:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtptg-00056L-7F for guix-patches@gnu.org; Mon, 08 Apr 2024 10:22:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtptf-000436-UU; Mon, 08 Apr 2024 10:22:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=r8pa+MouYJdgSTP6DqlqH/xIViKhZOXeRreD/biglpw=; b=hhxmwzMWhoGHaN TLfCXiYpOuazFuA71xz5482SHB2OJAGJVy/rzN5kGB4/XLsxl9SaWPdocfKTf9zHMfNlmYTbuXSDm P3Ya50v1jTpkG84/aW/6Kr8o/Jj0kX7dp+dvdrFY8rpJOTVaZ2FdVqoKh6wcXS/yg99cqB3u93M5e q9ThjQ2S5HWnVa1JyroJxUSmkGMgUG3oUGceW/Js2J8vzddldOtuRm1DGEpOqPUgOYHwnEWqcTYcn 4adrQZK6SXEKU9CkX+KeICBtt3cwOJM1axEm0tPlyVTaI8qJVQgG9B+iiDUz8w0s86fiLFv4wEfIE 10fnfes2X6mtnxMwWSKg==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/5] Reducing system size: locales and initrd Date: Mon, 8 Apr 2024 16:22:38 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Guix, I noticed¹ that ‘bare-bones.tmpl’ now leads to instances around 1.5 GiB, which I think is totally unreasonable, to say the least. This patch series does the easy changes to get it to ~1.1 GiB, which is still unreasonable, but at least should allow our installation tests to run without having to increase the disk size again. Thoughts? The next but more difficult steps will be stripping Guix and Linux: --8<---------------cut here---------------start------------->8--- $ guix size $(./pre-inst-env guix system build gnu/system/examples/bare-bones.tmpl) | head store item total self /gnu/store/c650m9hh6zydh5nvnm4nk0m9y17y81cp-guix-1.4.0-18.4c94b9e 706.0 400.6 30.9% /gnu/store/4z12nyxz5vc4r2hds08p2sfm0yjhlcka-linux-libre-6.7.11 119.6 119.6 9.2% /gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9 135.0 53.1 4.1% /gnu/store/bhynhk0c6ssq3fqqc59fvhxjzwywsjbb-guile-3.0.9 135.0 53.1 4.1% /gnu/store/zh8ggd9z115agdx7yllvbr6vlg4zlis8-guile-static-initrd-3.0.9 46.0 46.0 3.6% /gnu/store/lcygm0p2d59acvwi12lwldg5c0d4czpr-git-minimal-2.41.0 148.1 41.2 3.2% /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35 40.6 38.8 3.0% /gnu/store/6ncav55lbk5kqvwwflrzcr41hp5jbq0c-gcc-11.3.0-lib 75.3 34.7 2.7% /gnu/store/b8wdz91p43s4kw26b300g4k3ap561fyk-locale-2.35 28.3 28.3 2.2% --8<---------------cut here---------------end--------------->8--- Ludo’. ¹ https://ci.guix.gnu.org/build/3708442/details Ludovic Courtès (5): system: Remove ‘glibc-2.33’ from ‘%default-locale-libcs’. system: ‘operating-system-locale-definitions’ includes the OS’ locale. locale: Shrink ‘%default-locale-definitions’ from 34 to 10 locales. services: build-vm: Provide only one locale. linux-initrd: Further strip the static Guile. doc/guix.texi | 5 +-- gnu/packages/make-bootstrap.scm | 37 ++++++++++++++++++--- gnu/services/virtualization.scm | 9 +++++ gnu/system.scm | 28 ++++++++-------- gnu/system/linux-initrd.scm | 4 +-- gnu/system/locale.scm | 58 +++++++++------------------------ 6 files changed, 77 insertions(+), 64 deletions(-) base-commit: cd45294d576975a3bff2f755764a3f46f09ea6f9 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 08 10:25:04 2024 Received: (at 70280) by debbugs.gnu.org; 8 Apr 2024 14:25:04 +0000 Received: from localhost ([127.0.0.1]:47326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvj-0000mr-0g for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvg-0000lP-Im for 70280@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtpvT-0004Fn-Mt; Mon, 08 Apr 2024 10:24:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=iInYKZnw2sG35iq5Ac97U/eZS5uePUVEBFaUaxhr9s4=; b=qls7Kdyw6BJhFCZ6PmKS 5H3jLdsXa/2QeWS8to7D2TAX91tyiiZlRtgUx2vWuFcnwLqw6BxnMIi+1geYqUqdSdGlh6id5+Rg+ iEwUs1+RUnLqFPyNSGMtLURKGBmt6hffsHgNiBawLbQ3j4P53giMnzVi4TfVMYcjSfE4/RnR82I3k jTqn6zYN6s0y+dVlbqO18KKs0Me08LwC93fxch/Na27j+NVyxuMq5qoC2qj/fm+Dy1XAd7gBuWusz NlNlHbm0fzTOUygwvFeM6RHyyEI6FWlcgFTyV3m1hAepQi38i3fNHOVNyUT694+B/NY+BH8Sr8hPh eCEjWP8OutftJw==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 70280@debbugs.gnu.org Subject: [PATCH 1/5] =?UTF-8?q?system:=20Remove=20=E2=80=98glibc-2.33?= =?UTF-8?q?=E2=80=99=20from=20=E2=80=98%default-locale-libcs=E2=80=99.?= Date: Mon, 8 Apr 2024 16:24:31 +0200 Message-ID: <41f0a119e008fff73ae97faa3f55e5b8faf4ba2d.1712585810.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) The transition from glibc 2.33 to 2.35 was done in c919bfefd98bf2e29549539b4e28e6dc2a8a6f32 (one year ago), so we can assume that the backward-compatible locales are no longer needed by default. This removes 92 MiB from the system closure. * gnu/system/locale.scm (%default-locale-libcs): Remove GLIBC-2.33. Change-Id: I85948bbe6b2d424f9f158eeafdb5543688c66c6b --- gnu/system/locale.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/system/locale.scm b/gnu/system/locale.scm index bc572baeb9..4ea82e24d5 100644 --- a/gnu/system/locale.scm +++ b/gnu/system/locale.scm @@ -150,7 +150,7 @@ (define %default-locale-libcs ;; The libcs for which we build locales by default. (if (system-hurd?) (list glibc/hurd) - (list glibc-2.33 glibc))) + (list glibc))) (define %default-locale-definitions ;; Arbitrary set of locales that are built by default. They are here mostly -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 08 10:25:08 2024 Received: (at 70280) by debbugs.gnu.org; 8 Apr 2024 14:25:08 +0000 Received: from localhost ([127.0.0.1]:47332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvn-0000nX-Er for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvh-0000lY-CC for 70280@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtpvU-0004G5-JS; Mon, 08 Apr 2024 10:24:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=dNLoZne8UhuMwX71QqUqHTzRrS7ci50aViBq89NAu+g=; b=TVh8uvhg8pRevsrFFNs6 G+OsUy0cmlBV9LHEKT6qvnSzq0945eVaMmbGDqW9TDdFpCzqOrOPjfMjy3pRk/vmVC0hBQXfmLGbL s5/0JAN7GzUWrr/19CxzcxbioxXDCJC4NxZefoDgJBLMCSyyfz7ulfRAKjpsCukOPs4NzNo8rnREB sKJLhw+bsQ4jryoSS/fufaeKJHGUIy3kKACbggxc2ktc8z9NaLgB3msy3iPn/j4N1S0W2AQCjkTzd /AlaTNUsUDsAOrcvBvpOik4F1ulSChrczglRbFO4BEGCCwe2qcRzqS9/futUC+4/yTLXt2adP/jUu cip0ZUaRI9Nclg==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 70280@debbugs.gnu.org Subject: [PATCH 2/5] =?UTF-8?q?system:=20=E2=80=98operating-system-locale-?= =?UTF-8?q?definitions=E2=80=99=20includes=20the=20OS=E2=80=99=20locale.?= Date: Mon, 8 Apr 2024 16:24:32 +0200 Message-ID: <184c38bf07d985a8831f60024a2ae94e2fd6804d.1712585810.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/system.scm ()[locale-definitions]: Mark as thunked. Default to (operating-system-default-locale-definitions os). (operating-system-default-locale-definitions): New procedure. (operating-system-locale-directory): Remove logic to add the OS ‘locale’, instead assuming (operating-system-locale-directory os) has everything. * doc/guix.texi (operating-system Reference): Adjust accordingly. Change-Id: I8798fa0de7421e0bfc07870cc3cae6b7f99fa47d --- doc/guix.texi | 3 ++- gnu/system.scm | 28 +++++++++++++++------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 5827e0de14..7ca06046ba 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -17502,7 +17502,8 @@ operating-system Reference The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information. -@item @code{locale-definitions} (default: @code{%default-locale-definitions}) +@item @code{locale-definitions} (default: @ + @code{(operating-system-default-locale-definitions os)}) The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}. diff --git a/gnu/system.scm b/gnu/system.scm index aef81d8ccf..94d734b014 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -282,7 +282,9 @@ (define-record-type* operating-system (locale operating-system-locale ; string (default "en_US.utf8")) (locale-definitions operating-system-locale-definitions ; list of - (default %default-locale-definitions)) + (thunked) + (default (operating-system-default-locale-definitions + this-operating-system))) (locale-libcs operating-system-locale-libcs ; list of (default %default-locale-libcs)) (name-service-switch operating-system-name-service-switch ; @@ -1397,22 +1399,22 @@ (define (locale-name->definition* name) (raise (formatted-message (G_ "~a: invalid locale name") name))) (def def))) +(define (operating-system-default-locale-definitions os) + "Return the default locale definitions for OS, which includes that specified +in its 'locale' field." + (define name + (operating-system-locale os)) + + (if (member name (map locale-definition-name %default-locale-definitions)) + %default-locale-definitions + (cons (locale-name->definition* name) + %default-locale-definitions))) + (define (operating-system-locale-directory os) "Return the directory containing the locales compiled for the definitions listed in OS. The C library expects to find it under /run/current-system/locale." - (define name - (operating-system-locale os)) - - (define definitions - ;; While we're at it, check whether NAME is defined and add it if needed. - (if (member name (map locale-definition-name - (operating-system-locale-definitions os))) - (operating-system-locale-definitions os) - (cons (locale-name->definition* name) - (operating-system-locale-definitions os)))) - - (locale-directory definitions + (locale-directory (operating-system-locale-definitions os) #:libcs (operating-system-locale-libcs os))) (define* (kernel->boot-label kernel #:key hurd) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 08 10:25:08 2024 Received: (at 70280) by debbugs.gnu.org; 8 Apr 2024 14:25:08 +0000 Received: from localhost ([127.0.0.1]:47334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvo-0000ng-1n for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvi-0000lm-Au for 70280@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtpvV-0004HW-J3; Mon, 08 Apr 2024 10:24:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=nUc4gjExsWwKUIKNxmJidVYmj7Emp/nATzr6VgU4jsk=; b=TRe35b0XPgNfgS2AuoKx /BqLsurAWIu5Q/LWolNn+8sm9tp5uyGsZwFuaMFGNgOqgHbc02I/OUKDcDwDFARrm54wf8EniB30N HXblxajYfHvAQ9+F+wUk7JhdRj0QNJk0lVnPa/9Pv4S39hji3LZwNqtiCOtt3A+j31qcf0eY6/cif 2i/yPsbhWpNzpu1oEl/QiZN19+T+aG9pgXsbm+Y4CYO2UxwzWgceFL3CL312CmlAMvMFWS3cmsTy2 cd9djUtXcoRts2eo6dLOPXZKHIdL4gBf9TmALfkGIswV5qgbUeKfYMU+oan0vyqBRoAzhrZexgzqf EZq4I88Rb8vYug==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 70280@debbugs.gnu.org Subject: [PATCH 3/5] =?UTF-8?q?locale:=20Shrink=20=E2=80=98%default-locale?= =?UTF-8?q?-definitions=E2=80=99=20from=2034=20to=2010=20locales.?= Date: Mon, 8 Apr 2024 16:24:33 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This reduces the default set of locales from 92 MiB to 28 MiB. * gnu/system/locale.scm (%default-locale-definitions): Reduce to 10 locales. Change-Id: I3c092604301d69db591957bcfd62a062c3ac5ab0 --- gnu/system/locale.scm | 56 ++++++++++++------------------------------- 1 file changed, 15 insertions(+), 41 deletions(-) diff --git a/gnu/system/locale.scm b/gnu/system/locale.scm index 4ea82e24d5..00eb902702 100644 --- a/gnu/system/locale.scm +++ b/gnu/system/locale.scm @@ -153,9 +153,10 @@ (define %default-locale-libcs (list glibc))) (define %default-locale-definitions - ;; Arbitrary set of locales that are built by default. They are here mostly - ;; to facilitate first-time use to some people, while others may have to add - ;; a specific . + ;; Arbitrary set of locales that are built by default. They come as a + ;; "bonus" in addition to that specified in the 'locale' field of the + ;; operating system, for the user's convenience, so they shouldn't take too + ;; much space. (letrec-syntax ((utf8-locale (syntax-rules () ((_ name*) (locale-definition @@ -167,44 +168,17 @@ (define %default-locale-definitions (utf8-locales (syntax-rules () ((_ name ...) (list (utf8-locale name) ...))))) - ;; Add "en_US.UTF-8" for compatibility with Guix 0.8. - (cons (locale-definition - (name "en_US.UTF-8") - (source "en_US") - (charset "UTF-8")) - (utf8-locales "ca_ES" - "cs_CZ" - "da_DK" - "de_DE" - "el_GR" - "en_AU" - "en_CA" - "en_GB" - "en_US" - "es_AR" - "es_CL" - "es_ES" - "es_MX" - "fi_FI" - "fr_BE" - "fr_CA" - "fr_CH" - "fr_FR" - "ga_IE" - "it_IT" - "ja_JP" - "ko_KR" - "nb_NO" - "nl_NL" - "pl_PL" - "pt_PT" - "ro_RO" - "ru_RU" - "sv_SE" - "tr_TR" - "uk_UA" - "vi_VN" - "zh_CN")))) + ;; The six UN official languages, with at most two variants per language. + (utf8-locales "ar_DZ" + "ar_JO" + "en_GB" + "en_US" + "es_AR" + "es_ES" + "fr_CA" + "fr_FR" + "ru_RU" + "zh_CN"))) ;;; -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 08 10:25:09 2024 Received: (at 70280) by debbugs.gnu.org; 8 Apr 2024 14:25:09 +0000 Received: from localhost ([127.0.0.1]:47336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvo-0000nq-Ks for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvk-0000m3-3x for 70280@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtpvX-0004Hn-CM; Mon, 08 Apr 2024 10:24:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=1WKWfZPtgZASpWRse19P3CuTAL/z/Fpc07XvH9Q+HpQ=; b=V8AZMlCVeJYNIvmjAxq7 vsmVHXK0uf8jsa3Cv0ekli5iCtJFp85qGVIei6zwmCJlVNlSeAIXhNmZBu9RMISf8F+k17NZ9kYvy Ttv4XHPnx40zWWLg/NzQyxhlY6sWwfqcfcma4Jm7Ymy35njyEvgjFPhcubLJuth49vUeF03C7Qapw eUTbiMLcbDRig0fKUvDZD5ZFTBj5OXtpffxLLFlehPWjqE1jr8+jNSj4aUfkJ0KC8XcDSzOA47GFx FtwTuR+rvpxQeIbdke40Ty3YlOj9K5oCGXWFn39s5f04vXs6T8Y0C6wFMs7Xp7J0DM+jbmNRPZ0L5 4zNAqZR3khwD+g==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 70280@debbugs.gnu.org Subject: [PATCH 5/5] linux-initrd: Further strip the static Guile. Date: Mon, 8 Apr 2024 16:24:35 +0200 Message-ID: <021746eea10ffcc41b5b870816210628f3685f99.1712585810.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) ‘guile-static-initrd’ weighs in at 46 MiB, compared to 54 MiB for ‘guile-static-stripped’ (15% reduction). * gnu/packages/make-bootstrap.scm (make-guile-static-stripped): Add ‘directories-to-remove’ parameter and honor it. (%guile-static-initrd): New variable. * gnu/system/linux-initrd.scm (expression->initrd): Default to ‘%guile-static-initrd’. * doc/guix.texi (Initial RAM Disk): Adjust accordingly. Change-Id: I2baf06fed7a3698433e7c83b1d7726054a8c746e --- doc/guix.texi | 2 +- gnu/packages/make-bootstrap.scm | 37 ++++++++++++++++++++++++++++----- gnu/system/linux-initrd.scm | 4 ++-- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 7ca06046ba..705f7d7de2 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -41339,7 +41339,7 @@ Initial RAM Disk program to run in that initrd. @deffn {Procedure} expression->initrd exp @ - [#:guile %guile-static-stripped] [#:name "guile-initrd"] + [#:guile %guile-static-initrd] [#:name "guile-initrd"] Return as a file-like object a Linux initrd (a gzipped cpio archive) containing @var{guile} and that evaluates @var{exp}, a G-expression, upon booting. All the derivations referenced by @var{exp} are diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm index 7b40f395f3..4dd45a4a27 100644 --- a/gnu/packages/make-bootstrap.scm +++ b/gnu/packages/make-bootstrap.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012-2021, 2023 Ludovic Courtès +;;; Copyright © 2012-2021, 2023-2024 Ludovic Courtès ;;; Copyright © 2017, 2021 Efraim Flashner ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018, 2019 Mark H Weaver @@ -55,7 +55,8 @@ (define-module (gnu packages make-bootstrap) %guile-bootstrap-tarball %bootstrap-tarballs - %guile-static-stripped)) + %guile-static-stripped + %guile-static-initrd)) ;;; Commentary: ;;; @@ -674,7 +675,8 @@ (define %guile-static-3.0 "guile-3.0-linux-syscalls.patch" "guile-3.0-relocatable.patch"))) -(define* (make-guile-static-stripped static-guile) +(define* (make-guile-static-stripped static-guile + #:optional (directories-to-remove '())) (package (inherit static-guile) (name (string-append (package-name static-guile) "-stripped")) @@ -702,6 +704,12 @@ (define* (make-guile-static-stripped static-guile) (mkdir (string-append out "/bin")) (copy-file guile1 guile2) + ;; Optionally remove additional directories. + (for-each (lambda (directory) + (delete-file-recursively + (string-append out "/" directory))) + '#$directories-to-remove) + ;; Verify that the relocated Guile works. #$@(if (%current-target-system) '() @@ -720,10 +728,29 @@ (define* (make-guile-static-stripped static-guile) (synopsis "Minimal statically-linked and relocatable Guile"))) (define %guile-static-stripped - ;; A stripped static Guile 3.0 binary, for use in initrds - ;; and during bootstrap. + ;; A stripped static Guile 3.0 binary for use during bootstrap. (make-guile-static-stripped %guile-static-3.0)) +(define %guile-static-initrd + ;; A stripped static Guile 3.0 binary for use in initrds. Remove various + ;; modules that are useless in an initrd. Note: Keep most of language/ + ;; because it is needed for Bournish. + (package + (inherit + (make-guile-static-stripped + %guile-static-3.0 + (append-map (lambda (directory) + (list (string-append "lib/guile/3.0/ccache/" directory) + (string-append "share/guile/3.0/" directory))) + '("language/brainfuck" + "language/ecmascript" + "language/elisp" + "oop" + "scripts" + "texinfo" + "web")))) + (name "guile-static-initrd"))) + (define (tarball-package pkg) "Return a package containing a tarball of PKG." (package diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index 561cfe2fd0..00221333da 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm @@ -36,7 +36,7 @@ (define-module (gnu system linux-initrd) #:use-module ((gnu packages xorg) #:select (console-setup xkeyboard-config)) #:use-module ((gnu packages make-bootstrap) - #:select (%guile-static-stripped)) + #:select (%guile-static-initrd)) #:use-module (gnu system file-systems) #:use-module (gnu system mapped-devices) #:use-module (gnu system keyboard) @@ -62,7 +62,7 @@ (define-module (gnu system linux-initrd) (define* (expression->initrd exp #:key - (guile %guile-static-stripped) + (guile %guile-static-initrd) (gzip gzip) (name "guile-initrd") (system (%current-system))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 08 10:25:17 2024 Received: (at 70280) by debbugs.gnu.org; 8 Apr 2024 14:25:18 +0000 Received: from localhost ([127.0.0.1]:47338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvt-0000oI-F4 for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvj-0000lw-6x for 70280@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtpvW-0004Hc-EU; Mon, 08 Apr 2024 10:24:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=8QGDCSotZVbEDfJ9dYDP8Bmy8WaBy+9oFJ2YLEYdSsQ=; b=ln2c6jr63UDEAiG8wAPH kT78C8Bf68torr/2Sgqp9qy69nSWFOfmwbw8kfLmIUrah4L1/1pNfM9r9WZYCKz8uAPvPhzzcFB+g 5sxGhLh7tLSILNeVv5snYCKwT1/ieBrPTAdV5U0zBWq8eerBlQEXQ5X9OvlHkNm0s0iYNOJQycyHV NB+9XvTGT561m2FuDHLqfMtNURCIWjJxjV82xfadORwShksEclho9j7WSZxk0scpi5lyz2YHPJVzm F0vMQ17Th3Gb5IYBf89AgMQCiH4mL8pngncLSdx7RhewjGx5K8Fg20YCL0DL7LKBnUorAs4xMY/29 J0sQmw6ccBEN6g==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 70280@debbugs.gnu.org Subject: [PATCH 4/5] services: build-vm: Provide only one locale. Date: Mon, 8 Apr 2024 16:24:34 +0200 Message-ID: <782fcd725ad7a8e576f6ee24259697d8aff714dd.1712585810.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/services/virtualization.scm (%virtual-build-machine-operating-system) [locale, locale-definitions]: New fields. Change-Id: Ieb24b3a0c210291d8c04412e4c263b5e377b5704 --- gnu/services/virtualization.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index fc5adb94d0..d87e494348 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm @@ -46,6 +46,7 @@ (define-module (gnu services virtualization) #:use-module (gnu system shadow) #:autoload (gnu system vm) (linux-image-startup-command virtualized-operating-system) + #:autoload (gnu system locale) (locale-definition) #:use-module (gnu system) #:use-module (guix derivations) #:use-module (guix gexp) @@ -1190,6 +1191,14 @@ (define %minimal-vm-syslog-config (define %virtual-build-machine-operating-system (operating-system (host-name "build-machine") + + (locale "en_US.utf8") + (locale-definitions + ;; Save space by providing only one locale. + (list (locale-definition (name "en_US.utf8") + (source "en_US") + (charset "UTF-8")))) + (bootloader (bootloader-configuration ;unused (bootloader grub-minimal-bootloader) (targets '("/dev/null")))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 09 15:38:32 2024 Received: (at 70280) by debbugs.gnu.org; 9 Apr 2024 19:38:32 +0000 Received: from localhost ([127.0.0.1]:51584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruHIe-0004f2-Bu for submit@debbugs.gnu.org; Tue, 09 Apr 2024 15:38:32 -0400 Received: from relay.yourmailgateway.de ([188.68.63.102]:37467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruHIb-0004es-18 for 70280@debbugs.gnu.org; Tue, 09 Apr 2024 15:38:31 -0400 Received: from mors-relay-2502.netcup.net (localhost [127.0.0.1]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4VDbpz32nQz61Qj; Tue, 9 Apr 2024 21:38:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1712691499; bh=JQFIw+fxH+Z0h+v5jz+tmZbMq0MgbQnSCJxvDocnIfQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MNwUIOHyAFLTQRKyqw3usmdYVT4J8qRxiifiOstvGQrUTOQlsH6zKsE5FxZe7xQAV m5F5DMO81PjlCuZIR9DWKNsedHv4DV33ttpCVFAAxWV6FbtJGIkioR7ps5vjHW7lkH zx7vIj3UfEIztbK64lWLozd+7uzUcD1mUKjzziUJe5saPApDyCtu8SoTDaYmNsSTp1 1/aXcTZj7p3XYQVBFnIJt2HKPR9uuPECnK9q20/zTtFy8lFNOHLplsLxmLGX5YzFom 3Kp+0Cc+ucyT7na+wakLkmxhPaJEUjtFkU9v7+EsEBRDXuQGvPw9JxVaZpeZ8CEms7 MeiXnwAVgAKTQ== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4VDbpz2Kr4z4y0g; Tue, 9 Apr 2024 21:38:19 +0200 (CEST) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4VDbpy6QHyz8sch; Tue, 9 Apr 2024 21:38:18 +0200 (CEST) Received: from florianrock64 (ip92344de0.dynamic.kabel-deutschland.de [146.52.77.224]) by mxe217.netcup.net (Postfix) with ESMTPSA id 72B2983817; Tue, 9 Apr 2024 21:38:13 +0200 (CEST) From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#70280] [PATCH 3/5] locale: Shrink =?utf-8?Q?=E2=80=98%default-locale-definitions=E2=80=99?= from 34 to 10 locales. In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Mon, 8 Apr 2024 16:24:33 +0200") References: Date: Tue, 09 Apr 2024 21:38:12 +0200 Message-ID: <87frvus4wr.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 72B2983817 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: QZwbjqOG9/cQcK1o9n9i1bwqOcIND7MjmbjfEkxFqrIX78aeWu8ybi3q X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Ludo. Even though with my base commit I get 70MB more than you do (from 1460.5MB down to 1296.1MB), your patches still bring good improvement. So (operating-system-locale-definitions os) can now be changed to something other than operating-system-locale-definitions that does not include locale. Perhaps this is useful when one does not want utf8 but EUC-JP like in the =E2=80=9Cinfo "(guix)Locales"=E2=80=9D? Okay. I agree with shrinking default locales, but do not understand what benefit it brings that U.N. languages are always included. Perhaps it would be more useful to include en_US only? Locales like fr_CA and ar_JO do not even have separate teams on translationproject.org. There are reasons for developers to include interesting locales for testing like tr_TR or az_AZ, where capitalized i is =C4=B0 and small I is =C4=B1, b= reaking all kinds of programs, but few people would know. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 05:09:28 2024 Received: (at 70280) by debbugs.gnu.org; 10 Apr 2024 09:09:28 +0000 Received: from localhost ([127.0.0.1]:52154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruTxO-0004Rc-4w for submit@debbugs.gnu.org; Wed, 10 Apr 2024 05:09:28 -0400 Received: from relay.yourmailgateway.de ([188.68.63.98]:44561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruTxJ-0004Qf-Mo for 70280@debbugs.gnu.org; Wed, 10 Apr 2024 05:09:24 -0400 Received: from mors-relay-2501.netcup.net (localhost [127.0.0.1]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4VDxpb7105z61vY; Wed, 10 Apr 2024 11:09:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1712740152; bh=lGU745nWS+5mipM4i0fvZP3y5LzZICddJXb/C5/Q0vQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=T525JzkoE5ms3iT2yRbWvgZTT46N9kJzpIAhWxkGt3aYA24huSjWg6AIpe0q0mFTk kh8LIcbjEEiz4XVA8BuNnQfR3kL3FTs2a5Ygs5QUMyNcu4uHoy1Z1r3P7y9iPmsLab ZhcNFVJkwKwCQPKLqi9OjpXoWSmThq8kgenglX5VuEWKpssdRCAZ3dRYu9O1zs8ZrX anlpcuKvYpyDkRSVbEgsQf8AkU98tBXG7X2wWbMUAp3Q1EEefmxbrdN8MYiuVtHPjc KqI/XTMAPAdB5+LSUzvS8BYuNFA5wFexSr0BJldE9JjviQMuYObqU3MaUJFj2FD1x0 mdhuOX1J8alEA== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4VDxpb6HK3z4yxQ; Wed, 10 Apr 2024 11:09:11 +0200 (CEST) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4VDxpb3DcXz8sgw; Wed, 10 Apr 2024 11:09:11 +0200 (CEST) Received: from florianrock64 (ip92344de0.dynamic.kabel-deutschland.de [146.52.77.224]) by mxe217.netcup.net (Postfix) with ESMTPSA id 9558983533; Wed, 10 Apr 2024 11:09:05 +0200 (CEST) From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#70280] [PATCH 2/5] system: =?utf-8?Q?=E2=80=98operating-system-locale-definitions=E2=80=99?= includes the =?utf-8?Q?OS=E2=80=99?= locale. In-Reply-To: <184c38bf07d985a8831f60024a2ae94e2fd6804d.1712585810.git.ludo@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Mon, 8 Apr 2024 16:24:32 +0200") References: <184c38bf07d985a8831f60024a2ae94e2fd6804d.1712585810.git.ludo@gnu.org> Date: Wed, 10 Apr 2024 11:09:04 +0200 Message-ID: <871q7dshxr.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 9558983533 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: SVmerTvNfsOJ2W6nDqTGwtszsiov6sN03HLcOSMMX5PXVM2MyqlGBfd3 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Ludo, with a clearer mind now: Ludovic Court=C3=A8s writes: > * gnu/system.scm ()[locale-definitions]: Mark as > thunked. Default to (operating-system-default-locale-definitions os). > (operating-system-default-locale-definitions): New procedure. > (operating-system-locale-directory): Remove logic to add the OS > =E2=80=98locale=E2=80=99, instead assuming (operating-system-locale-direc= tory os) has > everything. > * doc/guix.texi (operating-system Reference): Adjust accordingly. This is a regression. I have in my /run/current-system/configuration.scm (locale "de_DE.utf8") (locale-definitions (cons* (locale-definition (name "ar_SY.utf8") (source "ar_SY")) (locale-definition (name "bn_BD.utf8") (source "bn_BD")) (locale-definition (name "hu_HU.utf8") (source "hu_HU")) (locale-definition (name "ka_GE.utf8") (source "ka_GE")) (locale-definition (name "lt_LT.utf8") (source "lt_LT")) (locale-definition (name "oc_FR.utf8") (source "oc_FR")) (locale-definition (name "pt_BR.utf8") (source "pt_BR")) (locale-definition (name "si_LK.utf8") (source "si_LK")) (locale-definition (name "sk_SK.utf8") (source "sk_SK")) (locale-definition (name "sr_RS.utf8") (source "sr_RS")) %default-locale-definitions)) but de_DE.utf8 is not available and =E2=80=9Cexport LC_ALL=3Dde_DE.utf8=E2=80=9D gives an error. scheme@(guix-user)> ,use (gnu system locale) scheme@(guix-user)> %default-locale-definitions $1 =3D (#< name: "ar_DZ.utf8" source: "ar_DZ" charset: "= UTF-8"> #< name: "ar_JO.utf8" source: "ar_JO" charset: "= UTF-8"> #< name: "en_GB.utf8" source: "en_GB" charset: "= UTF-8"> #< name: "en_US.utf8" source: "en_US" charset: "= UTF-8"> #< name: "es_AR.utf8" source: "es_AR" charset: "= UTF-8"> #< name: "es_ES.utf8" source: "es_ES" charset: "= UTF-8"> #< name: "fr_CA.utf8" source: "fr_CA" charset: "= UTF-8"> #< name: "fr_FR.utf8" source: "fr_FR" charset: "= UTF-8"> #< name: "ru_RU.utf8" source: "ru_RU" charset: "= UTF-8"> #< name: "zh_CN.utf8" source: "zh_CN" charset: "= UTF-8">) Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 05:53:18 2024 Received: (at 70280) by debbugs.gnu.org; 10 Apr 2024 09:53:18 +0000 Received: from localhost ([127.0.0.1]:52178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruUdo-0002a7-GG for submit@debbugs.gnu.org; Wed, 10 Apr 2024 05:53:18 -0400 Received: from relay.yourmailgateway.de ([188.68.63.166]:53545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruUdj-0002Z8-Vr for 70280@debbugs.gnu.org; Wed, 10 Apr 2024 05:53:14 -0400 Received: from mors-relay-8202.netcup.net (localhost [127.0.0.1]) by mors-relay-8202.netcup.net (Postfix) with ESMTPS id 4VDyn96xhYz3xh1; Wed, 10 Apr 2024 11:53:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1712742782; bh=2vcL06Z3+oKPmpb24+irTiiC2H6xpvDxcWQvOmpORe4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MmRkPZvw2JtB9EU/OnBFxG2uMcIVXm27Cr2+WTCCilqVhWkvPsKl80jSvQj90sazl 0m6zaUUYUW/VMYsSQw92ZQ0x0dCFA6uAOw9EZeXRYvbI7gbJvPcxskn6sW2O9j91h+ qAR0SNhbUeouFY2kQai2WWrJ4Qc3zim52S3YgZ5u0v2oK3eD7+77acY4SCA33AhHY9 vJuAre3omlZyhX7AwpFISKrdOnUkEs+lBwREXuq6kas5EEWDH6R1QZHF0X8LQdJzyO m0nNm/JSJ4avhvIlYApMC/qOjtJjokR33I7bPAFdXDzu8E9aqdyegzcqqClN9OvcBe Ec8zRHJi8rH/g== Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8202.netcup.net (Postfix) with ESMTPS id 4VDyn96DGhz3wL1; Wed, 10 Apr 2024 11:53:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net X-Spam-Flag: NO X-Spam-Score: -2.899 X-Spam-Level: X-Spam-Status: No, score=-2.899 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4VDyn22Syfz8sbl; Wed, 10 Apr 2024 11:52:54 +0200 (CEST) Received: from florianrock64 (ip92344de0.dynamic.kabel-deutschland.de [146.52.77.224]) by mxe217.netcup.net (Postfix) with ESMTPSA id E32198354F; Wed, 10 Apr 2024 11:52:48 +0200 (CEST) From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#70280] [PATCH 2/5] system: =?utf-8?Q?=E2=80=98operating-system-locale-definitions=E2=80=99?= includes the =?utf-8?Q?OS=E2=80=99?= locale. In-Reply-To: <871q7dshxr.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Wed, 10 Apr 2024 11:09:04 +0200") References: <184c38bf07d985a8831f60024a2ae94e2fd6804d.1712585810.git.ludo@gnu.org> <871q7dshxr.fsf@pelzflorian.de> Date: Wed, 10 Apr 2024 11:52:48 +0200 Message-ID: <87msq1h7db.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: E32198354F X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: zGUy+0EPoZBIvvdj7fF8F4+AmJOx08W13taQe/XMAP3XUHsFRiZLZ/GW X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "pelzflorian (Florian Pelz)" writes: > This is a regression. I have in my /run/current-system/configuration.scm > > (locale "de_DE.utf8") > (locale-definitions > (cons* (locale-definition > (name "ar_SY.utf8") (source "ar_SY")) > (locale-definition > (name "bn_BD.utf8") (source "bn_BD")) > (locale-definition > (name "hu_HU.utf8") (source "hu_HU")) > (locale-definition > (name "ka_GE.utf8") (source "ka_GE")) > (locale-definition > (name "lt_LT.utf8") (source "lt_LT")) > (locale-definition > (name "oc_FR.utf8") (source "oc_FR")) > (locale-definition > (name "pt_BR.utf8") (source "pt_BR")) > (locale-definition > (name "si_LK.utf8") (source "si_LK")) > (locale-definition > (name "sk_SK.utf8") (source "sk_SK")) > (locale-definition > (name "sr_RS.utf8") (source "sr_RS")) > %default-locale-definitions)) > > but de_DE.utf8 is not available and > =E2=80=9Cexport LC_ALL=3Dde_DE.utf8=E2=80=9D gives an error. I meant to also write: scheme@(guix-user)> ,use (gnu system) scheme@(guix-user)> (operating-system-locale-definitions (load "/run/curren= t-system/configuration.scm")) $2 =3D (#< name: "ar_SY.utf8" source: "ar_SY" charset: "= UTF-8"> #< name: "bn_BD.utf8" source: "bn_BD" charset: "= UTF-8"> #< name: "hu_HU.utf8" source: "hu_HU" charset: "= UTF-8"> #< name: "ka_GE.utf8" source: "ka_GE" charset: "= UTF-8"> #< name: "lt_LT.utf8" source: "lt_LT" charset: "= UTF-8"> #< name: "oc_FR.utf8" source: "oc_FR" charset: "= UTF-8"> #< name: "pt_BR.utf8" source: "pt_BR" charset: "= UTF-8"> #< name: "si_LK.utf8" source: "si_LK" charset: "= UTF-8"> #< name: "sk_SK.utf8" source: "sk_SK" charset: "= UTF-8"> #< name: "sr_RS.utf8" source: "sr_RS" charset: "= UTF-8"> #< name: "ar_DZ.utf8" source: "ar_DZ" charset: "= UTF-8"> #< name: "ar_JO.utf8" source: "ar_JO" charset: "= UTF-8"> #< name: "en_GB.utf8" source: "en_GB" charset: "= UTF-8"> #< name: "en_US.utf8" source: "en_US" charset: "= UTF-8"> #< name: "es_AR.utf8" source: "es_AR" charset: "= UTF-8"> #< name: "es_ES.utf8" source: "es_ES" charset: "= UTF-8"> #< name: "fr_CA.utf8" source: "fr_CA" charset: "= UTF-8"> #< name: "fr_FR.utf8" source: "fr_FR" charset: "= UTF-8"> #< name: "ru_RU.utf8" source: "ru_RU" charset: "= UTF-8"> #< name: "zh_CN.utf8" source: "zh_CN" charset: "= UTF-8">) No de_DE in there, but it should be. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 12:22:33 2024 Received: (at 70280) by debbugs.gnu.org; 15 Apr 2024 16:22:33 +0000 Received: from localhost ([127.0.0.1]:38160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwP6F-0008SG-Q5 for submit@debbugs.gnu.org; Mon, 15 Apr 2024 12:22:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwP6D-0008RA-0z for 70280@debbugs.gnu.org; Mon, 15 Apr 2024 12:22:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwP5v-0000no-6s; Mon, 15 Apr 2024 12:22:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=TF3MUqVz0Hl6PKpNnujSzOTLqzXU+/UYO7QLWxElnM8=; b=oo7CBrhiPJFt8+gW6+Z2 MvmNNr+L+GGDRBmXPTA4SlXPvMAe9qS6o2G72C5wHqZkltZHea2iLjJS6aQa6lva4FTJZgxTQ1WTZ D1jenpA3GxPRVd8Ly7iObuZOBiHqyf1HRtm8eS6xvEYL8h4X4jaSkn1wXloEaATS0hc2itreCy/Tn kQI0tmFU+gE2itXDwvGeOiA1RjnqJD2W6rYy7Q9FKxE4N/NOeNeYVeG3pC5/BYhl2zEd6fJbbnOKy Rg5441s6HrKXzX95K6eSuQvNMBBGrhstd4IptPWSQtHk62VtXehnl3WYcdFt8TESZd1L6HywCSwqW d166ukIAqtYBjA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: [bug#70280] [PATCH 3/5] locale: Shrink =?utf-8?Q?=E2=80=98%default-locale-definitions=E2=80=99?= from 34 to 10 locales. In-Reply-To: <87frvus4wr.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Tue, 09 Apr 2024 21:38:12 +0200") References: <87frvus4wr.fsf@pelzflorian.de> Date: Mon, 15 Apr 2024 18:22:08 +0200 Message-ID: <87y19ezjdb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Guten Tag Florian, "pelzflorian (Florian Pelz)" skribis: > I agree with shrinking default locales, but do not understand what > benefit it brings that U.N. languages are always included. Perhaps it > would be more useful to include en_US only? My idea was to include by default a few locales that people may =E2=80=9Ctypically=E2=80=9D find useful, in addition to their chosen one. Of course, it=E2=80=99s an arbitrary choice (choosing the six UN languages = makes it slightly less arbitrary). > Locales like fr_CA and > ar_JO do not even have separate teams on translationproject.org. There > are reasons for developers to include interesting locales for testing > like tr_TR or az_AZ, where capitalized i is =C4=B0 and small I is =C4=B1,= breaking > all kinds of programs, but few people would know. My goal is *not* to provide a default set useful for developers (otherwise German, Greek, Turkish, and non-UTF-8 locales would be welcome). Now, should we remove fr_CA and ar_JO? Maybe! I=E2=80=99m open to really = any changes in this list; I just think it should go beyond en_US. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 12:24:18 2024 Received: (at 70280) by debbugs.gnu.org; 15 Apr 2024 16:24:18 +0000 Received: from localhost ([127.0.0.1]:38175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwP7u-0000Ft-A6 for submit@debbugs.gnu.org; Mon, 15 Apr 2024 12:24:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwP7q-0000EW-K2 for 70280@debbugs.gnu.org; Mon, 15 Apr 2024 12:24:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwP7Z-00012b-9v; Mon, 15 Apr 2024 12:23:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=H64hfadxySreNmMuzeacXeMVa7YxeJ9FWomseZvUlhw=; b=jDPB+l2pEGCb1VtaC+G0 R/0VLqAGiCncJ48vnUjozdzVeaj3e9O5AYwUBTqxdQAhdKpqqSUpci0qNeX0HJSJmeiIxLHQDhMJs BtYMakV+VEAPebnSjkw4WkKPzm8uW2I7oKXQysG+ekaU+AqtP+rpcA+05YwpmADoKLEIOR6ZIL5r7 /zwZjIZFu4lpNsIrlql4qTPaqmrw1f8oU9sdRvcUbHR8h16r8GnDb8/QdBlsE3i7d+CoCrSlqeHTS 17LdTfQrhNz1IU2rUUBjJFkfjdXVBvVNKJVJofnHrU4WaTAiHWZIsXEtnLJh3o+cbePA4yaPDoNBa JijqGI3GMifrPw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: [bug#70280] [PATCH 2/5] system: =?utf-8?Q?=E2=80=98operating-system-locale-definitions=E2=80=99?= includes the =?utf-8?Q?OS=E2=80=99?= locale. In-Reply-To: <871q7dshxr.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Wed, 10 Apr 2024 11:09:04 +0200") References: <184c38bf07d985a8831f60024a2ae94e2fd6804d.1712585810.git.ludo@gnu.org> <871q7dshxr.fsf@pelzflorian.de> Date: Mon, 15 Apr 2024 18:23:49 +0200 Message-ID: <87ttk2zjai.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "pelzflorian (Florian Pelz)" skribis: > Ludovic Court=C3=A8s writes: >> * gnu/system.scm ()[locale-definitions]: Mark as >> thunked. Default to (operating-system-default-locale-definitions os). >> (operating-system-default-locale-definitions): New procedure. >> (operating-system-locale-directory): Remove logic to add the OS >> =E2=80=98locale=E2=80=99, instead assuming (operating-system-locale-dire= ctory os) has >> everything. >> * doc/guix.texi (operating-system Reference): Adjust accordingly. > > This is a regression. I have in my /run/current-system/configuration.scm > > (locale "de_DE.utf8") > (locale-definitions > (cons* (locale-definition > (name "ar_SY.utf8") (source "ar_SY")) > (locale-definition > (name "bn_BD.utf8") (source "bn_BD")) > (locale-definition > (name "hu_HU.utf8") (source "hu_HU")) > (locale-definition > (name "ka_GE.utf8") (source "ka_GE")) > (locale-definition > (name "lt_LT.utf8") (source "lt_LT")) > (locale-definition > (name "oc_FR.utf8") (source "oc_FR")) > (locale-definition > (name "pt_BR.utf8") (source "pt_BR")) > (locale-definition > (name "si_LK.utf8") (source "si_LK")) > (locale-definition > (name "sk_SK.utf8") (source "sk_SK")) > (locale-definition > (name "sr_RS.utf8") (source "sr_RS")) > %default-locale-definitions)) > > but de_DE.utf8 is not available and > =E2=80=9Cexport LC_ALL=3Dde_DE.utf8=E2=80=9D gives an error. Right. I would call it a semantic change rather than a regression (a feature rather than a bug :-)). It=E2=80=99s more in line with what we=E2=80=99re doing elsewhere: the defa= ult is to include =E2=80=98locale=E2=80=99 in the locale definitions, but we let the = user override that if they wish. Perhaps we should at least clarify the manual? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 18:33:05 2024 Received: (at 70280) by debbugs.gnu.org; 15 Apr 2024 22:33:05 +0000 Received: from localhost ([127.0.0.1]:40011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwUsp-000622-C1 for submit@debbugs.gnu.org; Mon, 15 Apr 2024 18:33:05 -0400 Received: from relay.yourmailgateway.de ([188.68.63.174]:59443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwUsl-00060i-Fj for 70280@debbugs.gnu.org; Mon, 15 Apr 2024 18:33:02 -0400 Received: from mors-relay8204.netcup.net (localhost [127.0.0.1]) by mors-relay8204.netcup.net (Postfix) with ESMTPS id 4VJMPT4scXz8cL2; Mon, 15 Apr 2024 22:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1713220365; bh=MK90Pgg56KyYB8nFhArqGVTawzMZ8BBfwQD3gFwSZzw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=D7VpUpfQkZBO3WrLbssYGdT6EHwoOPZcOp4XSNTIe3KuN7c9HWvlS8pl4Vbd0fmjw SoCnGpdzhe/iVpcHu96FuS4aueNsL65umJh7E+/xx9becsw33bK0aRucQ2M4mLN8xb sPQlBQfHBOmyF98DBy4QcP1HQb1gncz9L8Rp+jh8/XlXqvl6nir+yARF88ZbEck98E O3ewNMdkSAn0dm+ascx4GXgqmusNbq3PDSM1amgIeOFE8HfV5A6Wisf4GrR/vV3kn9 +LckZJncWuKkpJH4uiHf2ImVMDAC9fOWM+wcsHNav1YT5jUUyy4HQOS/lrjl0COjnd VF/XbY1lgghOw== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay8204.netcup.net (Postfix) with ESMTPS id 4VJMPT45K0z8cKD; Mon, 15 Apr 2024 22:32:45 +0000 (UTC) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4VJMPT2Jnpz8sb3; Tue, 16 Apr 2024 00:32:44 +0200 (CEST) Received: from florianrock64 (ip92344de0.dynamic.kabel-deutschland.de [146.52.77.224]) by mxe217.netcup.net (Postfix) with ESMTPSA id AD63B819CD; Tue, 16 Apr 2024 00:32:39 +0200 (CEST) From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#70280] [PATCH 3/5] locale: Shrink =?utf-8?Q?=E2=80=98%default-locale-definitions=E2=80=99?= from 34 to 10 locales. In-Reply-To: <87y19ezjdb.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 15 Apr 2024 18:22:08 +0200") References: <87frvus4wr.fsf@pelzflorian.de> <87y19ezjdb.fsf@gnu.org> Date: Tue, 16 Apr 2024 00:32:38 +0200 Message-ID: <87a5lunto9.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: AD63B819CD X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: XzPy/PgY67MLI1AECCNC5pLCzXKjnyFw5yrE4VTKtJaezyVqD+OL00cX X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Bonjour Ludo. :) Ludovic Court=C3=A8s writes: > Guten Tag Florian, > > "pelzflorian (Florian Pelz)" skribis: > >> I agree with shrinking default locales, but do not understand what >> benefit it brings that U.N. languages are always included. Perhaps it >> would be more useful to include en_US only? > > My idea was to include by default a few locales that people may > =E2=80=9Ctypically=E2=80=9D find useful, in addition to their chosen one. Hmm but how would they use it? Ohh I just noticed that these languages configured here will be the options in the GNOME Settings. I do agree now that the six languages are a standard set, although Russian has less speakers than Portuguese [1], which gets discussed [2] and I would tend to also include Portuguese then, because it has translations unlike Bengali or Hindi. > Of course, it=E2=80=99s an arbitrary choice (choosing the six UN language= s makes > it slightly less arbitrary). > >> Locales like fr_CA and >> ar_JO do not even have separate teams on translationproject.org. There >> are reasons for developers to include interesting locales for testing >> like tr_TR or az_AZ, where capitalized i is =C4=B0 and small I is =C4=B1= , breaking >> all kinds of programs, but few people would know. > > My goal is *not* to provide a default set useful for developers > (otherwise German, Greek, Turkish, and non-UTF-8 locales would be > welcome). > > Now, should we remove fr_CA and ar_JO? Maybe! I=E2=80=99m open to reall= y any > changes in this list; I just think it should go beyond en_US. > > Thoughts? > > Ludo=E2=80=99. I would remove ar_JO. Probably also remove fr_CA, because someone from Canada will configure fr_CA during Guix installation. Regards, Florian [1] https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers [2] https://en.wikipedia.org/wiki/Official_languages_of_the_United_Nations From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 18:52:04 2024 Received: (at 70280) by debbugs.gnu.org; 15 Apr 2024 22:52:04 +0000 Received: from localhost ([127.0.0.1]:40123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwVBB-0000Dk-Py for submit@debbugs.gnu.org; Mon, 15 Apr 2024 18:52:03 -0400 Received: from relay.yourmailgateway.de ([188.68.63.162]:41021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwVB8-0000D0-Kz for 70280@debbugs.gnu.org; Mon, 15 Apr 2024 18:52:00 -0400 Received: from mors-relay-8201.netcup.net (localhost [127.0.0.1]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4VJMqP1Cv1z3vmM; Tue, 16 Apr 2024 00:51:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1713221505; bh=WQBtPxfoKbfZD8F95RPmE3f3WDbGRvhXRKR2c6d6qv8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=LmY7ph5YnQsj0RyrrB2qeYKqWHEdcyNnV1feJHJwcerkSpgl3kXV48uTR08DwO+Q7 VbIAJ/v1hvRy40dwv41TPlU7yxfijAob5DhR5LjqpSby4VIxLndKO17AuqQmeucru9 X9HLgp/FTFmkSKlWQcuKj+PNCzqvF7nnEVp/Iv/VvntKv3QMllb9fGKxIfRW7HRrDd aTX1/p7+aQNDpahEt6pnhSP2o6ahHGFlqacmBnmv2tFB5wplKTxAdSqBD17AyqGE3o 6lWVxyt86rxMbLmXg45Jdt/9TS4wKOFaLh4AqdewTccq7UMyBswDIBIWDuwV2qvw3r 3hAd/Da52O0AA== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4VJMqP0VpNz3vm2; Tue, 16 Apr 2024 00:51:45 +0200 (CEST) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4VJMqN5s6dz8sbC; Tue, 16 Apr 2024 00:51:44 +0200 (CEST) Received: from florianrock64 (ip92344de0.dynamic.kabel-deutschland.de [146.52.77.224]) by mxe217.netcup.net (Postfix) with ESMTPSA id 451ED819CD; Tue, 16 Apr 2024 00:51:39 +0200 (CEST) From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#70280] [PATCH 2/5] system: =?utf-8?Q?=E2=80=98operating-system-locale-definitions=E2=80=99?= includes the =?utf-8?Q?OS=E2=80=99?= locale. In-Reply-To: <87ttk2zjai.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 15 Apr 2024 18:23:49 +0200") References: <184c38bf07d985a8831f60024a2ae94e2fd6804d.1712585810.git.ludo@gnu.org> <871q7dshxr.fsf@pelzflorian.de> <87ttk2zjai.fsf@gnu.org> Date: Tue, 16 Apr 2024 00:51:38 +0200 Message-ID: <875xwinssl.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 451ED819CD X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: uWv8GBN0WrdEqQ6UslgYqPUBNU/O4ks1cIzQ8Xg1gmgQoIgP7WjpZKKS X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s writes: > "pelzflorian (Florian Pelz)" skribis: >> This is a regression. I have in my /run/current-system/configuration.scm >> >> (locale "de_DE.utf8") >> (locale-definitions >> (cons* (locale-definition >> (name "ar_SY.utf8") (source "ar_SY")) >> (locale-definition >> (name "bn_BD.utf8") (source "bn_BD")) >> (locale-definition >> (name "hu_HU.utf8") (source "hu_HU")) >> (locale-definition >> (name "ka_GE.utf8") (source "ka_GE")) >> (locale-definition >> (name "lt_LT.utf8") (source "lt_LT")) >> (locale-definition >> (name "oc_FR.utf8") (source "oc_FR")) >> (locale-definition >> (name "pt_BR.utf8") (source "pt_BR")) >> (locale-definition >> (name "si_LK.utf8") (source "si_LK")) >> (locale-definition >> (name "sk_SK.utf8") (source "sk_SK")) >> (locale-definition >> (name "sr_RS.utf8") (source "sr_RS")) >> %default-locale-definitions)) >> >> but de_DE.utf8 is not available and >> =E2=80=9Cexport LC_ALL=3Dde_DE.utf8=E2=80=9D gives an error. > > Right. > > I would call it a semantic change rather than a regression (a feature > rather than a bug :-)). > > It=E2=80=99s more in line with what we=E2=80=99re doing elsewhere: the de= fault is to > include =E2=80=98locale=E2=80=99 in the locale definitions, but we let th= e user override > that if they wish. It is a regression when with the same OS config.scm, my GNOME is no longer in German. Perhaps I=E2=80=99m missing something, but the only gain= from making it configurable to not include the configured default locale in locale-definitions would be that it becomes possible to not include the default locale language=E2=80=99s utf8 encoding, but utf8 is good for every= one. > Perhaps we should at least clarify the manual? > > Ludo=E2=80=99. I would have expected the prior behavior, i.e. the setting in locale to be available regardless of locale-definitions. To me it does not seem necessary to be documented explicitly, but maybe better be explicit. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 11:16:47 2024 Received: (at 70280) by debbugs.gnu.org; 17 Apr 2024 15:16:48 +0000 Received: from localhost ([127.0.0.1]:46491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx71e-00017x-4u for submit@debbugs.gnu.org; Wed, 17 Apr 2024 11:16:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx71U-000165-DR for 70280@debbugs.gnu.org; Wed, 17 Apr 2024 11:16:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rx71A-0000Yj-V5; Wed, 17 Apr 2024 11:16:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fO+7ZkpLbYyo6P9c71w0EF1qcb9s5Ler8ZA3/fnG8Ko=; b=K61HtMD0GgKrCyKXubG4 wiwSOULTY/hOD4Q9qXVNeWbBRB1RLYHySXUb9j84QBpYWhONeRESjTOg8hKDEOim8wb1bC2wPfj3a eXP1Cv+wlR+MAQwcvaWNDg12nFW85m3Bg+ZDwvWOqbxM22CRwh7pEdVT0IN3S+IrCGB1Pboaqatzx Sk2cATobeqz3io6C0wyKhxW0g2xju1zGO9/O4JzvYBZqohyrKKoayBVeWVFsjRqiyBJReaZXCnIOC Go52zPoRpnh/A9wHDyq9ESNUpTToQoFm2yAD84eOs6MShaEl0E3lJGf4FOnoO7IZjVm+Z9fOMMYzO 0AtleDnBS13wEA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: [bug#70280] [PATCH 2/5] system: =?utf-8?Q?=E2=80=98operating-system-locale-definitions=E2=80=99?= includes the =?utf-8?Q?OS=E2=80=99?= locale. In-Reply-To: <875xwinssl.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Tue, 16 Apr 2024 00:51:38 +0200") References: <184c38bf07d985a8831f60024a2ae94e2fd6804d.1712585810.git.ludo@gnu.org> <871q7dshxr.fsf@pelzflorian.de> <87ttk2zjai.fsf@gnu.org> <875xwinssl.fsf@pelzflorian.de> Date: Wed, 17 Apr 2024 17:16:10 +0200 Message-ID: <87v84gggud.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "pelzflorian (Florian Pelz)" skribis: > Ludovic Court=C3=A8s writes: [...] >> I would call it a semantic change rather than a regression (a feature >> rather than a bug :-)). >> >> It=E2=80=99s more in line with what we=E2=80=99re doing elsewhere: the d= efault is to >> include =E2=80=98locale=E2=80=99 in the locale definitions, but we let t= he user override >> that if they wish. > > > It is a regression when with the same OS config.scm, my GNOME is no > longer in German. Perhaps I=E2=80=99m missing something, but the only ga= in from > making it configurable to not include the configured default locale in > locale-definitions would be that it becomes possible to not include the > default locale language=E2=80=99s utf8 encoding, but utf8 is good for eve= ryone. OK, let=E2=80=99s drop this patch then. I was focusing on interface consistency but in this particular case what you describe suggests interface consistency is a secondary concern. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 11:21:22 2024 Received: (at 70280) by debbugs.gnu.org; 17 Apr 2024 15:21:23 +0000 Received: from localhost ([127.0.0.1]:46517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx768-0001gB-Aj for submit@debbugs.gnu.org; Wed, 17 Apr 2024 11:21:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx765-0001ep-JP for 70280@debbugs.gnu.org; Wed, 17 Apr 2024 11:21:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rx75n-0001aI-6W; Wed, 17 Apr 2024 11:20:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=cJkwswz0GXx+2G/1sf1kB7Tv+IPZEiQqR+c6UwwCQCQ=; b=llrqBAQDCeuUrauULTax UHiIrM/6CYKmLPUmg9YnFN2eLXUPpv8RRsS4nR8nW5QXtH6iGlaGspJ7+oBsLLt1kShzN7TPvjn6S SIIRQiPzlF2qiwqUCNIA2tldYD5lwMEZlVtuJ7DWBoQIsryNA2VpZl1F5W6lXaqhUth1cicTY+3LS 7K/2jG1PjbMODauOjNKnQTHpmlqlyRaTb1YJg2ruwMgjwPsqJRQrdv8s2bj/G2990k5yo3mQ0YAPN ALxWbUfJwjtmkxPe1BwTAZd+G2eObO08/NT9LlUJIPV5jFVS2zFeZBKptUAMDdDWUbZ9LAYnm1Agt m6LvG3qIIPDGPA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: [bug#70280] [PATCH 3/5] locale: Shrink =?utf-8?Q?=E2=80=98%default-locale-definitions=E2=80=99?= from 34 to 10 locales. In-Reply-To: <87a5lunto9.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Tue, 16 Apr 2024 00:32:38 +0200") References: <87frvus4wr.fsf@pelzflorian.de> <87y19ezjdb.fsf@gnu.org> <87a5lunto9.fsf@pelzflorian.de> Date: Wed, 17 Apr 2024 17:20:57 +0200 Message-ID: <87mspsggme.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280 Cc: 70280@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "pelzflorian (Florian Pelz)" skribis: > Ludovic Court=C3=A8s writes: [...] >> My idea was to include by default a few locales that people may >> =E2=80=9Ctypically=E2=80=9D find useful, in addition to their chosen one. > > Hmm but how would they use it? I don=E2=80=99t use a desktop environment; my use case would be: export LC_ALL=3D=E2=80=A6 or, say: LANGUAGE=3Dfr:es:en > Ohh I just noticed that these languages configured here will be the > options in the GNOME Settings. I do agree now that the six languages > are a standard set, although Russian has less speakers than Portuguese > [1], which gets discussed [2] and I would tend to also include > Portuguese then, because it has translations unlike Bengali or Hindi. Yeah, the UN language choice is base on imperialism more than popularity. > I would remove ar_JO. Probably also remove fr_CA, because someone from > Canada will configure fr_CA during Guix installation. OK, let=E2=80=99s drop these two and add pt_BR and pt_PT then. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 18:31:01 2024 Received: (at 70280-done) by debbugs.gnu.org; 29 Apr 2024 22:31:01 +0000 Received: from localhost ([127.0.0.1]:58880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1ZWW-0004N9-OK for submit@debbugs.gnu.org; Mon, 29 Apr 2024 18:31:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1ZWQ-0004N3-UZ for 70280-done@debbugs.gnu.org; Mon, 29 Apr 2024 18:30:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1ZW0-0004sN-5d; Mon, 29 Apr 2024 18:30:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Fuayf8tu0KkrI7LQXmEbd/2dMKcBKpyP9FCK83JesbU=; b=DptoFqvuiimmRND+X5C6 8pvkm6n8SyWtZ525NnCSYI1auFRQ2rmjnXxtRlSBgzJwXTQpR+c8fJFeB9WP6ajTFIg5mDb9KTlor 0I/qKMQL1KCP7MGpUhuhjJOfW1TVuxQgVe5RrHo023g61lZb22BVYJmLAuNP8X8tMB3JY6FQh07oX UoyyWHbWSDaaGClv8sOPaKtPUlY1pQy77OefXOBOG8GOnaH37/8qLnLXpnePlYnrh1NYolnE3IRL8 RhQbOXLtKNdZ3rv5zrX7x/oMA6nxTYCzgS+P6hpn0N8m0YeYRVF4wwmNJthhcUEt6b+u2r9S1aYgT WwOnd9TZVjQTWA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: [bug#70280] [PATCH 3/5] locale: Shrink =?utf-8?Q?=E2=80=98%default-locale-definitions=E2=80=99?= from 34 to 10 locales. In-Reply-To: <87mspsggme.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 17 Apr 2024 17:20:57 +0200") References: <87frvus4wr.fsf@pelzflorian.de> <87y19ezjdb.fsf@gnu.org> <87a5lunto9.fsf@pelzflorian.de> <87mspsggme.fsf@gnu.org> Date: Tue, 30 Apr 2024 00:30:24 +0200 Message-ID: <87a5lbztrz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70280-done Cc: 70280-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Florian, I pushed this series as 5f89f45e7465ebbdc84c925ea3cfaec5dd06ed88, following the two suggestions you made: =E2=80=A2 Dropping the controversial patch that changed whether the system locale would be include. =E2=80=A2 Dropping two =E2=80=9Credundant=E2=80=9D locales and adding two= Portuguese locales to the default set. Thanks again! Ludo=E2=80=99. From unknown Thu Aug 14 22:23:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 May 2024 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator