From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#25136: locale confusion Date: Thu, 8 Dec 2016 15:08:59 -0500 Message-ID: <20161208200859.GB23449@jasmine> References: <87y3zq7cqx.fsf@pc102091.liv.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF516-0005fg-JG for bug-guix@gnu.org; Thu, 08 Dec 2016 15:10:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cF510-00057D-Fk for bug-guix@gnu.org; Thu, 08 Dec 2016 15:10:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cF510-000576-Bv for bug-guix@gnu.org; Thu, 08 Dec 2016 15:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cF510-0008H0-1N for bug-guix@gnu.org; Thu, 08 Dec 2016 15:10:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87y3zq7cqx.fsf@pc102091.liv.ac.uk> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Dave Love Cc: 25136@debbugs.gnu.org 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 > 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.