From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Arch Linux locale-gen tries to use /run/current-system Date: Sat, 14 May 2016 19:20:04 +0100 Message-ID: <87inygtsbv.fsf@gmail.com> References: <87d1osqhjy.fsf@gmail.com> <874ma32mev.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1eAK-0002NI-Kf for help-guix@gnu.org; Sat, 14 May 2016 14:19:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1eAG-00023r-AS for help-guix@gnu.org; Sat, 14 May 2016 14:19:51 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:37554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1eAG-00023C-44 for help-guix@gnu.org; Sat, 14 May 2016 14:19:48 -0400 Received: by mail-wm0-x22f.google.com with SMTP id a17so76297638wme.0 for ; Sat, 14 May 2016 11:19:47 -0700 (PDT) In-reply-to: <874ma32mev.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Kost Cc: help-guix@gnu.org Thank you for the reply, unfortunately that computer has come to the end of its natural life so I can't investigate any further. I will be sure to try nix on my new build. Alex Kost writes: > Myles English (2016-05-12 02:52 +0300) wrote: > >> Hello, >> >> I am trying guix on Arch Linux. While updating the system package to >> glibc 2.23 I get this error: >> >> $ locale-gen >> Generating locales... >> en_GB.UTF-8...cannot create temporary file: >> /run/current-system/locale/2.22/locale-archive.nfq78F: No such file or >> directory > > "locale-gen" script runs "localedef" command (which is from "glibc" > package). So I think that the Guix's localedef is started. My guess is > you installed "glibc" into your guix user profile, and > "~/.guix-profile/bin" takes preference over other directories in your > $PATH. Could you check "which localedef"? > > If it's true, why did you install glibc in your profile? I think it is > not needed. Not sure, I did have some installation difficulties at "2.6 Application Setup"[fn:1] where "guix package -i glibc-locales" did not work first time, I forget the details though. > OTOH if my guess is correct, this environment problem should happen only > for your user, but the root user shouldn't have localedef in its PATH. > So you probably keep your user environment during system update (maybe > with "sudo -E pacman -S ..." or something similar), right? How did you > start pacman? I think you are right and I had environment variables set in my .zshrc that I shouldn't have. Myles Footnotes: [fn:1] https://www.gnu.org/software/guix/manual/html_node/Application-Setup.html