GNU bug report logs - #36074
Incorrect quoting of GUIX_LOCPATH environment variable in guix-daemon.service

Previous Next

Package: guix;

Reported by: Jack Hill <jackhill <at> jackhill.us>

Date: Mon, 3 Jun 2019 18:40:02 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

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 36074 in the body.
You can then email your comments to 36074 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#36074; Package guix. (Mon, 03 Jun 2019 18:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jack Hill <jackhill <at> jackhill.us>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 03 Jun 2019 18:40:02 GMT) Full text and rfc822 format available.

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

From: Jack Hill <jackhill <at> jackhill.us>
To: bug-guix <at> gnu.org
Subject: Incorrect quoting of GUIX_LOCPATH environment variable in
 guix-daemon.service
Date: Mon, 3 Jun 2019 14:24:33 -0400 (EDT)
Hi Guix,

Based on my experience setting up Guix on a CentOS 7 foreign distribution, 
if quoted, the variable name in a systemd unit Environment definition 
should be inside the quotes. I didn't not find definitive documentation 
stating this, but all the examples show it this way. If the value is left 
like

```
Environment=GUIX_LOCPATH='/path/to/profile/lib/locale'
```

the guix-daemon process is not able to find the right locale even when it 
is installed.

Best,
Jack




Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Mon, 03 Jun 2019 18:42:02 GMT) Full text and rfc822 format available.

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

From: Jack Hill <jackhill <at> jackhill.us>
To: 36074 <at> debbugs.gnu.org
Subject: Incorrect quoting of GUIX_LOCPATH environment variable in
 guix-daemon.service
Date: Mon, 3 Jun 2019 14:41:18 -0400 (EDT)
I wrote more about this on help-guix@

https://lists.gnu.org/archive/html/help-guix/2019-06/msg00024.html




Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Mon, 03 Jun 2019 18:43:02 GMT) Full text and rfc822 format available.

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

From: Jack Hill <jackhill <at> jackhill.us>
To: 36074 <at> debbugs.gnu.org
Subject: [PATCH] etc: guix-daemon.service.in: fix GUIX_LOCPATH quoting
Date: Mon, 3 Jun 2019 14:42:16 -0400 (EDT)
etc/guix-daemon.service.in: Move the GUIX_LOCPATH environment varialbe name
inside the quotes are required in systemd unit files.
---
 etc/guix-daemon.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/guix-daemon.service.in b/etc/guix-daemon.service.in
index 7b20a91931..407cdd199c 100644
--- a/etc/guix-daemon.service.in
+++ b/etc/guix-daemon.service.in
@@ -7,7 +7,7 @@ Description=Build daemon for GNU Guix

 [Service]
 ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild
-Environment=GUIX_LOCPATH='@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
+Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
 RemainAfterExit=yes
 StandardOutput=syslog
 StandardError=syslog
-- 
2.21.0





Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Wed, 05 Jun 2019 10:12:02 GMT) Full text and rfc822 format available.

Notification sent to Jack Hill <jackhill <at> jackhill.us>:
bug acknowledged by developer. (Wed, 05 Jun 2019 10:12:02 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Jack Hill <jackhill <at> jackhill.us>
Cc: 36074-done <at> debbugs.gnu.org
Subject: Re: bug#36074: Incorrect quoting of GUIX_LOCPATH environment variable
 in guix-daemon.service
Date: Wed, 05 Jun 2019 11:55:02 +0200
Hi Jack,

thank you for the bug report, the analysis, and the patch.  I changed
the commit log and pushed it to the master branch with commit
579d17b70dac067f8194ede46513400b91ac136a.

Thanks!

--
Ricardo





Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Wed, 05 Jun 2019 13:15:03 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jack Hill <jackhill <at> jackhill.us>
Cc: 36074 <at> debbugs.gnu.org
Subject: Re: bug#36074: Incorrect quoting of GUIX_LOCPATH environment variable
 in guix-daemon.service
Date: Wed, 05 Jun 2019 15:14:01 +0200
Hi,

Jack Hill <jackhill <at> jackhill.us> skribis:

> Based on my experience setting up Guix on a CentOS 7 foreign
> distribution, if quoted, the variable name in a systemd unit
> Environment definition should be inside the quotes. I didn't not find
> definitive documentation stating this, but all the examples show it
> this way. If the value is left like
>
> ```
> Environment=GUIX_LOCPATH='/path/to/profile/lib/locale'
> ```

Good catch!  Indeed,
<https://www.freedesktop.org/software/systemd/man/systemd.service.html>
shows examples with quotes “inside” and “outside”, but what we want here
is quotes outside.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Tue, 11 Jun 2019 14:54:02 GMT) Full text and rfc822 format available.

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

