From patchwork Tue Mar 18 14:26:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 40332 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 9E04927BBEA; Tue, 18 Mar 2025 14:30:05 +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 6EE6E27BBE2 for ; Tue, 18 Mar 2025 14:30:05 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tuXwl-0005Vl-CX; Tue, 18 Mar 2025 10:29:35 -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 1tuXwI-0005Eg-To for guix-patches@gnu.org; Tue, 18 Mar 2025 10:29:14 -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 1tuXwI-0001SE-ER for guix-patches@gnu.org; Tue, 18 Mar 2025 10:29:06 -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=/rzdlzWItiPgm9mMM9D4fKw9AdkNnt3Yvo2naRK6/Yg=; b=Oh1IlajY0CQCb5dTFDt5Q9vZHdpfbOcOE4rZLD048z0mqWOw9cdaWVJ9KD1jdwLKZTUctBXUHo1lxxhoCruUXOvhgtllQ44p8nR4wBrkpfOHM8+ZaChkM+EdqU4UlJSHwIZMnoSMfEyw8D2znrauL1Xo+wWa6imCN1EAtpduWtYZgA11GBa1zmmjfmbulTwjqwIseJldZtcy7UKabHyeQ2ICI0hJW3YiLtHwG/PC/JlVtLNwWlAkG/jpnoaTF3rvKca+ymC7wEbhdTEOAE+KtQWGKvo92qP8aWG5KdzGbNqXifwQqxvxBNhUKVtgEyvXpyG9k1fsSdhwuDneACovxQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tuXwI-0004hw-4S; Tue, 18 Mar 2025 10:29:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77093] [PATCH rust-team v2 06/17] build/cargo: Don't try to unpack sanity-check.py. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: divya@subvertising.org, efraim@flashner.co.il, steve@futurile.net, guix-patches@gnu.org Resent-Date: Tue, 18 Mar 2025 14:29:06 +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: Efraim Flashner , Divya Ranjan Pattanaik , Efraim Flashner , Steve George X-Debbugs-Original-Xcc: Divya Ranjan Pattanaik , Efraim Flashner , Steve George Received: via spool by 77093-submit@debbugs.gnu.org id=B77093.174230810617723 (code B ref 77093); Tue, 18 Mar 2025 14:29:06 +0000 Received: (at 77093) by debbugs.gnu.org; 18 Mar 2025 14:28:26 +0000 Received: from localhost ([127.0.0.1]:41692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tuXvc-0004bO-5C for submit@debbugs.gnu.org; Tue, 18 Mar 2025 10:28:25 -0400 Received: from mx.boiledscript.com ([88.99.243.112]:50906) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tuXuu-0004TE-GQ for 77093@debbugs.gnu.org; Tue, 18 Mar 2025 10:27:41 -0400 From: Hilton Chain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1742308059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/rzdlzWItiPgm9mMM9D4fKw9AdkNnt3Yvo2naRK6/Yg=; b=Qzyq0uWL7RXZO8jEBhfhYwUmTk1H5uZjyK+6DvE9UuUG3oYKbz9GpP5+sgRcIo6jcgxf42 lEP+Au0t+f4ugXYxIMD4Cdi6g6/gQ2KyL+lMICIpnk5tGEzZk1Qa++jX3vj4JCpva6B+qv Z0tFI0jZoi9i/9VMZoUOYau882Mpw0PWkQO47zsdQX7SIYTjutY8cdEwcwz0pNDp4nKVmn 5nH06ogWUA2bz8mZE7tRsHjulwbH5Np1+ZTc5OoRtrdK/4Dc+yckiHriro9icYRrRXkKM4 Rv5TI05lTL5LNfXsl5DAzVnnL9vi0jNABZObmlU7LmatAj5unyt85s3yz+XVFw== Date: Tue, 18 Mar 2025 22:26:49 +0800 Message-ID: <61a9a8ca7dce12d0a05dc060ea891c5443648bcc.1742306960.git.hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 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 From: Efraim Flashner * guix/build/cargo-build-system.scm (crate-src?): Also don't try to check python scripts for Cargo.toml. Change-Id: I001a89b83d2e472706b1263007be45d1153c140f --- guix/build/cargo-build-system.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index 85a9698680..32a756ad99 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -64,6 +64,7 @@ (define (crate-src? path) "Check if PATH refers to a crate source, namely a gzipped tarball with a Cargo.toml file present at its root." (and (not (directory-exists? path)) ; not a tarball + (not (string-suffix? "py" path)) ; sanity-check.py ;; First we print out all file names within the tarball to see if it ;; looks like the source of a crate. However, the tarball will include ;; an extra path component which we would like to ignore (since we're