all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: guix-devel@gnu.org
Subject: Outdated config.scm in development repo
Date: Tue, 13 Oct 2015 20:08:39 +0200	[thread overview]
Message-ID: <871tcy63q0.fsf@T420.taylan> (raw)

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.

Taylan

             reply	other threads:[~2015-10-13 18:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13 18:08 Taylan Ulrich Bayırlı/Kammer [this message]
2015-10-13 18:33 ` Outdated config.scm in development repo Thompson, David
2015-10-13 19:05   ` Taylan Ulrich Bayırlı/Kammer
2015-10-14 20:03 ` Ludovic Courtès

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=871tcy63q0.fsf@T420.taylan \
    --to=taylanbayirli@gmail.com \
    --cc=guix-devel@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.