guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GUIX_LOCPATH in daemon unit file


From: Thomas Danckaert
Subject: GUIX_LOCPATH in daemon unit file
Date: Wed, 06 Jul 2016 09:51:03 +0200 (CEST)

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
--- 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]