From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oEAoM+vvEGPDWAAAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 19:46:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IFYaM+vvEGMuzAAA9RJhRA (envelope-from ) for ; Thu, 01 Sep 2022 19:46:19 +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 6A920AFFA for ; Thu, 1 Sep 2022 19:46:19 +0200 (CEST) Received: from localhost ([::1]:39212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oToGg-0004n9-Jl for larch@yhetil.org; Thu, 01 Sep 2022 13:46:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTo0x-0008Bo-P2 for bug-guix@gnu.org; Thu, 01 Sep 2022 13:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTo0x-0004Ry-GQ for bug-guix@gnu.org; Thu, 01 Sep 2022 13:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTo0x-0001kD-C9 for bug-guix@gnu.org; Thu, 01 Sep 2022 13:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57315: guix upgrade --dry-run output is basically useless Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 01 Sep 2022 17:30:03 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 57315@debbugs.gnu.org, Csepp Received: via spool by 57315-submit@debbugs.gnu.org id=B57315.16620533776635 (code B ref 57315); Thu, 01 Sep 2022 17:30:03 +0000 Received: (at 57315) by debbugs.gnu.org; 1 Sep 2022 17:29:37 +0000 Received: from localhost ([127.0.0.1]:44096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTo0W-0001iw-CJ for submit@debbugs.gnu.org; Thu, 01 Sep 2022 13:29:36 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:35813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTo0T-0001iM-KK for 57315@debbugs.gnu.org; Thu, 01 Sep 2022 13:29:34 -0400 Received: by mail-wr1-f51.google.com with SMTP id s7so8377240wro.2 for <57315@debbugs.gnu.org>; Thu, 01 Sep 2022 10:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc; bh=VUjQMt3ryZFvA+QMgg2hgDzfX3AO7h0Sc0KaOsH+f54=; b=gjePjpYeyBmGLZ6U4KMlZutZCQhnwx1ADW3dbg47xF8XwDxleaaI/waz72Mrr0Lh0/ Az2FpMbINUG0mLUO343iemTKZjVkwNT8lkr9Gl2WgN84IqE0TkffcBSpXsC+7Wycliw0 zAgWYnoH5n+tREcZE6UnniBYxdPzPFwcYNTjP5916sTmoMf8K44e4kYmjZdma0PckdPF UGfxopl8d6z3HQX1T8ipToZJcHW7y4s2NZAb5ArzpkI4TiXQtfbvYo4eZahQux5C3lAX 5CYiZX736pVKRFdXE0TzC3OsNsTxc/aBsJdmVx2OyZyn+K+3R1GrgjuR1hB07Wcie1/t Sp5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=VUjQMt3ryZFvA+QMgg2hgDzfX3AO7h0Sc0KaOsH+f54=; b=lFhPOA+chP2h8VlwhJi/OMf+K/horzoZH9SJaIrgKkQdsWD7jih8vTmgW152rXOUIF TH3Sj7mezt79i2wl25CsDDx8KpHxsKQaCuaXx6FVjT7qCvD8YnHk6HAy/xag5a/tEDGr 0oF72ikap1rIpIW9ZZUYCvUZTu8TSrhLTm3b+6aMBQRz9Kdf8j/YBZWYYfX8037v9qeB G10USJ6X2N9xE7siNy38UOxebFG+a9vJcUVpX3k3hNkfc1kxMoyTGptFRvP87oO1TvZY SyJYRHYsuhszufyEoOLmi7TKlY1maKiwZgfxxrspvnpPKdG/4zvB5FoZMVXvO8wJP2H4 3JFg== X-Gm-Message-State: ACgBeo0sUxOaZYj27itiP9POunf68k+lh5B6v3sxKmGDa0t7ctHoyh8Z 7cYW6/0SS8skQJRS9NSTg80= X-Google-Smtp-Source: AA6agR7C0Kw1Wj+yR9QQ1QQ5hYLsf2ykRALLwFAoQX/ZrH5NRaVTeH15MfHPZ2hSeRpmqbyImTbyHw== X-Received: by 2002:a05:6000:887:b0:21e:24a0:f302 with SMTP id ca7-20020a056000088700b0021e24a0f302mr14751347wrb.466.1662053367968; Thu, 01 Sep 2022 10:29:27 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id bq25-20020a5d5a19000000b0021e519eba9bsm10502948wrb.42.2022.09.01.10.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 10:29:27 -0700 (PDT) From: zimoun In-Reply-To: <87mtbj47wv.fsf@gnu.org> References: <87pmgu3xc6.fsf@riseup.net> <87k06odao5.fsf@gnu.org> <865yi8d2a1.fsf@gmail.com> <87mtbj47wv.fsf@gnu.org> Date: Thu, 01 Sep 2022 19:19:43 +0200 Message-ID: <87y1v3t3kg.fsf@gmail.com> 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=1662054379; 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=VUjQMt3ryZFvA+QMgg2hgDzfX3AO7h0Sc0KaOsH+f54=; b=lft8bHQy2lDYlVTZVU9PyfB4g3CZMznl/+eYJJAmLPqznidvNvuBnz/MEh0Tk8qe9/GyPu Y/P/6WhefVlmEgAqvdt6g9Wj3mJAo37yIIaScukyU5vLqRE/Vi8kbVVrVCqZmZtukGaZIX NBjmMqDJCuGX1puPQZEAvByJn8x2l6eZ5f8poPwL0j0zMSh0TaqdVOo5oDwAZ/Vemr080S 6lOAKnfpbG9tczyAdiuKh8sMn5N6Q7mj54P0MnD9dFPM9dAK754gDtXvU8mmaJD8vHfAKT IpH8o/GzVjbH9Qb7TmTlWrMakSOjdcx+ST0Qqlv1KnvYbIpVh+s0BVJMAdUWdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662054379; a=rsa-sha256; cv=none; b=jR0tX3h4sVH5sFSLcSgF0Jlcbv4QahcwJkEGW9WZb8dBYaaeSLQr5B8V3qHTXSgrgBihqt F89qZNuM3xEgHc7Je9WYQ3F1+MNAJY9iWVJMq0y36Vwid7hb/t9EVMUl375q6giMg5zfiv C0zuz+cOXr3QjjBHJadSWH7lnmp5X2RzOPgpjkRErOOAqoVo8r29a2nclCbUp7WZy33+fC a5hddWpTj28sc4o69K54MjapWdOKLhBQN3ThcoFNlfhQj2NPwhVmc1hmtLa567MhVgTnJn 1e6Vq/iYE2OJ0A2MvXBt1lsVwNeb/VjaWKD8SN4se+YAaMwsP2AOtP4gzWvnwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gjePjpYe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 6.22 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gjePjpYe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 6A920AFFA X-Spam-Score: 6.22 X-Migadu-Scanner: scn1.migadu.com X-TUID: g+2q9NVp7ckF Hi, Thanks for explaining. On jeu., 01 sept. 2022 at 14:05, Ludovic Court=C3=A8s wrote: >> Just to mention this report is somehow a duplicate of bug#40612 [1]. >> Maybe, they could be merged. WDYT? > > Yes, please. Done. >> $ 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 buildi= ng derivations > that are not grafts. For grafts, you would see =E2=80=9CThe following gr= aft =E2=80=A6=E2=80=9D, > and only at verbosity level 2 or more (see =E2=80=98show-what-to-build=E2= =80=99). Well, the UI does not appear clear to me. >> 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 speaki= ng 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 i= t=E2=80=99s > doing an okay job from that perspective. Well, I understand that using the current implementation, it is not possible to know the complete plan beforehand. I agree that for most of the cases, it is enough. However, I still miss why it is not possible to compute the whole graph of derivations. This complete graph is potentially a bit expensive to compute but I accept to paid this cost to have a better plan. Cheers, simon