all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GUIX_LOCPATH in daemon unit file
@ 2016-07-06  7:51 Thomas Danckaert
  2016-07-07  9:31 ` Ricardo Wurmus
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Danckaert @ 2016-07-06  7:51 UTC (permalink / raw)
  To: guix-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GUIX_LOCPATH in daemon unit file
  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-11 10:02   ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2016-07-07  9:31 UTC (permalink / raw)
  To: Thomas Danckaert; +Cc: guix-devel


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.

~~ Ricardo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GUIX_LOCPATH in daemon unit file
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Pimentel @ 2016-07-07 11:26 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel, Thomas Danckaert, Guix-devel

> I think GUIX_LOCPATH should be set automatically.

I agree with Ricardo. When I start with Guix/GuixSD I have some problems 
with it.

Thanks,

-- 
Daniel Pimentel (aka d4n1)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GUIX_LOCPATH in daemon unit file
  2016-07-07 11:26   ` Daniel Pimentel
@ 2016-07-07 11:30     ` Daniel Pimentel
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Pimentel @ 2016-07-07 11:30 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel, Thomas Danckaert, Guix-devel

I think GUIX_LOCPATH should be set automatically.

I agree with Ricardo. When I started with Guix/GuixSD I had some 
problems with it.

Thanks,

-- 
Daniel Pimentel (aka d4n1)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GUIX_LOCPATH in daemon unit file
  2016-07-07  9:31 ` Ricardo Wurmus
  2016-07-07 11:26   ` Daniel Pimentel
@ 2016-07-11 10:02   ` Ludovic Courtès
  2016-07-17 23:08     ` sbaugh
  2016-07-18  5:33     ` Ricardo Wurmus
  1 sibling, 2 replies; 7+ messages in thread
From: Ludovic Courtès @ 2016-07-11 10:02 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel, Thomas Danckaert

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GUIX_LOCPATH in daemon unit file
  2016-07-11 10:02   ` Ludovic Courtès
@ 2016-07-17 23:08     ` sbaugh
  2016-07-18  5:33     ` Ricardo Wurmus
  1 sibling, 0 replies; 7+ messages in thread
From: sbaugh @ 2016-07-17 23:08 UTC (permalink / raw)
  To: guix-devel

I think including glibc-utf8-locales in the binary tarball is a good
idea, it eases usability and doesn't really have any downsides. (if a
really minimal tarball is needed for some purpose, that can be built
separately)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GUIX_LOCPATH in daemon unit file
  2016-07-11 10:02   ` Ludovic Courtès
  2016-07-17 23:08     ` sbaugh
@ 2016-07-18  5:33     ` Ricardo Wurmus
  1 sibling, 0 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2016-07-18  5:33 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Thomas Danckaert


Ludovic Courtès <ludo@gnu.org> writes:

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

Done in master.  (Sorry for the delay.)

~~ Ricardo

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-18  5:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-07-17 23:08     ` sbaugh
2016-07-18  5:33     ` Ricardo Wurmus

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.