all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Dave Love <fx@gnu.org>
Cc: 25136@debbugs.gnu.org
Subject: bug#25136: locale confusion
Date: Thu, 8 Dec 2016 15:08:59 -0500	[thread overview]
Message-ID: <20161208200859.GB23449@jasmine> (raw)
In-Reply-To: <87y3zq7cqx.fsf@pc102091.liv.ac.uk>

On Thu, Dec 08, 2016 at 01:48:38PM +0000, Dave Love wrote:
>   $ find $GUIX_LOCPATH -name en_GB.UTF-8
>   /home/dlove/.guix-profile/lib/locale/2.24/en_GB.UTF-8
> 
> but saw this (note the warning):
> 
>   $ guix --version 
>   warning: failed to install locale: Invalid argument
>   guix (GNU Guix) 20161208.12
>   Copyright (C) 2016 the Guix authors
>   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>   This is free software: you are free to change and redistribute it.
>   There is NO WARRANTY, to the extent permitted by law.
> 
> strace showed it looking in "locale/2.23", not "locale/2.24", despite
> the environment.

The `guix` used here is older than the latest version, as evidenced by
the call to an older version of the locales.

> "guix" there was from the /usr/local/bin link suggested by the
> installation instructions.  After a "guix package -i guix" (to the same
> version of guix, but now in .guix-profile), I don't get the warning but
> I wonder why that should have made a difference and why the environment
> seems to be ignored.

If you followed the installation instructions, then
'/usr/local/bin/guix' is owned by root, as it is symlinked to
'/var/guix/profiles/per-user/root/guix-profile/bin/guix'.

My guess is that you updated dlove's Guix package definitions, using
`guix pull`, but not root's. This operation is per-user. So, dlove's
locales package is at 2.24, while root's is at 2.23.

The issue went away when you tried the `guix` command installed by dlove
because dlove's package definitions are more recent than root's, and
all refer to the 2.24 locales.

Note that you will also see these locale warnings from the guix-daemon
if GUIX_LOCPATH is unset in the daemon's environment.

  reply	other threads:[~2016-12-08 20:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 13:48 bug#25136: locale confusion Dave Love
2016-12-08 20:08 ` Leo Famulari [this message]
2016-12-12 13:40   ` Dave Love
2016-12-09  6:46 ` Chris Marusich

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=20161208200859.GB23449@jasmine \
    --to=leo@famulari.name \
    --cc=25136@debbugs.gnu.org \
    --cc=fx@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.