all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jack Hill <jackhill@jackhill.us>
To: help-guix@gnu.org
Subject: Re: warning: setlocale: LC_ALL: cannot change locale on foreign distro
Date: Mon, 3 Jun 2019 14:01:50 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.20.1906031345360.5164@marsh.hcoop.net> (raw)
In-Reply-To: <alpine.DEB.2.20.1906031142100.5164@marsh.hcoop.net>

On Mon, 3 Jun 2019, Jack Hill wrote:

> Hello Guix,
>
> I'm setting up Guix on a foreign distro (CentOS 7). I'm working on getting 
> locales right per section 2.6.1 of the manual. I have installed the 
> guix-locales package in buth my user's and root's profile, and have restarted 
> guix-daemon. However, when I run package installation opterations, I see the 
> following message,
>
> ```
> /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: 
> warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
> ```

There appears to be two things going on here:

1) The default locale in the provided systemd unit, en_US.utf8, is not 
provided by the glibc-locales package but rather only by the 
glibc-utf8-locales package.

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.

2) The quoting in systemd unit is wrong. Changing

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

to


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

fixed the problem.

I'll open bugs for each of these issues.

Best,
Jack

  reply	other threads:[~2019-06-03 18:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-03 15:47 warning: setlocale: LC_ALL: cannot change locale on foreign distro Jack Hill
2019-06-03 18:01 ` Jack Hill [this message]
2019-06-03 20:59   ` Josh Holland
2019-06-04  1:30     ` Jack Hill

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1906031345360.5164@marsh.hcoop.net \
    --to=jackhill@jackhill.us \
    --cc=help-guix@gnu.org \
    /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 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.