From: Andréas Livet <andreas <at> livet.me>
To: 36074 <at> debbugs.gnu.org
Subject: Still got the issue in Xubuntu 18.4
Date: Tue, 11 Jun 2019 16:32:34 +0200
Hello,

I'm running guix under Xubuntu 18.04 and still got the issue after 
modifying `/etc/systemd/system/guix-daemon.service` as stated in the patch.

After that I've done :

`systemctl restart guix-daemon`

`systemctl daemon-reload `

Should I done something else ?

I'm new to guix so sorry if it seems obvious.

Andréas





Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Tue, 11 Jun 2019 14:54:02 GMT) Full text and rfc822 format available.

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

From: Andréas Livet <andreas <at> livet.me>
To: 36074 <at> debbugs.gnu.org
Subject: Incorrect quoting of GUIX_LOCPATH environment variable in
 guix-daemon.service
Date: Tue, 11 Jun 2019 16:38:14 +0200
Hello,

I'm running guix under Xubuntu 18.04 and still got the issue after 
modifying `/etc/systemd/system/guix-daemon.service` as stated in the patch.

After that I've done :

`systemctl restart guix-daemon`

`systemctl daemon-reload `

Should I done something else ?

I'm new to guix so sorry if it seems obvious.

Andréas

PS : Sorry if this is a double post, though the email subject must be 
exactly the same so I re-send my email.





Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Wed, 12 Jun 2019 04:43:02 GMT) Full text and rfc822 format available.

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

From: David Loyall <david <at> the-good-guys.net>
To: 36074 <at> debbugs.gnu.org
Subject: Incorrect quoting of GUIX_LOCPATH environment variable in
 guix-daemon.service
Date: Tue, 11 Jun 2019 23:42:19 -0500
Andréas,

I'm not sure if you and I are having the same issue, but I found your
message after searching the web for information about the issue I was
facing.

I think this thread, which contains some links, provides a good
summary of the information available on the web for my issue:
https://lists.gnu.org/archive/html/help-guix/2019-06/msg00030.html

That said, the solution I found was this:

> I think the fix for this would be to clarify which package should be installed in **root's profile** when installing on a systemd foreign distro."

(Emphasis mine.  The quote is from Jack Hill in
https://lists.gnu.org/archive/html/help-guix/2019-06/msg00024.html)

So, I did `sudo guix package -i glibc-utf8-locales` (I previously did
the same without sudo--no change.)

...Before that, I'd done the other things recommended in the
aforementioned summary post.

Please note that I'm only copying and pasting magical invocations; I
don't understand locales nor guix.  I hope this message is helpful.

Cheers,
--sebboh




Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Wed, 12 Jun 2019 07:03:02 GMT) Full text and rfc822 format available.

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

From: Andréas Livet <andreas <at> livet.me>
To: 36074 <at> debbugs.gnu.org
Subject: Incorrect quoting of GUIX_LOCPATH environment variable in
 guix-daemon.service
Date: Wed, 12 Jun 2019 09:01:55 +0200
[Message part 1 (text/plain, inline)]
Thanks sebboh !

It fix the error. I've already read the thread on the mailing list but 
didn't see that the package should be install as root !

I have now other problems with UTF-8 :

* I can't open file containing non ASCII characters with libreoffice

* I can't type non ASCII characters in zsh


Don't know if this is related to this bug or not. Will try to reboot to 
see if it changes something.


Anyway, thanks for your help !

Andréas

[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#36074; Package guix. (Fri, 14 Jun 2019 17:18:01 GMT) Full text and rfc822 format available.

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

From: Andreas Enge <andreas <at> enge.fr>
To: Andréas Livet <andreas <at> livet.me>
Cc: 36074-done <at> debbugs.gnu.org
Subject: Re: bug#36074: Incorrect quoting of GUIX_LOCPATH environment
 variable in guix-daemon.service
Date: Fri, 14 Jun 2019 19:17:01 +0200
Closing the bug, since the problem seems to be solved; for the
follow-up, see bug#36180.

Andreas





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 13 Jul 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 288 days ago.

Previous Next


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