On 2022-06-08, Maxime Devos wrote:
> In /etc/systemd/system/guix-daemon.service, there's the line:
>
> Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale'
>  LC_ALL=en_US.utf8
>
> However, I'm using Debian's guix so shouldn't it look for glibc's
> locales instead?  (Also, I'm not installing anything as root, so I'd
> like to remove /var/guix/profiles/per-user/root.)

Thanks for the report! These are good questions...


> I reverted the ExecStart=... line to ExecStart=/usr/bin/guix-daemon.
> I removed the GUIX_LOCPATH=... assignment.  However, that resulted
> in 'guix substitute' not finding the locale:
>
> $ guix build --source snap
> substitute: hint: Consider installing the `glibc-utf8-locales' or 
> `glibc-locales' package and
> substitute: defining `GUIX_LOCPATH', along these lines:
> substitute: 
> substitute:      guix install glibc-utf8-locales
> substitute:      export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
> substitute: 
> substitute: See the "Application Setup" section in the manual, for more info.
> substitute: 
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> 113,0 MB will be downloaded: [etc etc].
>
> To resolve the issue, I replaced LC_ALL=en_US.utf8 by LC_ALL=C.UTF-8
> (LC_ALL=C.utf8 doesn't work for whatever reason) and did a
> "systemctl daemon-reload" + "systemctl restart guix-daemon", after which
> the locale warnings didn't appear again.

So do you now have...

  ExecStart=/usr/bin/guix-daemon --build-users-group=_guixbuild
  Environment=LC_ALL=C.UTF-8


Does this mean the build environment that guix-daemon creates are
running in the C.UTF-8 locale, or does guix-daemon normalize the locale
that builds are performed in to use a "default" locale from guix;
C.UTF-8 isn't yet present in guix's glibc, could this cause issues?

I'll admit I'm a little confused at the multiplicity of potentially
relevent locales; in which environments are which locales
used... etc. :)


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to