GNU bug report logs - #42989
Subtle Typo in guix-daemon.service installed by guix-install.sh

Previous Next

Package: guix;

Reported by: mgorlick <at> acm.org

Date: Sat, 22 Aug 2020 16:47:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42989 in the body.
You can then email your comments to 42989 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#42989; Package guix. (Sat, 22 Aug 2020 16:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to mgorlick <at> acm.org:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 22 Aug 2020 16:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Gorlick <michael.m.gorlick <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Subtle Typo in guix-daemon.service installed by guix-install.sh
Date: Sat, 22 Aug 2020 09:46:05 -0700
[Message part 1 (text/plain, inline)]
There is a wee typo in the systemd file *guix-daemon.service* installed on
Ubuntu 20.04 by the guix-install.sh script.
The text of */root/.config/guix/current/lib/systemd/system/guix-daemon.service
*contains the text:

Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale'
LC_ALL=en_US.utf8

The portion .../guix-profile/... should read .../*.guix-profile/*..., in
other words the path as given omits the requisite single period (.) as the
prefix of the directory .guix-profile.

This minor oversight accounts in part for the  *guile: warning: failed to
install locale *error and related warnings that have cropped up repeatedly
when the build daemons are invoked

To test this fix:

   - I edited the guix-daemon.service specification in place at
   /etc/systemd/system by hand
   - Rebooted to restart the guix build daemons (I detest systemd and I'm
   lazy besides)
   - *guix pull *for my personal userland account
   - *guix package -u* to upgrade same
   - *guix package -i libc-utf8-locales* to upgrade my locales from 2.29 to
   2.31
   - *sudo -i guix pull* to update the root's view of guix
   - *sudo -i guix package -u* for an upgrade of same
   - *sudo -i guix package -i glibc-utf8-locales* to have the latest
   version of the UTF-8 locales installed in ~root/.guix-profile/lib/locale

In subsequent user-level *guix install X* commands the warning no longer
appears nor do the build daemons complain about failing to set the locale
to *en_US.utf8*
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#42989; Package guix. (Sat, 22 Aug 2020 17:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 42989 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Michael Gorlick <michael.m.gorlick <at> gmail.com>
Cc: 42989 <at> debbugs.gnu.org
Subject: Re: bug#42989: Subtle Typo in guix-daemon.service installed by
 guix-install.sh
Date: Sat, 22 Aug 2020 13:06:36 -0400
On Sat, Aug 22, 2020 at 09:46:05AM -0700, Michael Gorlick wrote:
> There is a wee typo in the systemd file *guix-daemon.service* installed on
> Ubuntu 20.04 by the guix-install.sh script.
> The text of */root/.config/guix/current/lib/systemd/system/guix-daemon.service
> *contains the text:
> 
> Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale'
> LC_ALL=en_US.utf8
> 
> The portion .../guix-profile/... should read .../*.guix-profile/*..., in
> other words the path as given omits the requisite single period (.) as the
> prefix of the directory .guix-profile.

In my experience, the path as shown in your example is correct. The
directory is not a "hidden" directory in this location.




Information forwarded to bug-guix <at> gnu.org:
bug#42989; Package guix. (Sat, 22 Aug 2020 19:23:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Gorlick <michael.m.gorlick <at> gmail.com>
To: Leo Famulari <leo <at> famulari.name>, bug-guix <at> gnu.org
Subject: Re: bug#42989: Subtle Typo in guix-daemon.service installed by
 guix-install.sh
Date: Sat, 22 Aug 2020 12:22:13 -0700
[Message part 1 (text/plain, inline)]
You are right and the confusion is mine. The reason the error messages
disappeared is that thanks to a "guix pull", a "guix upgrade", and a "guix
install glibc-utf8-locales" on user "root" I now have the latest version of
the utf8-locales, 2.31, installed at
*/var/guix/profiles/per-user/root/guix-profile/lib/locale.*

Sorry for the bother. However, judging by prior discussions not everyone
understands that the build daemons rely in this way on the guix-profile of
the root. It would help if the documentation pointed out this common
misunderstanding and explicitly advised users on foreign distributions to
pull and upgrade the root profile regularly.


On Sat, Aug 22, 2020 at 10:30 AM Leo Famulari <leo <at> famulari.name> wrote:

> Can you reply to the bug tracker?
>
> In any case, "~root" is a different directory than
> "/var/guix/profiles/per-user/root", and the guix-profile directory is named
> differently in each location.
>
> On Sat, Aug 22, 2020, at 13:10, Michael Gorlick wrote:
>
> Au contraire.
>
> $ sudo -i ls -a ~root
> .  ..  .bash_history  .bashrc  .cache  .config .gnupg .guix-profile
>  .local  .profile  .wget-hsts
>
> On Sat, Aug 22, 2020 at 10:06 AM Leo Famulari <leo <at> famulari.name> wrote:
>
> On Sat, Aug 22, 2020 at 09:46:05AM -0700, Michael Gorlick wrote:
> > There is a wee typo in the systemd file *guix-daemon.service* installed
> on
> > Ubuntu 20.04 by the guix-install.sh script.
> > The text of
> */root/.config/guix/current/lib/systemd/system/guix-daemon.service
> > *contains the text:
> >
> >
> Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale'
> > LC_ALL=en_US.utf8
> >
> > The portion .../guix-profile/... should read .../*.guix-profile/*..., in
> > other words the path as given omits the requisite single period (.) as
> the
> > prefix of the directory .guix-profile.
>
> In my experience, the path as shown in your example is correct. The
> directory is not a "hidden" directory in this location.
>
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#42989; Package guix. (Sat, 22 Aug 2020 21:40:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Michael Gorlick <michael.m.gorlick <at> gmail.com>
Cc: bug-guix <at> gnu.org
Subject: Re: bug#42989: Subtle Typo in guix-daemon.service installed by
 guix-install.sh
Date: Sat, 22 Aug 2020 17:39:30 -0400
On Sat, Aug 22, 2020 at 12:22:13PM -0700, Michael Gorlick wrote:
> You are right and the confusion is mine. The reason the error messages
> disappeared is that thanks to a "guix pull", a "guix upgrade", and a "guix
> install glibc-utf8-locales" on user "root" I now have the latest version of
> the utf8-locales, 2.31, installed at
> */var/guix/profiles/per-user/root/guix-profile/lib/locale.*
> 
> Sorry for the bother. However, judging by prior discussions not everyone
> understands that the build daemons rely in this way on the guix-profile of
> the root. It would help if the documentation pointed out this common
> misunderstanding and explicitly advised users on foreign distributions to
> pull and upgrade the root profile regularly.

