From patchwork Thu Mar 19 10:56:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 20753 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6DB6E27BBEA; Thu, 19 Mar 2020 10:57:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 3D44227BBE4 for ; Thu, 19 Mar 2020 10:57:13 +0000 (GMT) Received: from localhost ([::1]:36080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEsrQ-0006K6-QL for patchwork@mira.cbaines.net; Thu, 19 Mar 2020 06:57:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33523) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEsrI-0006Jr-GU for guix-patches@gnu.org; Thu, 19 Mar 2020 06:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEsrG-0008LO-Du for guix-patches@gnu.org; Thu, 19 Mar 2020 06:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEsrG-0008LB-At for guix-patches@gnu.org; Thu, 19 Mar 2020 06:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEsrG-0000BS-9C for guix-patches@gnu.org; Thu, 19 Mar 2020 06:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40130] [PATCH 0/8] Add 'with-build-handler' and use it to improve UI feedback Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Mar 2020 10:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40130@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1584615415692 (code B ref -1); Thu, 19 Mar 2020 10:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Mar 2020 10:56:55 +0000 Received: from localhost ([127.0.0.1]:41813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEsr9-0000B5-HE for submit@debbugs.gnu.org; Thu, 19 Mar 2020 06:56:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:46537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEsr7-0000Ax-Fw for submit@debbugs.gnu.org; Thu, 19 Mar 2020 06:56:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33461) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEsr6-0006Iv-1d for guix-patches@gnu.org; Thu, 19 Mar 2020 06:56:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jEsr5-0007mC-Tm; Thu, 19 Mar 2020 06:56:51 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50554 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jEsr5-0002A6-7R; Thu, 19 Mar 2020 06:56:51 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Thu, 19 Mar 2020 11:56:42 +0100 Message-Id: <20200319105642.4830-1-ludo@gnu.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix! This patch series is to always display upfront what’s going to happen, even in the presence of “dynamic dependencies” (grafts), as was reported at: https://issues.guix.gnu.org/issue/28310 With this patch, any time ‘build-things’ is called, we have an opportunity to display what’s going to happen and to choose whether or not to actually build things (dry runs). I’m wondering whether/how this mechanism could be extended to address: https://issues.guix.gnu.org/issue/22990 We’ll see! Ludo’. Ludovic Courtès (8): syscalls: 'with-file-lock' re-grabs lock when reentering its dynamic extent. store: Add 'with-build-handler'. ui: Add a notification build handler. guix build: Use 'with-build-handler'. deploy: Use 'with-build-handler'. pack: Use 'with-build-handler'. guix package, pull: Use 'with-build-handler'. guix system: Use 'with-build-handler'. .dir-locals.el | 1 + guix/build/syscalls.scm | 64 ++++++------- guix/scripts/build.scm | 114 +++++++++++------------ guix/scripts/deploy.scm | 34 +++---- guix/scripts/pack.scm | 196 +++++++++++++++++++-------------------- guix/scripts/package.scm | 29 +++--- guix/scripts/pull.scm | 118 ++++++++++++----------- guix/scripts/system.scm | 80 ++++++++-------- guix/store.scm | 75 ++++++++++++--- guix/ui.scm | 38 ++++++++ tests/store.scm | 34 ++++++- 11 files changed, 447 insertions(+), 336 deletions(-)