From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 25 17:25:48 2020 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: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= To: guix-patches@gnu.org Subject: [PATCH 0/4] build-system/cargo: Propagations across the crate closure. 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-Debbugs-Envelope-To: submit Cc: efraim@flashner.co.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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