Yeah, locales are one of the bigger user experience problem with Guix :/
The warnings are a definite improvement over how it used to be, when
glibc would simply ABORT any program that was using the wrong version of
locales.

We are still searching for a solid solution to the problem, as we've
been tweaking the documentation for years now, but people still report
the warnings all the time.




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Thu, 14 Jul 2022 02:19:02 GMT) Full text and rfc822 format available.

Notification sent to mgorlick <at> acm.org:
bug acknowledged by developer. (Thu, 14 Jul 2022 02:19:02 GMT) Full text and rfc822 format available.

Message #19 received at 42989-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Leo Famulari <leo <at> famulari.name>
Cc: Michael Gorlick <michael.m.gorlick <at> gmail.com>, 42989-done <at> debbugs.gnu.org
Subject: Re: bug#42989: Subtle Typo in guix-daemon.service installed by
 guix-install.sh
Date: Wed, 13 Jul 2022 22:18:27 -0400
Hi,

Leo Famulari <leo <at> famulari.name> writes:

> On Sat, Aug 22, 2020 at 12:22:13PM -0700, Michael Gorlick wrote:
>> You are right and the confusion is mine. The reason the error messages
>> disappeared is that thanks to a "guix pull", a "guix upgrade", and a "guix
>> install glibc-utf8-locales" on user "root" I now have the latest version of
>> the utf8-locales, 2.31, installed at
>> */var/guix/profiles/per-user/root/guix-profile/lib/locale.*
>> 
>> Sorry for the bother. However, judging by prior discussions not everyone
>> understands that the build daemons rely in this way on the guix-profile of
>> the root. It would help if the documentation pointed out this common
>> misunderstanding and explicitly advised users on foreign distributions to
>> pull and upgrade the root profile regularly.
>
> Yeah, locales are one of the bigger user experience problem with Guix :/
> The warnings are a definite improvement over how it used to be, when
> glibc would simply ABORT any program that was using the wrong version of
> locales.
>
> We are still searching for a solid solution to the problem, as we've
> been tweaking the documentation for years now, but people still report
> the warnings all the time.

I think the situation has improved a lot in recent years.  I'll close
this since the title is misguided, and since it's very old :-).

Thank you,

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#42989; Package guix. (Thu, 14 Jul 2022 17:34:02 GMT) Full text and rfc822 format available.

Message #22 received at 42989-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Gorlick <michael.m.gorlick <at> gmail.com>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 42989-done <at> debbugs.gnu.org, Leo Famulari <leo <at> famulari.name>
Subject: Re: bug#42989: Subtle Typo in guix-daemon.service installed by
 guix-install.sh
Date: Thu, 14 Jul 2022 10:33:21 -0700
[Message part 1 (text/plain, inline)]
Agreed. It arose from a misunderstanding of guix and rightly deserves to be
ignored and deep sixed.

On Wed, Jul 13, 2022 at 7:18 PM Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
wrote:

> Hi,
>
> Leo Famulari <leo <at> famulari.name> writes:
>
> > On Sat, Aug 22, 2020 at 12:22:13PM -0700, Michael Gorlick wrote:
> >> You are right and the confusion is mine. The reason the error messages
> >> disappeared is that thanks to a "guix pull", a "guix upgrade", and a
> "guix
> >> install glibc-utf8-locales" on user "root" I now have the latest
> version of
> >> the utf8-locales, 2.31, installed at
> >> */var/guix/profiles/per-user/root/guix-profile/lib/locale.*
> >>
> >> Sorry for the bother. However, judging by prior discussions not everyone
> >> understands that the build daemons rely in this way on the guix-profile
> of
> >> the root. It would help if the documentation pointed out this common
> >> misunderstanding and explicitly advised users on foreign distributions
> to
> >> pull and upgrade the root profile regularly.
> >
> > Yeah, locales are one of the bigger user experience problem with Guix :/
> > The warnings are a definite improvement over how it used to be, when
> > glibc would simply ABORT any program that was using the wrong version of
> > locales.
> >
> > We are still searching for a solid solution to the problem, as we've
> > been tweaking the documentation for years now, but people still report
> > the warnings all the time.
>
> I think the situation has improved a lot in recent years.  I'll close
> this since the title is misguided, and since it's very old :-).
>
> Thank you,
>
> Maxim
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Aug 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.