From: Thomas Danckaert <post@thomasdanckaert.be>
To: guix-devel@gnu.org
Subject: GUIX_LOCPATH in daemon unit file
Date: Wed, 06 Jul 2016 09:51:03 +0200 (CEST) [thread overview]
Message-ID: <20160706.095103.2037769423207614861.post@thomasdanckaert.be> (raw)
[-- Attachment #1: Type: Text/Plain, Size: 881 bytes --]
Hi Guix,
using Guix on Ubuntu, I kept seeing messages “substitute: warning:
failed to install locale: Invalid argument” (though apart from this
warning, everything seemed to work normally).
From a previous thread on this mailing list, I learnt that the
problem is that the daemon doesn't have GUIX_LOCPATH set correctly,
but I didn't know how to fix
this. #guix explained to me that, for systemd users, this can be done
by adding "Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale"
to the [Service] section of the guix-daemon.service file. (and
probably also installing the necessary locales for root, which I'd
already done).
Should this environment setting be added to the default
guix-daemon.service, or could this break something for other
users/distributions (I'm not sure systems other than Ubuntu have this
problem?).
Thomas
[-- Attachment #2: guix-daemon.service.patch --]
[-- Type: Text/X-Patch, Size: 389 bytes --]
--- a/guix-daemon.service 2016-07-06 09:48:39.787090703 +0200
+++ b/guix-daemon.service 2016-07-06 09:33:29.503141220 +0200
@@ -7,6 +7,7 @@
[Service]
ExecStart=/gnu/store/3g6zn8y5sfwywr4pqiwqrab735a0x4zl-guix-0.10.0/bin/guix-daemon --build-users-group=guixbuild
+Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
RemainAfterExit=yes
StandardOutput=syslog
StandardError=syslog
next reply other threads:[~2016-07-06 7:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-06 7:51 Thomas Danckaert [this message]
2016-07-07 9:31 ` GUIX_LOCPATH in daemon unit file Ricardo Wurmus
2016-07-07 11:26 ` Daniel Pimentel
2016-07-07 11:30 ` Daniel Pimentel
2016-07-11 10:02 ` Ludovic Courtès
2016-07-17 23:08 ` sbaugh
2016-07-18 5:33 ` Ricardo Wurmus
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=20160706.095103.2037769423207614861.post@thomasdanckaert.be \
--to=post@thomasdanckaert.be \
--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.