GNU bug report logs - #71332
guix gc delete order

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Nicolas Graves <ngraves@HIDDEN>; dated Mon, 3 Jun 2024 09:14:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 71332 <at> debbugs.gnu.org:


Received: (at 71332) by debbugs.gnu.org; 3 Jun 2024 13:31:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 09:31:38 2024
Received: from localhost ([127.0.0.1]:40148 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sE7mk-0000yM-9b
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2024 09:31:38 -0400
Received: from 3.mo561.mail-out.ovh.net ([46.105.44.175]:55035)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ngraves@HIDDEN>) id 1sE7mh-0000y9-Jq
 for 71332 <at> debbugs.gnu.org; Mon, 03 Jun 2024 09:31:36 -0400
Received: from director1.ghost.mail-out.ovh.net (unknown [10.109.140.166])
 by mo561.mail-out.ovh.net (Postfix) with ESMTP id 4VtDyN0R5lz1F3L
 for <71332 <at> debbugs.gnu.org>; Mon,  3 Jun 2024 13:26:20 +0000 (UTC)
Received: from ghost-submission-6684bf9d7b-rtfkp (unknown [10.110.168.168])
 by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 686101FD3A;
 Mon,  3 Jun 2024 13:26:19 +0000 (UTC)
Received: from ngraves.fr ([37.59.142.108])
 by ghost-submission-6684bf9d7b-rtfkp with ESMTPSA
 id El6IFXvEXWYLHAAA+ZYi1A
 (envelope-from <ngraves@HIDDEN>); Mon, 03 Jun 2024 13:26:19 +0000
Authentication-Results: garm.ovh; auth=pass
 (GARM-108S0025585e3db-ebd8-44bf-b47e-cf4f9cb0e80c,
 9A7BB71699EF2F67F53F4148680474B903D0314E) smtp.auth=ngraves@HIDDEN
X-OVh-ClientIp: 80.215.130.16
From: Nicolas Graves <ngraves@HIDDEN>
To: Guillaume Le Vaillant <glv@HIDDEN>
Subject: Re: bug#71332: guix gc delete order
In-Reply-To: <87plsygypx.fsf@kitej>
References: <87bk4i5r3p.fsf@HIDDEN> <87plsygypx.fsf@kitej>
Date: Mon, 03 Jun 2024 15:26:16 +0200
Message-ID: <87ttiauphj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Ovh-Tracer-Id: 14157909854406173275
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: -100
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdelvddgieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepveekleeujedthefgffekleekhffhffetgfdvheekleeuhfehueeljedtjefhvdfgnecukfhppeduvdejrddtrddtrddupdektddrvdduhedrudeftddrudeipdefjedrheelrddugedvrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejudeffedvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedupdhmohguvgepshhmthhpohhuth
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71332
Cc: Andrew Tropin <andrew@HIDDEN>, 71332 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2024-06-03 09:30, Guillaume Le Vaillant wrote:

> Hi.
> Is the guix-daemon of your system started with the
> "--gc-keep-derivations=yes" and "--gc-keep-outputs=yes" options?
> It should prevent "guix gc" from deleting the build dependencies of live
> profiles.

Probably not if they have to be added through the extra-options field of
<guix-configuration> record. I'll try that, thanks! 

-- 
Best regards,
Nicolas Graves




Information forwarded to bug-guix@HIDDEN:
bug#71332; Package guix. Full text available.

Message received at 71332 <at> debbugs.gnu.org:


Received: (at 71332) by debbugs.gnu.org; 3 Jun 2024 09:30:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 05:30:59 2024
Received: from localhost ([127.0.0.1]:59016 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sE41r-00068o-53
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:30:59 -0400
Received: from mout02.posteo.de ([185.67.36.66]:38829)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <glv@HIDDEN>) id 1sE41n-00068a-NJ
 for 71332 <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:30:57 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 7F582240101
 for <71332 <at> debbugs.gnu.org>; Mon,  3 Jun 2024 11:30:36 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1717407036; bh=8c3Q8sJnl96gh9eX6nVehYlI9DI2ut6iMU0diImLj40=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 From;
 b=OLrxY1DFrAgGCe4CWkX7gvAX1tHea0mxgwZtB7KBmUzv4M+AxVHEqMXIxZOwe1Ia3
 P07Wm+TnSC/SoOCLNtNlxiT9N4/TBtRgalzVNKRmbODz0PDFy1I0zgY6IyUlL+A8v1
 lxYGaAzy8OG47URq9TakwvatGZ+3URuUwuK7IDZ1y4hsnBDZgUlosLGyCKkywK85jS
 p+p8L2MpTZJkNkAKWwKwO8ralAuMtC01LadWXAjwaeUG8ZpP06n8wt4uos/vnU8OZA
 M7sHsgqcoXLVlYY5XgiW+o3SmN6a1EwoO0ZYk1VpdSx7OxAAyM30t3YsKzf+VOiM/S
 NvG+AwZ0Sy65Q==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Vt7kM4s81z6tx0;
 Mon,  3 Jun 2024 11:30:35 +0200 (CEST)
From: Guillaume Le Vaillant <glv@HIDDEN>
To: Nicolas Graves <ngraves@HIDDEN>
Subject: Re: bug#71332: guix gc delete order
In-Reply-To: <87bk4i5r3p.fsf@HIDDEN> (Nicolas Graves via Bug reports for's
 message of "Mon, 03 Jun 2024 11:10:34 +0200")
