From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UKqzEH1IJF+TaAAA0tVLHw (envelope-from ) for ; Fri, 31 Jul 2020 16:36:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +ISjDH1IJF/VAQAAB5/wlQ (envelope-from ) for ; Fri, 31 Jul 2020 16:36:13 +0000 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 A0B9D940630 for ; Fri, 31 Jul 2020 16:36:12 +0000 (UTC) Received: from localhost ([::1]:50562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1Y0v-0005vI-RI for larch@yhetil.org; Fri, 31 Jul 2020 12:36:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1Y0o-0005uH-Va for guix-patches@gnu.org; Fri, 31 Jul 2020 12:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1Y0o-0001A9-Lv for guix-patches@gnu.org; Fri, 31 Jul 2020 12:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k1Y0o-0000WI-Gj for guix-patches@gnu.org; Fri, 31 Jul 2020 12:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42481] [PATCH 0/2] Printing a more concise build plan Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 31 Jul 2020 16:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42481 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42481@debbugs.gnu.org Received: via spool by 42481-submit@debbugs.gnu.org id=B42481.15962133041923 (code B ref 42481); Fri, 31 Jul 2020 16:36:02 +0000 Received: (at 42481) by debbugs.gnu.org; 31 Jul 2020 16:35:04 +0000 Received: from localhost ([127.0.0.1]:38533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1Xzr-0000Uv-R7 for submit@debbugs.gnu.org; Fri, 31 Jul 2020 12:35:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1Xzn-0000UL-9U for 42481@debbugs.gnu.org; Fri, 31 Jul 2020 12:35:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46240) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1Xzi-0000vR-1U for 42481@debbugs.gnu.org; Fri, 31 Jul 2020 12:34:54 -0400 Received: from [2a01:e35:2ffd:930:68c2:32f7:f96f:b343] (port=49026 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k1Xzg-0008IN-9a for 42481@debbugs.gnu.org; Fri, 31 Jul 2020 12:34:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200722214018.32353-1-ludo@gnu.org> Date: Fri, 31 Jul 2020 18:34:49 +0200 In-Reply-To: <20200722214018.32353-1-ludo@gnu.org> ("Ludovic \=\?utf-8\?Q\?Cou\?\= \=\?utf-8\?Q\?rt\=C3\=A8s\=22's\?\= message of "Wed, 22 Jul 2020 23:40:18 +0200") Message-ID: <87y2mzskwm.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: 7uIXBJnkV5iR Hello Guix! Thoughts on this change? I think it=E2=80=99s a good idea but I=E2=80=99d be happy to hear what peop= le think! https://issues.guix.gnu.org/42481 Ludo=E2=80=99. Ludovic Court=C3=A8s skribis: > Hello Guix! > > These patches implement a suggestion Pierre made a while back: > showing by default fewer details about what will/would be built > or downloaded, and omitting info about grafts and hooks. > > The verbosity level here is controlled via the existing > =E2=80=98--verbosity=E2=80=99 or =E2=80=98-v=E2=80=99 flag (which thus no= w control two things). > > Here are examples of the result: > > $ ./pre-inst-env guix system disk-image --target=3Di586-pc-gnu gnu/system= /examples/bare-hurd.tmpl -n --no-grafts > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% > The following derivations would be built: > /gnu/store/y2inlprxbigqvknm5qwjwsqgljxfbri4-disk-image.drv > /gnu/store/gclxh7i8smp71hz0p7wcj6qkf377wigy-image-dir.drv > /gnu/store/21fin1j5pnjzfwbc70wdpzl3iyjym8xp-genimage.cfg.drv > /gnu/store/aqcziad6ghfaainjibpdfypc8m2rr1vm-partition.img.drv > /gnu/store/484d4fd9q9827bc09ia8bi1dgxl8gpwn-grub.cfg.drv > /gnu/store/nnldmy339w9xxnybir48w14yz2xk0pmx-system.drv > > [...] > > /gnu/store/ddxz08xvasphckdralifb624y3c7hrkx-rc.drv > /gnu/store/kq9qvn0m063m02cxf4kjipkf6x8vbvip-profile.drv > /gnu/store/y9if6nrykcqfnzxvb4cci2nzhmz1ipx5-parameters.drv > /gnu/store/w09j0p6126qcacylb455m5dn008yi04g-module-import.drv > 49.9 MB would be downloaded > > > Same with grafts: > > $ ./pre-inst-env guix system disk-image --target=3Di586-pc-gnu gnu/system= /examples/bare-hurd.tmpl -n > 36.2 MB would be downloaded > > > With =E2=80=98guix package=E2=80=99: > > $ ./pre-inst-env guix install vim-full krita -n > The following packages would be installed: > vim-full 8.2.1145 > krita 4.2.9 > > 76.9 MB would be downloaded > $ ./pre-inst-env guix install vim-full krita -n --no-grafts > The following packages would be installed: > vim-full 8.2.1145 > krita 4.2.9 > > The following derivation would be built: > /gnu/store/shf0anw8l0y9hg4l8qp1fym4bvwq5kh9-profile.drv > 76.9 MB would be downloaded > $ ./pre-inst-env guix install inkscape hugin -n > The following package would be upgraded: > inkscape (dependencies or package changed) > > The following package would be installed: > hugin 2019.2.0 > > The following derivation would be built: > /gnu/store/lsi56ap8lzchfy8y76y7wirzfiqvb3ca-hugin-2019.2.0.drv > 46.2 MB would be downloaded > > > The current behavior is obtain with =E2=80=98-v2=E2=80=99, which remains = the > default for =E2=80=98guix build=E2=80=99: > > $ ./pre-inst-env guix build inkscape hugin -n > The following derivation would be built: > /gnu/store/lsi56ap8lzchfy8y76y7wirzfiqvb3ca-hugin-2019.2.0.drv > 46.2 MB would be downloaded: > /gnu/store/3jvjmwm0srgxxjwngv28bif8l4ksfbnp-autotrace-0.40.0-20190624.= 59 > /gnu/store/gg36g9h2nzmq4dzrcr21ndb09nybqys0-inkscape-1.0 > /gnu/store/n94n0ggdhck5a2prsd1r468x3p6i68p4-enblend-enfuse-4.2 > /gnu/store/89rj5fqcg48afgk99639ds602pgf92k4-cmake-minimal-3.16.5 > /gnu/store/0i4h5cf1a71pj319svzz88g2z07cvdk3-wxwidgets-3.0.5.1 > /gnu/store/bwz9f0lg9lxscj6jfcgxmzqng3s1f1n3-vigra-1.11.1 > > It=E2=80=99s also possible to use =E2=80=98-v0=E2=80=99 now. > > How does that sound? > > Personally, I=E2=80=99m find it a bit disconcerting that so few is displa= yed > when substitutes are available, but it also feels more =E2=80=9Clightweig= ht=E2=80=9D > this way. I really like that what would be built appears clearly, > whereas now you have to scroll up possibly several pages to find > that info, especially upon =E2=80=98guix upgrade=E2=80=99. > > Feedback welcome! > > Ludo=E2=80=99. > > Ludovic Court=C3=A8s (2): > ui: Add #:verbosity to 'show-what-to-build'. > scripts: Pass #:verbosity to 'build-notifier'. > > guix/scripts/archive.scm | 2 + > guix/scripts/build.scm | 2 + > guix/scripts/copy.scm | 2 + > guix/scripts/deploy.scm | 4 +- > guix/scripts/environment.scm | 2 + > guix/scripts/pack.scm | 2 + > guix/scripts/package.scm | 2 + > guix/scripts/pull.scm | 2 + > guix/scripts/system.scm | 11 ++- > guix/ui.scm | 175 ++++++++++++++++++++++------------- > 10 files changed, 135 insertions(+), 69 deletions(-)