unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: warning: failed to install locale
       [not found]     ` <87won3fjll.fsf@elephly.net>
@ 2019-01-18 10:35       ` Giovanni Biscuolo
  0 siblings, 0 replies; only message in thread
From: Giovanni Biscuolo @ 2019-01-18 10:35 UTC (permalink / raw)
  To: Ricardo Wurmus, zimoun; +Cc: guix-devel, help-guix

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

Hi Ricardo,

Ricardo Wurmus <rekado@elephly.net> writes:

[...]

> This is in your environment.  But what about the daemon’s environment?
> It is not started in your environment where GUIX_LOCPATH is set.  How do
> you start the daemon?  If it’s via systemd you may want to look at the
> service file to see where GUIX_LOCPATH points.

OK now I understand too, thanks!

yes, Debian starts daemons via systemd and this issue is easily fixed by
installing glibc-utf8-locales in the guix default root profile:

  sudo -i
  guix package -i glibc-utf8-locales
  sudo systemctl restart guix-daemon.service

after doing so, when I "guix build emacs --dry-run" the warning I
reported disappeared

I think a similar approach should resolve similar issues with other init
systems

since I used the binary install script [1] I think we should easily
patch that so that it also "guix package -i glibc-utf8-locales" for lazy
users like me :-)

I'm going to test the binary install script on a brend new Debian 9 lxc
container since I found other possible improvements

this is also not clearly stated in
https://www.gnu.org/software/guix/manual/en/html_node/Application-Setup.html#Locales-1
do it need to be fixed?

AFAIU adding "export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale" to
root's .profile or .bash_profile is not strictly needed (unless you want
to install and run packages as root user), so I'd _not_ automate this
via the binary install script or document this

Thanks!
Giovanni

[1] https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-18 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <8736pswk00.fsf@roquette.mug.biscuolo.net>
     [not found] ` <877ef3h07n.fsf@elephly.net>
     [not found]   ` <CAJ3okZ2Ssfb=8Z4KmXgzNF4oD5PuoUFK1g7DAUmdkTpA5Lxmig@mail.gmail.com>
     [not found]     ` <87won3fjll.fsf@elephly.net>
2019-01-18 10:35       ` warning: failed to install locale Giovanni Biscuolo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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