From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WIpsHyD6GmLZMAAAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 05:12:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WEriGyD6GmJ9GwEAauVa8A (envelope-from ) for ; Sun, 27 Feb 2022 05:12:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9C3F9371C8 for ; Sun, 27 Feb 2022 05:12:15 +0100 (CET) Received: from localhost ([::1]:32788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOAur-0001SZ-Pc for larch@yhetil.org; Sat, 26 Feb 2022 23:12:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOAuh-0001No-0p for guix-patches@gnu.org; Sat, 26 Feb 2022 23:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOAug-0004Ji-Nf for guix-patches@gnu.org; Sat, 26 Feb 2022 23:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOAug-0006y7-C4 for guix-patches@gnu.org; Sat, 26 Feb 2022 23:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54178] [PATCH] gnu: glibc-utf8-locales: Hide the package. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Feb 2022 04:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54178 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54178@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164593509526749 (code B ref -1); Sun, 27 Feb 2022 04:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2022 04:11:35 +0000 Received: from localhost ([127.0.0.1]:56656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOAuE-0006xN-VE for submit@debbugs.gnu.org; Sat, 26 Feb 2022 23:11:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:50400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOAuD-0006xF-L7 for submit@debbugs.gnu.org; Sat, 26 Feb 2022 23:11:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOAuC-0000gz-PV for guix-patches@gnu.org; Sat, 26 Feb 2022 23:11:33 -0500 Received: from [2607:f8b0:4864:20::729] (port=35663 helo=mail-qk1-x729.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOAuA-000482-Id for guix-patches@gnu.org; Sat, 26 Feb 2022 23:11:31 -0500 Received: by mail-qk1-x729.google.com with SMTP id j78so7925232qke.2 for ; Sat, 26 Feb 2022 20:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r/xCGKGG4dsQMg+7iZ3a7GcA/0Nanq5YdldxEa3ab3A=; b=UBuzmAwdaHc6zqhoVjKDdAcoNJQ5L47hhB61ZRuCapdX42Os5flqe7iscBUeKHQEbt RMWL5vHKPg5k5+KsX2VjMvp0+0ZfG+FgAEy0Ecn7D4TOXAYY3zT9CPeix1QqU6Usx4Yj 1+tu3l7dGI0F/Acg/tnZpIa1SYe4Sb8k1wZYJCWsuzE1veBPh5XMmziSuO6ZCbUrPFiP k1cPhDMdTCHAISyZCGeVGyj8XWNPGOEAUUqQul4zsAZ+rZp0P2zcFgnpWFXjf2UGRh3r saf95Prt7qA3QK0+sb8pUkM3/UK9UpLxKLWr4KcK7Zn9u/GTmTnig9oFKbLsgDn3Hao/ UwPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r/xCGKGG4dsQMg+7iZ3a7GcA/0Nanq5YdldxEa3ab3A=; b=YCol/LtDZDXIO6OSuTsOoUzqEAktpgV3u40GNWSNgtJZjkVbKTA+fy4dOyc/j05Dm8 40Mj+ZVDB42dQ9Gm4CrZRLdUmjth3Syj8oDARAOu881HTKb3S2ccZF2y9NXAkA1UI/Eg dqe70EXI0v/ehTpKEiGD0EaRbl+oRnt3JxkvSHkN/WBMRWYtIohGWb0jVZ+cERObL45f ONAPqO6oedgqZ2/yvDN+TWINcZMgYF7jjGHg4fp6yCe2TgWo7DBn/FEZBZS6siDs8ZlR tUmZNIzgUep/v+vZB3d4LLVN/xGkXwtPyf+VqSx7RGSBSwInxIgC7osRbN1Mk7R53pxM NQDw== X-Gm-Message-State: AOAM532xjBLa15pOqQ766B/JC6WvDW1YOVQ9CETj8M8rR1hRzOBQh+gz wCH4qr/eIgoAgJ4nIvhGt7XpGs1waamxvg== X-Google-Smtp-Source: ABdhPJywfEKLDVRo56u/XZ6N1QXZ6CXPGbzVITp34BSKi7ETIhmCjFrIsnC5OWoHLt93sKUseZsOXQ== X-Received: by 2002:a37:8906:0:b0:649:599e:6e22 with SMTP id l6-20020a378906000000b00649599e6e22mr8286810qkd.749.1645935067102; Sat, 26 Feb 2022 20:11:07 -0800 (PST) Received: from localhost.localdomain (dsl-149-67.b2b2c.ca. [66.158.149.67]) by smtp.gmail.com with ESMTPSA id w17-20020ac87e91000000b002dff2e81b65sm3141142qtj.69.2022.02.26.20.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 20:11:06 -0800 (PST) From: Maxim Cournoyer Date: Sat, 26 Feb 2022 23:10:59 -0500 Message-Id: <20220227041059.1322-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::729 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x729.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_FMBLA_NEWDOM=1.498, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645935135; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=r/xCGKGG4dsQMg+7iZ3a7GcA/0Nanq5YdldxEa3ab3A=; b=ICsmKfyD1jwdvRKUc2bIrxRd/GWME1MundscUfFCWbiKy10BXfs+jgeGZUZ8TYEYX5tZzb UxOHeBfXO4SkfpcJbNQQ+C+N1qToLR1x5D42X3XqxYgKiiceoAHqNM7lR9naWGoFU9ljrT /P1jeclCYGUYfLDJxV4MgYl6bdCSZujLkZaygfKwZ6etTy2Z/afYcxh/x/h4S1Eac9N/rj JxDKnFZY/7eCUAwB7tF+bILfF1C1epWwb9ejgB/AlqA+kbv4hUoPlSGKb/wSIfozNp12cB Czz1kYwbzWmzbA+eWu81zmNx+887h5xH6GDDKEnrLg7dzFn9awd+3yZursJ+ig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645935135; a=rsa-sha256; cv=none; b=btl2q2sE5zybjaK/9lFZsg6QrFYV3Iklpvzz7LPqcWs1qUv8U9pUfRZUdCD9b9ArUfqnQq tfVddvtrNPlgyVnwocmMJp1HichKh3n4g94A743IDK3pE/2hNMZ1gNKcLJSlS2lZknA7Oc Ptk9dXN7svDblZYWv2r0smt8nVCeJ512gI0EsQwQOEYIq516j99d0fOt3yYcjHeDxIBc6H UJ8mgEkW6LRQPwicgFuZyFgzBWpRgQmRA4QwDzgSHzlzqiNJgH6uEHPtjnDHMupuhn0qoL VXQojKNRM7NzTR6FAqEWa9a2eKComGdRSu+2S1DDT1Wiv2e5we4C/jPWFAAAqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UBuzmAwd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UBuzmAwd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9C3F9371C8 X-Spam-Score: 5.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: Hf7nZFO9/6N2 This package has a long history of confusing users, due to containing only a small, arbitrary subset of UTF-8 locales. * gnu/packages/base.scm (glibc-utf8-locales): Define as a hidden package. * doc/guix.texi (Application Setup): Do not mention glibc-utf8-locales. Instead, provide an example for defining a custom locales package. --- doc/guix.texi | 20 ++++++++++++++++++-- gnu/packages/base.scm | 3 ++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index a6437729ff..69a4073603 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1867,8 +1867,24 @@ $ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale Note that the @code{glibc-locales} package contains data for all the locales supported by the GNU@tie{}libc and weighs in at around -917@tie{}MiB@. Alternatively, the @code{glibc-utf8-locales} is smaller but -limited to a few UTF-8 locales. +930@tie{}MiB@footnote{The size of the @code{glibc-locales} package is +reduced down to about 213@tie{}MiB with store deduplication and further +down to about 67@tie{}MiB when using a zstd-compressed Btrfs file +system.}. If you only need a few locales, you can define your custom +locales package via the @code{make-glibc-utf8-locales} procedure from +the @code{(gnu packages base)} module. The following example defines a +package containing the various Canadian UTF-8 locales known to the +GNU@tie{}libc, that weighs around 14@tie{}MiB: + +@lisp +(use-modules (gnu packages base)) + +(define my-glibc-locales + (make-glibc-utf8-locales + glibc + #:locales (list "en_CA" "fr_CA" "ik_CA" "iu_CA" "shs_CA") + #:name "glibc-canadian-utf8-locales")) +@end lisp The @env{GUIX_LOCPATH} variable plays a role similar to @env{LOCPATH} (@pxref{Locale Names, @env{LOCPATH},, libc, The GNU C Library Reference diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 76a65f25b3..419ab6906a 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -1171,7 +1171,8 @@ (define file (define-public glibc-locales (make-glibc-locales glibc)) (define-public glibc-utf8-locales - (make-glibc-utf8-locales glibc)) + (hidden-package + (make-glibc-utf8-locales glibc))) ;; Packages provided to ease use of binaries linked against the previous libc. (define-public glibc-locales-2.29 -- 2.34.0