From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MFfBNPynEGONaAAAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 14:39:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MKPkM/ynEGNqBQEAG6o9tA (envelope-from ) for ; Thu, 01 Sep 2022 14:39:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 74C1BBEF5 for ; Thu, 1 Sep 2022 14:39:24 +0200 (CEST) Received: from localhost ([::1]:46850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTjTe-0005fZ-HS for larch@yhetil.org; Thu, 01 Sep 2022 08:39:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTixO-0000Lx-Jr for bug-guix@gnu.org; Thu, 01 Sep 2022 08:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTixO-0004A2-AD for bug-guix@gnu.org; Thu, 01 Sep 2022 08:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTixO-000305-51 for bug-guix@gnu.org; Thu, 01 Sep 2022 08:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57315: guix upgrade --dry-run output is basically useless Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 01 Sep 2022 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57315 X-GNU-PR-Package: guix X-GNU-PR-Keywords: notabug To: zimoun Cc: 57315@debbugs.gnu.org, Csepp Received: via spool by 57315-submit@debbugs.gnu.org id=B57315.166203393311500 (code B ref 57315); Thu, 01 Sep 2022 12:06:02 +0000 Received: (at 57315) by debbugs.gnu.org; 1 Sep 2022 12:05:33 +0000 Received: from localhost ([127.0.0.1]:41473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTiwu-0002zP-TQ for submit@debbugs.gnu.org; Thu, 01 Sep 2022 08:05:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTiwt-0002zD-CP for 57315@debbugs.gnu.org; Thu, 01 Sep 2022 08:05:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTiwn-00048Q-PK; Thu, 01 Sep 2022 08:05:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=9nYN5XP57PV3uqxDsFjejZljkPsfQUyRpq++CemsEp8=; b=C8Ncqs1OFld4SnlspKo8 TLZdqssB02aubP0dDvtIMqhAfo+E7JUWIi8+yOjGJhxzKWViszFiK0pTo0KWIMGV6h/UDwkzljbMm AugwgU+ipQ5kVWDr/sMpiQQQ8ioTaPhuhfNTVhB5pXRmX8omrcrkAUQxLH0SEiOzuNxcTQZ5Zq/tE VE0PopeZfvsfLo+R9PzwlkqxK7Q3k2ki5nl5aC2TQXN5rYEC/jt/1Os1SMiEHzogXo4euOsAGUwI7 b+4miFcpPrOaWzE0gegk+i+kbKPeaF+W798ATVbb6+nFl63hxRIShJGfUDXwvwkY+PluDOUSqtDnX F71Wuw8GMAN3vQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54078 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTiwV-0007Vr-Iv; Thu, 01 Sep 2022 08:05:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87pmgu3xc6.fsf@riseup.net> <87k06odao5.fsf@gnu.org> <865yi8d2a1.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 15 Fructidor an 230 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la Truite X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Sep 2022 14:05:04 +0200 In-Reply-To: <865yi8d2a1.fsf@gmail.com> (zimoun's message of "Wed, 31 Aug 2022 14:29:42 +0200") Message-ID: <87mtbj47wv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662035964; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9nYN5XP57PV3uqxDsFjejZljkPsfQUyRpq++CemsEp8=; b=SI7dFv+toy8HIdjc+J31bvkBRMyngRbM8vewZwLgiwpoAvzz0H8iMB+Wqg66eLUjQPzfME E3MneGETzN66Umjh+7qVQwyQ6l3bPrxADCrHkvQM299xb30TwiOGzXZcsLG/8MUbvEYmAa yobGgLz89AWYAVDXJ78b183TmYJZDiDt1sXNPAYJIPvyS15Np1qqtwam7/QdFzcQfvQNn4 +1q5RPsKMTTBQJiEwJoEKYVqKPF5p7yMYuly5o8UxnhiBHKSB67pxs8oVvfJRZ4RFH0YXs nz6wziaNoWBBtlzsd8PGPICAVjVYY6hd/X0DSKSonTrwSe6xTWfsRC3lWw3f7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662035964; a=rsa-sha256; cv=none; b=ZBnzn+tMU/Lt0Da6+xmPBAkzBhBBh1Rg1WbND0Hu7nKn5jOQa8Novkt8al6owNWWE8Odmd 3nsayBpuUC5Rhf1re45yRg4BSV14SlKSqil+AfWkaKGPN7TyDV7yPY+mu9VHzoHf9vQiUu jntOM6JJib8jQft6Gc+uX2NaRLlb6k7+2XVtv2LWgpyy6bHU8N5kLpZNDO12vRwRcAE1Zc T7nyLFXwPWWAfN/gmX+8XnA2Jyy6RwrdJ7Wmhw3jT+6He2KBmfNmrcFZa/vbwhCED+uKYL BHIhI0Ide4G3TedcHQRUXnDXhPH1R/OAYNc30iAvsvMPyxMS/iARI8ZlUAmIDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=C8Ncqs1O; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=C8Ncqs1O; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 74C1BBEF5 X-Spam-Score: -3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: FTab68P5cMJC Hi, zimoun skribis: > Just to mention this report is somehow a duplicate of bug#40612 [1]. > Maybe, they could be merged. WDYT? Yes, please. >> (If you=E2=80=99re curious, see >> for details.) > > Nice read! Quoting: > > [...] do a first pass lowering packages to derivations as if > grafting was disabled, build all these derivations, and then do > a second pass to determine which packages in the graph need to > be grafted and to compute the relevant grafting > derivation. [...] If we reify that second pass to the user > interface code, it also addresses the user interface issue by > allowing it to display, possibly, two build plans: the > =E2=80=9Cungrafted=E2=80=9D one followed by the grafted one. > > Currently, these 2 plans are not well-exposed, IMHO. When there are two or more passes, each one is printed as soon as possible. So you see =E2=80=9CX MiB will be downloaded=E2=80=9D or similar= messages in the middle of the process. > $ guix package -i opensurge --dry-run > guix package: warning: Your Guix installation is 12 days old. > guix package: warning: Consider running 'guix pull' followed by > 'guix package -u' to get up-to-date packages and security updates. > > The following package would be installed: > opensurge 0.5.2.1 > > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% > substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... = 100.0% > The following derivation would be built: > /gnu/store/r89hmhbxwm3gs1jl2dhns7gnwvi2k6s1-opensurge-0.5.2.1.drv > > 42.1 MB would be downloaded > > What does it mean? That you=E2=80=99ll download 42M of dependencies and then build opensurge. =E2=80=9CThe following derivation would be built=E2=80=9D is about building= derivations that are not grafts. For grafts, you would see =E2=80=9CThe following graf= t =E2=80=A6=E2=80=9D, and only at verbosity level 2 or more (see =E2=80=98show-what-to-build=E2= =80=99). [...] > When I run the option =E2=80=99--dry-run=E2=80=99, I accept to pay a bit = more and then > compute as much as possible of derivations to have the most complete as > possible graph to know beforehand and as accurately as possible: > > 1. what I need to download as substitutes > 2. what I need to compile from source > 3. what require grafts, e.g., > > require 1 graft for openal-1.20.1 ... > require 4 grafts for sfml-2.5.1 ... > require 6 grafts for mars-0.7.5.1.c855d04 ... > > Sometime, the plan looks exactly like that. Sometime, it is really > confusing and you have unpleasant surprises when running it. By definition, the whole plan cannot be known in advance in the presence of dynamic dependencies such as grafts, so it=E2=80=99s hard to do better. The way it=E2=80=99s implemented right now is not optimal strictly speaking= in that we might bail out before we have a complete picture of everything that=E2=80=99s known statically beforehand. In practice though I think it= =E2=80=99s doing an okay job from that perspective. Cheers, Ludo=E2=80=99.