From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 16:00:43 2022 Received: (at submit) by debbugs.gnu.org; 22 Mar 2022 20:00:43 +0000 Received: from localhost ([127.0.0.1]:41909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWkgN-0007So-K3 for submit@debbugs.gnu.org; Tue, 22 Mar 2022 16:00:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:40660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWkgM-0007Sg-6F for submit@debbugs.gnu.org; Tue, 22 Mar 2022 16:00:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWkgJ-0008Mt-HP for bug-guix@gnu.org; Tue, 22 Mar 2022 16:00:41 -0400 Received: from mx1.riseup.net ([198.252.153.129]:51644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWkgH-0006Kr-Nd for bug-guix@gnu.org; Tue, 22 Mar 2022 16:00:39 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4KNMmM0h7CzDrkc for ; Tue, 22 Mar 2022 13:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1647979235; bh=1WomrUHlOV4/6QOYWoM7zfjwicuHzbZjqaENdjUoMkI=; h=Date:From:To:Subject:In-Reply-To:References:From; b=qGBwVKW0bP6FhYCj6GKhIn/GYDb0tfud6VcyLCPY+IeAK3HyjtfsBqDgc5O4l9MP4 S/EFMKtp4Y9JBGMDmtP6pSV0Emsi5aVTuv5LGh+3DjKR2BBKJi4NsKQI7xTv+pyGa4 lw5ELuDI06W+QG6Zj/bq9DotYsY1w8IMMQA0eXDw= X-Riseup-User-ID: 6D1A7C722DC3C1CA6B9651AE08505C86689DCC1D8C469271A39D7279220F3D46 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4KNMmL2rGQz5vwc for ; Tue, 22 Mar 2022 13:00:34 -0700 (PDT) Date: Tue, 22 Mar 2022 21:00:28 +0100 From: raingloom To: bug-guix@gnu.org Subject: Re: bug#54495: unexpected download after gc Message-ID: <20220322210028.23cfe132@riseup.net> In-Reply-To: <877d8r8j5i.fsf@gmail.com> References: <877d8r8j5i.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On Fri, 18 Mar 2022 14:50:01 +0100 zimoun wrote: > Hi, > > Considering this with revision a03936a: > > guix gc > guix install python-ipython -p tools > guix gc > guix install python-ipython -p tools > > I am surprised that: > > 1. the second GC collects things > 2. the second install downloads things > > especially by this line: > > python-ipython-7.27.0 892KiB 4.6MiB/s 00:00 [##################] > 100.0% > > > Well, it is because of grafts. The profile contains the grafted > version and the installation expect first the non-grafted for > computing the graft. For instance: > > --8<---------------cut here---------------start------------->8--- > $ guix gc --list-dead | grep ipython > finding garbage collector roots... > determining live/dead paths... > /gnu/store/xmw4vxabnkm7vwa0ywfcqcmknbnia0c3-python-ipython-7.27.0 > > guix build python-ipython --no-grafts > /gnu/store/xmw4vxabnkm7vwa0ywfcqcmknbnia0c3-python-ipython-7.27.0 > --8<---------------cut here---------------end--------------->8--- > > When something is grafted, is it possible to consider the non-grafted > as a "derivation", i.e., control the GC with 'gc-keep-derivations'. > > Or the grafted could keep a reference to the non-grafted? > > > Well, I was expecting that this composition: > > guix gc && guix install > > was "idempotent" in a way. :-) And to me, the fact that it is not is > somehow a bug. Maybe, it is already well-known and not considered as > bug. > > > Cheers, > simon > > > There should definitely be more attention paid to offline use so IMHO this is a bug. Or at least missing feature.