From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Sv5/LXIW9V5gfQAA0tVLHw (envelope-from ) for ; Thu, 25 Jun 2020 21:26:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UPn7KHIW9V6NZgAA1q6Kng (envelope-from ) for ; Thu, 25 Jun 2020 21:26:10 +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 3C9A4940225 for ; Thu, 25 Jun 2020 21:26:10 +0000 (UTC) Received: from localhost ([::1]:43886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joZNn-0002Bd-NJ for larch@yhetil.org; Thu, 25 Jun 2020 17:26:07 -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?Q?K=C4=85dzio=C5=82ka?= 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?Q?K=C4=85dzio=C5=82ka?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-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: -0.01 X-TUID: Gp92ZfOgINXt 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(-) -- 2.26.2