From: Simon Josefsson via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: glibc-utf8-locales
Date: Tue, 08 Mar 2022 10:59:08 +0100 [thread overview]
Message-ID: <87wnh4bw9f.fsf@latte.josefsson.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2455 bytes --]
Hi. Reconfiguring my machine lately fails with:
root@hamster ~# guix system reconfigure /etc/config.scm
guix system: error: glibc-utf8-locales: unknown package
guix system: error: failed to load '/etc/config.scm':
srfi/srfi-1.scm:586:17: In procedure map1:
Throw to key `quit' with args `(1)'.
root@hamster ~#
I noticed the following commmit:
https://lists.gnu.org/archive/html/guix-commits/2022-02/msg01204.html
First, I wonder if this is optimal. There must be many machines
(servers and embedded) where having all locales installed on is
wasteful, but where it is useful to have the C.UTF-8 and/or en_US.UTF-8
installed, to get minimal working UTF-8 support. Making this hard to
achieve for users seems unhelpful to me. I understand the motivation
for the patch, so I don't think it is necessarily wrong, just that
something more would also be useful. Maybe it is just the documentation
part that could be improved).
Trying to follow its advice, I modified my config.scm [1] as follows:
(use-modules (gnu packages base)) ; make-glibc-utf8-locales
...
(define my-glibc-locales
(make-glibc-utf8-locales
glibc
#:locales (list "en_US" "sv_SE")
#:name "glibc-useful-swedish-utf8-locales"))
...
(operating-system
...
(packages (append (map specification->package
'("glibc-useful-swedish-utf8-locales"
...
Thus letting "glibc-useful-swedish-utf8-locales" replace my earlier use
of "glibc-utf8-locales" in that package list stanza (which worked
happily for me for a long time). However it results in the following
error:
root@hamster ~# guix system reconfigure /etc/config.scm
guix system: error: glibc-useful-swedish-utf8-locales: unknown package
guix system: error: failed to load '/etc/config.scm':
srfi/srfi-1.scm:586:17: In procedure map1:
Throw to key `quit' with args `(1)'.
root@hamster ~#
I tried changing the definition into:
(define glibc-useful-swedish-utf8-locales
(make-glibc-utf8-locales
glibc
#:locales (list "en_US" "sv_SE")
#:name "glibc-useful-swedish-utf8-locales"))
and even trying
(make-glibc-utf8-locales
glibc
#:locales (list "en_US" "sv_SE")
#:name "glibc-useful-swedish-utf8-locales")
to prove that I'm clearly not understanding what I'm doing, however, it
still doesn't work.
Help?
/Simon
[1] https://gitlab.com/jas/sjd-cosmos/-/blob/master/hamster.josefsson.org/overlay/etc/config.scm
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]
next reply other threads:[~2022-03-08 9:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 9:59 Simon Josefsson via [this message]
2022-03-08 10:28 ` glibc-utf8-locales Tobias Geerinckx-Rice
2022-03-08 15:02 ` glibc-utf8-locales Simon Josefsson via
2022-03-09 16:41 ` glibc-utf8-locales Philip McGrath
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnh4bw9f.fsf@latte.josefsson.org \
--to=help-guix@gnu.org \
--cc=simon@josefsson.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).