References: <87bk4i5r3p.fsf@HIDDEN>
Date: Mon, 03 Jun 2024 09:30:34 +0000
Message-ID: <87plsygypx.fsf@kitej>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71332
Cc: 71332 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Nicolas Graves via Bug reports for GNU Guix <bug-guix@HIDDEN> skribis:

> Hi Guix,
>
> I feel the way `guix gc` choose its files to delete quite
> inconvenient. For instance, when developping big programs locally, I
> often find myself missing space, but when I will `guix gc -C30G`,
> instead of the expected unused items (not present in any profile, just
> built but discarded as the package I'm building is updated for
> instance), I will instead loose most of the native-inputs that are
> needed to build my `guix home` and `guix system`.
>
> This make me stuck in an endless loop of removing / redownloading over
> and over the same native-inputs, while my intention is first to remove
> files that aren't these native-inputs.
>
> I haven't delved into `guix gc` yet, how hard is that issue to solve?=20

Hi.
Is the guix-daemon of your system started with the
"--gc-keep-derivations=3Dyes" and "--gc-keep-outputs=3Dyes" options?
It should prevent "guix gc" from deleting the build dependencies of live
profiles.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZl2NOg8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j/R2gD/TCSZwLLuoAE1GhuClOQaIZF0YAvt3OfSdzpC
p+Ur918A/0rkb6aDYjsQZ6nn0vCt1HwCis4eJzjO8GQDh/dAJSY3
=ml36
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#71332; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Jun 2024 09:13:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 05:13:38 2024
Received: from localhost ([127.0.0.1]:58995 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sE3kq-0005i6-BW
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:13:38 -0400
Received: from lists.gnu.org ([209.51.188.17]:48214)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ngraves@HIDDEN>) id 1sE3kl-0005hw-Us
 for submit <at> debbugs.gnu.org; Mon, 03 Jun 2024 05:13:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ngraves@HIDDEN>)
 id 1sE3iR-0006cf-Jo
 for bug-guix@HIDDEN; Mon, 03 Jun 2024 05:10:55 -0400
Received: from 7.mo560.mail-out.ovh.net ([188.165.48.182])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ngraves@HIDDEN>)
 id 1sE3iP-0006wj-ET
 for bug-guix@HIDDEN; Mon, 03 Jun 2024 05:10:55 -0400
Received: from director8.ghost.mail-out.ovh.net (unknown [10.109.140.39])
 by mo560.mail-out.ovh.net (Postfix) with ESMTP id 4Vt7HK5GFyz1TMJ
 for <bug-guix@HIDDEN>; Mon,  3 Jun 2024 09:10:37 +0000 (UTC)
Received: from ghost-submission-6684bf9d7b-h9hqr (unknown [10.111.174.115])
 by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 9A9A91FE6E
 for <bug-guix@HIDDEN>; Mon,  3 Jun 2024 09:10:36 +0000 (UTC)
Received: from ngraves.fr ([37.59.142.106])
 by ghost-submission-6684bf9d7b-h9hqr with ESMTPSA
 id O9HbF4yIXWaAPwAAv5/j4g (envelope-from <ngraves@HIDDEN>)
 for <bug-guix@HIDDEN>; Mon, 03 Jun 2024 09:10:36 +0000
Authentication-Results: garm.ovh; auth=pass
 (GARM-106R00623bccd70-bd65-4896-9155-644bf9552dea,
 9A7BB71699EF2F67F53F4148680474B903D0314E) smtp.auth=ngraves@HIDDEN
X-OVh-ClientIp: 80.215.130.16
From: Nicolas Graves <ngraves@HIDDEN>
To: bug-guix@HIDDEN
Subject: guix gc delete order
Date: Mon, 03 Jun 2024 11:10:34 +0200
Message-ID: <87bk4i5r3p.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Ovh-Tracer-Id: 9839520762669294256
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdelvddguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepueejleeileejfffhleetjedtleejheevudffleevgfdufeekhefgvddvveegveefnecukfhppeduvdejrddtrddtrddupdektddrvdduhedrudeftddrudeipdefjedrheelrddugedvrddutdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopegsuhhgqdhguhhigiesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheeitddpmhhouggvpehsmhhtphhouhht
Received-SPF: pass client-ip=188.165.48.182; envelope-from=ngraves@HIDDEN;
 helo=7.mo560.mail-out.ovh.net
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


Hi Guix,

I feel the way `guix gc` choose its files to delete quite
inconvenient. For instance, when developping big programs locally, I
often find myself missing space, but when I will `guix gc -C30G`,
instead of the expected unused items (not present in any profile, just
built but discarded as the package I'm building is updated for
instance), I will instead loose most of the native-inputs that are
needed to build my `guix home` and `guix system`.

This make me stuck in an endless loop of removing / redownloading over
and over the same native-inputs, while my intention is first to remove
files that aren't these native-inputs.

I haven't delved into `guix gc` yet, how hard is that issue to solve? 

-- 
Best regards,
Nicolas Graves




Acknowledgement sent to Nicolas Graves <ngraves@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#71332; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 3 Jun 2024 13:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.