unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: guix-devel@gnu.org, Thomas Danckaert <post@thomasdanckaert.be>
Subject: Re: GUIX_LOCPATH in daemon unit file
Date: Mon, 11 Jul 2016 12:02:03 +0200	[thread overview]
Message-ID: <87twfwmr1g.fsf@gnu.org> (raw)
In-Reply-To: <idjziptu73s.fsf@bimsb-sys02.mdc-berlin.net> (Ricardo Wurmus's message of "Thu, 7 Jul 2016 11:31:51 +0200")

Hello,

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> Hi Thomas,
>
>> 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?).
>
> I think GUIX_LOCPATH should be set automatically.  There are no ill
> effects of having it set when the directory doesn’t exist AFAIK.  Also,
> only Guix honours GUIX_LOCPATH (hence the name), so it shouldn’t screw
> up the behaviour of other applications.
>
> This is a problem on all systems where Guix is used as a package
> manager.
>
> What do others think?  If it’s okay and my rationalisations above are
> not mistaken I’d like to accept this change.

I agree, please push.

Besides, I wonder if we should add ‘glibc-utf8-locales’ to the binary
tarball.  It would add a few MiBs to the tarball, and would only “work”
for people who use one of the few locales it provides; OTOH, that’s
already an improvement for these users.

Thoughts?

Thanks!

Ludo’.

  parent reply	other threads:[~2016-07-11 10:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-06  7:51 GUIX_LOCPATH in daemon unit file Thomas Danckaert
2016-07-07  9:31 ` Ricardo Wurmus
2016-07-07 11:26   ` Daniel Pimentel
2016-07-07 11:30     ` Daniel Pimentel
2016-07-11 10:02   ` Ludovic Courtès [this message]
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

  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=87twfwmr1g.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=post@thomasdanckaert.be \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /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 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).