From patchwork Mon Jun 24 12:18:57 2019 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: 14372 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 68FC717153; Mon, 24 Jun 2019 13:20:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 662641714F for ; Mon, 24 Jun 2019 13:20:13 +0100 (BST) Received: from localhost ([::1]:50672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfNxD-0000rV-1U for patchwork@mira.cbaines.net; Mon, 24 Jun 2019 08:20:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47581) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfNx7-0000ov-Km for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfNx4-0005Aa-BU for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfNx4-00059i-7h for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hfNx3-0003g2-V5 for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36351] [PATCH 00/10] Add 'derivation-build-plan', improve (guix derivations) Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Jun 2019 12:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36351 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36351@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156137876214079 (code B ref -1); Mon, 24 Jun 2019 12:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2019 12:19:22 +0000 Received: from localhost ([127.0.0.1]:55692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfNwP-0003f1-RF for submit@debbugs.gnu.org; Mon, 24 Jun 2019 08:19:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:60773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfNwM-0003eo-Pu for submit@debbugs.gnu.org; Mon, 24 Jun 2019 08:19:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47262) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfNwL-0000i0-PK for guix-patches@gnu.org; Mon, 24 Jun 2019 08:19:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hfNwG-0003ll-6L; Mon, 24 Jun 2019 08:19:14 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=43524 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hfNwC-0000I4-Rf; Mon, 24 Jun 2019 08:19:10 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Mon, 24 Jun 2019 14:18:57 +0200 Message-Id: <20190624121857.5818-1-ludo@gnu.org> X-Mailer: git-send-email 2.22.0 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 is the season cleanup of (guix derivations)! The initial motivation was to allow ‘show-what-to-build’ to do deal with builds of single derivation outputs, which became possible in commit f8a9f99cd602ce1dc5307cb0c21ae718ad8796bb. I ended up replacing ‘derivation-prerequisites-to-build’ with ‘derivation-build-plan’, which is both more flexible and simpler. That led me to change so that it would contain a instead of a derivation file name, which is more natural and helps for things like ‘derivation-build-plan’ that traverse the derivation graph (previously it’d have to call ‘read-derivation-from-file’, which would look up the derivation in ‘%derivation-cache’.) I wanted to change ‘guix build’ to support things like: guix build groff:doc but there are slight complications so I’ll punt on that for now. Thoughts? Ludo’. Ludovic Courtès (10): derivations: Add 'derivation-input'. derivations: Rewrite and replace 'derivations-prerequisites-to-build'. ui: 'show-what-to-build' uses 'derivation-build-plan'. graph: Use 'derivation-input-derivation'. derivations: now aggregates a . derivations: 'derivation' preserves pointer equality. derivations: 'build-derivations' can be passed derivation inputs. packages: 'specification->package+output' distinguishes "no output specified". ui: 'show-what-to-build' accepts derivation inputs. ui: 'show-derivation-outputs' accepts records. gnu/packages.scm | 8 +- guix/derivations.scm | 269 +++++++++++++++++++++++------------------ guix/scripts/graph.scm | 3 +- guix/ui.scm | 67 +++++----- tests/derivations.scm | 80 ++++++------ tests/grafts.scm | 16 +-- tests/packages.scm | 32 +++++ 7 files changed, 271 insertions(+), 204 deletions(-)