From patchwork Sun Mar 23 07:23:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 40703 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 D7BAD27BBE2; Sun, 23 Mar 2025 07:26:43 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4EAE127BBEA for ; Sun, 23 Mar 2025 07:26:43 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1twFih-0008Vo-BI; Sun, 23 Mar 2025 03:26:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1twFie-0008Qw-2R for guix-patches@gnu.org; Sun, 23 Mar 2025 03:26:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1twFid-0007Pm-Pa for guix-patches@gnu.org; Sun, 23 Mar 2025 03:26:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=rOqXENQGtdo4LW3H43hqvXpLA4xlwXAqGFQMFIXQIr8=; b=FUIo0WNcWGsmVO9si6DoIkgfRRdHxYpSULfHCqCAxA5y1+hOjcsCJcxUgzIwl79XEDcQNFqTUppJdOaarpfCRvp13fX0pAVpt9I6Jav8jwO0bErW1JnbxOXpFp7RwC33ki968DMTiFneOYuR4RTI7yS5EgepyKupfjfLf7hrLbfv4DLQVTqJxxb5xwa9blE6OI6+sTBqQP5eDvICUncPayU92ESjk1psPSSb8RmjPG7li3yEcPlAD0ezJ344+rQFaLeouKRrxpbc02gZ9F+Z8T6JfSdL7CkNSSkMq77UHZEZtgY1gqu+W4iX4n2TzLIOjOLpyQjHvbzvC64zbWfDcQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1twFib-0003eG-TQ; Sun, 23 Mar 2025 03:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77093] [PATCH rust-team v3 01/17] build/cargo: Pass =?utf-8?b?4oCYLS1vZmZsaW5l4oCZ?= to cargo. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: hako@ultrarare.space, efraim@flashner.co.il, maxim.cournoyer@gmail.com, divya@subvertising.org, steve@futurile.net, guix-patches@gnu.org Resent-Date: Sun, 23 Mar 2025 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77093 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77093@debbugs.gnu.org Cc: Hilton Chain , Hilton Chain , Efraim Flashner , Maxim Cournoyer , Divya Ranjan Pattanaik , Steve George X-Debbugs-Original-Xcc: Hilton Chain , Efraim Flashner , Maxim Cournoyer , Divya Ranjan Pattanaik , Steve George Received: via spool by 77093-submit@debbugs.gnu.org id=B77093.174271471313440 (code B ref 77093); Sun, 23 Mar 2025 07:26:01 +0000 Received: (at 77093) by debbugs.gnu.org; 23 Mar 2025 07:25:13 +0000 Received: from localhost ([127.0.0.1]:47255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1twFho-0003Tr-Lx for submit@debbugs.gnu.org; Sun, 23 Mar 2025 03:25:13 -0400 Received: from mx.boiledscript.com ([88.99.243.112]:36306) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1twFhk-0003RU-GJ for 77093@debbugs.gnu.org; Sun, 23 Mar 2025 03:25:10 -0400 From: Hilton Chain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1742714706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rOqXENQGtdo4LW3H43hqvXpLA4xlwXAqGFQMFIXQIr8=; b=BJDq0GyayHXvKid3un79D2brusr79NzcSD+ltIxZ65xCNlt47U/9ZT09k5xlv8JVyC9qzO 8UxFQz5SZ/hxB4vGMQWeqpO5U1r91BcR66zK3bztnKXdy5peOuTnDZx7IYWlGgOcnZOQ51 5dWE0GKxZB5l4yIn65BoFUgynkUi6I0fj2fOUTCxbA0tRn8CqI65CwNq653D66tyImKHTo zhkPajNNdtUzN8ecvCAs+QciIMSLFa94htcUP17RZqId0o1FuYlrCciSvdUCGhAwEiwQPs DxL1aEO5HtCInIbtT6ONv6sRQ1UUeFYH09FAZh2wcMJuzscpbJeq03xe9zOU0g== Date: Sun, 23 Mar 2025 15:23:05 +0800 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-MS-Reactions: disallow 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This will make error messages more helpful. * guix/build/cargo-build-system.scm (build,check,package,install): Pass ‘--offline’ to cargo. Change-Id: Ic95f603b793319f99c9c1fbce43f773bfc8126c0 --- guix/build/cargo-build-system.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index 5ef6b23abd..41f54f42b7 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -246,7 +246,7 @@ (define* (build #:key "Build a given Cargo package." (or skip-build? (apply invoke - `("cargo" "build" + `("cargo" "build" "--offline" ,@(if parallel-build? (list "-j" (number->string (parallel-job-count))) (list "-j" "1")) @@ -264,7 +264,7 @@ (define* (check #:key "Run tests for a given Cargo package." (when tests? (apply invoke - `("cargo" "test" + `("cargo" "test" "--offline" ,@(if parallel-build? (list "-j" (number->string (parallel-job-count))) (list "-j" "1")) @@ -303,7 +303,7 @@ (define* (package #:key ;;error: invalid inclusion of reserved file name Cargo.toml.orig in package source (when (file-exists? "Cargo.toml.orig") (delete-file "Cargo.toml.orig")) - (apply invoke `("cargo" "package" ,@cargo-package-flags)) + (apply invoke `("cargo" "package" "--offline" ,@cargo-package-flags)) ;; Then unpack the crate, reset the timestamp of all contained files, and ;; repack them. This is necessary to ensure that they are reproducible. @@ -356,7 +356,8 @@ (define* (install #:key ;; otherwise cargo will raise an error. (or skip-build? (not (has-executable-target?)) - (invoke "cargo" "install" "--no-track" "--path" "." "--root" out + (invoke "cargo" "install" "--offline" "--no-track" + "--path" "." "--root" out "--features" (string-join features))) (when install-source?