From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbaugh@catern.com Subject: Foreign distro GUIX_LOCPATH errors when installing from manual Date: Tue, 05 Jul 2016 13:07:37 -0400 Message-ID: <87h9c4au92.fsf@earth.catern.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKUFf-0000jd-S8 for guix-devel@gnu.org; Tue, 05 Jul 2016 13:35:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKUFa-000673-Th for guix-devel@gnu.org; Tue, 05 Jul 2016 13:35:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:49075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKUFa-00065h-Ll for guix-devel@gnu.org; Tue, 05 Jul 2016 13:35:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bKUFU-0003QS-QA for guix-devel@gnu.org; Tue, 05 Jul 2016 19:35:04 +0200 Received: from 71-46-80-67.res.bhn.net ([71.46.80.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jul 2016 19:35:04 +0200 Received: from sbaugh by 71-46-80-67.res.bhn.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jul 2016 19:35:04 +0200 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi, I was just getting started with Guix by installing it on my regular distro, Debian Jessie, by following the manual (which is really great - I tried installing Nix first but couldn't get it to work, the Guix manual is much better). The install was successful but I noticed two errors related to GUIX_LOCPATH which I had to fix by asking others for advice. Both happen when running guix package commands as a regular user, by running /usr/local/bin/guix. - substitute: warning: failed to install locale: Invalid argument This was a result of the daemon, running as root, not having GUIX_LOCPATH set in its environment. My solution was installing glibc-locale in root's profile, and adding: Environment=GUIX_LOCPATH=/root/.guix_profile/lib/locale to the [Service] section of the systemd unit file used to start the daemon. I suggest that this line should be added to the unit file shipped with guix, and that the installation instructions say to install glibc-locale (or some other locale package) in root's profile. - warning: failed to install locale: Invalid argument This was a result of the user running guix not having GUIX_LOCPATH set in their current environment. But, keep in mind, the user is running guix through /usr/local/bin/guix, which is in fact a symlink to root's guix. I suggest that the appropriate solution is to instead of symlinking /usr/local/bin/guix to /var/guix/profiles/per-user/root/guix-profile/bin/guix, we should replace /usr/local/bin/guix with the following shell script: #!/bin/sh export GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale /var/guix/profiles/per-user/root/guix-profile/bin/guix $* That is, root's guix should be run with root's locales. Hopefully these can be fixed!