From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Outdated config.scm in development repo Date: Tue, 13 Oct 2015 14:33:01 -0400 Message-ID: References: <871tcy63q0.fsf@T420.taylan> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm4Nn-00009y-31 for guix-devel@gnu.org; Tue, 13 Oct 2015 14:33:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm4Ni-0003U0-5h for guix-devel@gnu.org; Tue, 13 Oct 2015 14:33:07 -0400 Received: from mail-yk0-f178.google.com ([209.85.160.178]:35875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm4Ni-0003Tv-1v for guix-devel@gnu.org; Tue, 13 Oct 2015 14:33:02 -0400 Received: by ykey125 with SMTP id y125so25557578yke.3 for ; Tue, 13 Oct 2015 11:33:01 -0700 (PDT) In-Reply-To: <871tcy63q0.fsf@T420.taylan> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?B?VGF5bGFuIFVscmljaCBCYXnEsXJsxLEvS2FtbWVy?= Cc: guix-devel On Tue, Oct 13, 2015 at 2:08 PM, Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer wrote: > From what I can tell this situation I landed in doesn't involve any bugs > and won't happen to a normal user, but for the sake of documenting it > for developers, here goes: > > I have $XDG_CONFIG_HOME/guix/latest point to a git repository so I can > update it swiftly. > > In the repo, a ./guix/config.scm is generated from ./guix/config.scm.in > sometimes, I guess on ./configure; I haven't tried to figure out exactly > when but certainly not every time I run 'make'. > > That config.scm will contain absolute paths to gzip, bzip2, and some > other things. If you used a Guix environment to build, those will be > /gnu/store/... paths. > > When you update things and garbage-collect, those store items might get > removed, since $XDG_CONFIG_HOME/guix/latest/guix/config.scm is not a GC > root (rightly so, as far as I understand). And thus, guix commands will > start failing, saying they can't find /gnu/store/.../bin/bzip2 or > whatever. > > That sums up the problem description. > > Fixing it might be tricky if you need to use 'guix environment' to run > ./configure or whatever to fix the config.scm, since you possibly first > need to fix the issue to be able to use 'guix environment' (it will work > only if no calls are made to the missing /gnu/store/... executables). > > Manually fixing the config.scm is easy, fortunately. Just change the > absolute /gnu/store/... paths which point at non-existing store items to > point to existing store items. Some day 'guix environment' will allow one to create a profile and register it as a GC root and avoid this issue. - Dave