unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: bug-guix@gnu.org
Subject: Re: guix-gc
Date: Thu, 10 Jan 2013 13:40:25 +0100	[thread overview]
Message-ID: <87hampi53a.fsf@gnu.org> (raw)
In-Reply-To: <201301101104.22164.andreas@enge.fr> (Andreas Enge's message of "Thu, 10 Jan 2013 11:04:21 +0100")

Hi!

Andreas Enge <andreas@enge.fr> skribis:

> When running "guix-gc" without specifying any root, the complete content of 
> /nix/store was classified as dead. This looks a bit excessive to me; should 
> not at least the gnu build system that would be used to build a package 
> with the currently installed guix be preserved? Even if the user has not 
> installed gcc in his environement, for instance, the "current" gcc should 
> be kept, whereas any older gcc (I had quite a few of them corresponding to 
> several versions of guix) should be deleted.

Well, anything that’s not reachable from a GC root is deleted.

Nix provides other options that extend this model to something closer to
what you say, namely ‘gc-keep-outputs’ (see
<http://hydra.nixos.org/build/3676991/download/1/nix/manual.html>.)

I guess we should add a guix-daemon option for that.

> If I see it correctly, this means that the output of
>    guix-build hello --dry-run
> should be kept in the store.

Currently it’s not the case, unless you use:

  guix-build --root=my-hello hello

and the keep the ‘my-hello’ symlink around.

> I also got the following error on the first run:
>
> deleting `/nix/store/j29s9129di8lzx7xbc9rj0ywx05pivij-readline-6.2'
> error: build failed: getting status of 
> `/nix/store/j29s9129di8lzx7xbc9rj0ywx05pivij-readline-6.2': No such file or 
> directory
>
> But the next run worked and deleted everything.

Hmm, weird.  If that happens again, perhaps you should try to see where
that directory is, by looking at /nix/store and at --list-dead and
--list-live, for instance.

Thanks,
Ludo’.

  reply	other threads:[~2013-01-10 12:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-05 23:57 guix-gc Ludovic Courtès
2013-01-10 10:04 ` guix-gc Andreas Enge
2013-01-10 12:40   ` Ludovic Courtès [this message]
2013-01-19 13:00     ` guix-gc Andreas Enge
2013-01-22 21:56       ` guix-gc Ludovic Courtès
2013-01-26 13:58         ` guix-gc Andreas Enge

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hampi53a.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=andreas@enge.fr \
    --cc=bug-guix@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).