From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: guix-gc Date: Thu, 10 Jan 2013 13:40:25 +0100 Message-ID: <87hampi53a.fsf@gnu.org> References: <8738yfp4j7.fsf@gnu.org> <201301101104.22164.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtHQq-0004k9-VM for bug-guix@gnu.org; Thu, 10 Jan 2013 07:40:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtHQp-0005Gr-Fe for bug-guix@gnu.org; Thu, 10 Jan 2013 07:40:28 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:46995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtHQp-0005Gl-8y for bug-guix@gnu.org; Thu, 10 Jan 2013 07:40:27 -0500 In-Reply-To: <201301101104.22164.andreas@enge.fr> (Andreas Enge's message of "Thu, 10 Jan 2013 11:04:21 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Hi! Andreas Enge skribis: > When running "guix-gc" without specifying any root, the complete content = of=20 > /nix/store was classified as dead. This looks a bit excessive to me; shou= ld=20 > not at least the gnu build system that would be used to build a package=20 > with the currently installed guix be preserved? Even if the user has not= =20 > installed gcc in his environement, for instance, the "current" gcc should= =20 > be kept, whereas any older gcc (I had quite a few of them corresponding t= o=20 > several versions of guix) should be deleted. Well, anything that=E2=80=99s not reachable from a GC root is deleted. Nix provides other options that extend this model to something closer to what you say, namely =E2=80=98gc-keep-outputs=E2=80=99 (see .) 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=E2=80=99s not the case, unless you use: guix-build --root=3Dmy-hello hello and the keep the =E2=80=98my-hello=E2=80=99 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=20 > `/nix/store/j29s9129di8lzx7xbc9rj0ywx05pivij-readline-6.2': No such file = or=20 > 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=E2=80=99.