From: ludo@gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel@gnu.org
Subject: Re: locales gone
Date: Mon, 17 Oct 2016 11:00:25 +0200 [thread overview]
Message-ID: <87r37fe4eu.fsf@gnu.org> (raw)
In-Reply-To: <20161015102108.2fc03c6f@scratchpost.org> (Danny Milosavljevic's message of "Sat, 15 Oct 2016 10:21:08 +0200")
[-- Attachment #1: Type: text/plain, Size: 2209 bytes --]
Danny Milosavljevic <dannym@scratchpost.org> skribis:
> And if I strace postgres service I get
>
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
> [pid 6184] fstat(3, {st_mode=S_IFREG|0444, st_size=2997, ...}) = 0
> [pid 6184] read(3, "# Locale name alias data base.\n#"..., 4096) = 2997
> [pid 6184] read(3, "", 4096) = 0
> [pid 6184] close(3) = 0
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/locale/en_US/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/locale/en.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/locale/en.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.23/lib/locale/en/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>
> And indeed those don't exist.
Ooh, I see. To work around an issue in our glibc 2.23 package (that I
forgot to fix in 2.24), whereby glibc does not look for locale data in
/run/current-system/locale, commit
ab3a64507a792e4da0527b423fbc28f8768e736a sets GUIX_LOCPATH in
/etc/environment.
However, that doesn’t help with daemons, because those do not honor that
file.
I suppose the untested patch below would work around it. Could you try
and report back? (Will require a reboot or testing with ‘guix system
vm’.)
Thanks,
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 707 bytes --]
diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm
index 3273184..4dbf7e3 100644
--- a/gnu/services/shepherd.scm
+++ b/gnu/services/shepherd.scm
@@ -81,6 +81,11 @@
(false-if-exception (close-fdes fd))
(loop (+ 1 fd))))
+ ;; Our glibc package currently looks for locale data in
+ ;; PREFIX/lib/locale instead of /run/current-system/locale.
+ ;; Work around it.
+ (setenv "GUIX_LOCPATH" "/run/current-system/locale")
+
;; Start shepherd.
(execl (string-append #$shepherd "/bin/shepherd")
"shepherd" "--config" #$shepherd-conf)))))
next prev parent reply other threads:[~2016-10-17 9:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-25 21:32 locales gone, gnome-terminal doesn't start up anymore Danny Milosavljevic
2016-09-29 12:39 ` Ludovic Courtès
2016-10-08 14:00 ` locales gone Danny Milosavljevic
2016-10-10 21:06 ` Ludovic Courtès
2016-10-12 20:37 ` Danny Milosavljevic
2016-10-13 20:22 ` Ludovic Courtès
2016-10-13 20:31 ` Danny Milosavljevic
2016-10-14 10:59 ` Ludovic Courtès
2016-10-15 8:15 ` Danny Milosavljevic
2016-10-15 8:21 ` Danny Milosavljevic
2016-10-15 8:33 ` Danny Milosavljevic
2016-10-17 9:00 ` Ludovic Courtès [this message]
2016-10-17 19:24 ` Leo Famulari
2016-10-18 12:24 ` Ludovic Courtès
2016-11-06 0:36 ` Danny Milosavljevic
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=87r37fe4eu.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=dannym@scratchpost.org \
--cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.