From patchwork Thu Jun 25 21:25:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Maja_K=C4=85dzio=C5=82ka?= X-Patchwork-Id: 22869 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 2057427BBE3; Thu, 25 Jun 2020 22:26:10 +0100 (BST) 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, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL 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 E533327BBE1 for ; Thu, 25 Jun 2020 22:26:09 +0100 (BST) Received: from localhost ([::1]:43886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joZNp-0002Bd-Ck for patchwork@mira.cbaines.net; Thu, 25 Jun 2020 17:26:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joZNi-0002BR-FW for guix-patches@gnu.org; Thu, 25 Jun 2020 17:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joZNi-0004Gb-5r for guix-patches@gnu.org; Thu, 25 Jun 2020 17:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1joZNi-0002oO-2x for guix-patches@gnu.org; Thu, 25 Jun 2020 17:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42049] [PATCH 0/4] build-system/cargo: Propagations across the crate closure. Resent-From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jun 2020 21:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42049 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42049@debbugs.gnu.org Cc: efraim@flashner.co.il X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159312034810782 (code B ref -1); Thu, 25 Jun 2020 21:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jun 2020 21:25:48 +0000 Received: from localhost ([127.0.0.1]:41390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joZNT-0002np-ST for submit@debbugs.gnu.org; Thu, 25 Jun 2020 17:25:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:42578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joZNP-0002nd-0C for submit@debbugs.gnu.org; Thu, 25 Jun 2020 17:25:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joZNO-0002Aw-QP for guix-patches@gnu.org; Thu, 25 Jun 2020 17:25:42 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:39282) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joZNM-00041B-PS for guix-patches@gnu.org; Thu, 25 Jun 2020 17:25:42 -0400 Received: (qmail 31910 invoked by uid 1009); 25 Jun 2020 23:25:32 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25853. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.012008 secs); 25 Jun 2020 21:25:32 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 25 Jun 2020 23:25:31 +0200 From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Date: Thu, 25 Jun 2020 23:25:23 +0200 Message-Id: <20200625212523.25016-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Received-SPF: none client-ip=37.59.186.212; envelope-from=kuba@kadziolka.net; helo=pat.zlotemysli.pl X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/25 17:25:32 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 Due to the unusual (for Guix) compilation model used by cargo-build-system, any phases or inputs added by a given library crate need to be duplicated in all its dependents. This patchstack attempts to solve this by allowing to propagate inputs, native-inputs and phases across cargo-inputs edges in the dependency graph. Apart from the build system work itself, I have included samples of the cleanup they allow. Apart from being a good example, these are the changes I have used to test the feature. Jakub Kądziołka (4): build-system/cargo: Allow propagating inputs across CARGO-INPUTS edges gnu: crates-io: Use propagated-inputs and propagated-native-inputs. build-system/cargo: Add a propagated-phases argument. gnu: crates-io: Use propagated-phases. gnu/packages/crates-io.scm | 157 +++++++++++------------------------- gnu/packages/rust-apps.scm | 9 +-- gnu/packages/sequoia.scm | 3 +- guix/build-system/cargo.scm | 92 +++++++++++++++------ 4 files changed, 120 insertions(+), 141 deletions(-)