From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E232F158013 for ; Sat, 9 Dec 2023 18:16:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D1DC2BC02C; Sat, 9 Dec 2023 18:16:42 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 174F92BC02C for ; Sat, 9 Dec 2023 18:16:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 61701335DE9 for ; Sat, 9 Dec 2023 18:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F050FB40 for ; Sat, 9 Dec 2023 18:16:39 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1702145776.e759d3dcff09e271735620b525333d091e085e2d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/cargo.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e759d3dcff09e271735620b525333d091e085e2d X-VCS-Branch: master Date: Sat, 9 Dec 2023 18:16:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f4f4e997-4416-4638-a611-1eb32144a6a3 X-Archives-Hash: 7a61c58314cc7e33cc42cd37cad1dd40 commit: e759d3dcff09e271735620b525333d091e085e2d Author: Michał Górny gentoo org> AuthorDate: Sat Dec 2 12:35:51 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Dec 9 18:16:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e759d3dc cargo.eclass: Allow CRATES to be unset Remove the assertion requiring CRATES to be set for non-live ebuilds. There are valid use cases for ebuilds without CRATES, and the eclass works just fine -- e.g. when the package is using GIT_CRATES only, or when crates are provided via a tarball. Closes: https://github.com/gentoo/gentoo/pull/34091 Signed-off-by: Michał Górny gentoo.org> eclass/cargo.eclass | 5 ----- 1 file changed, 5 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 70b6008d9cd8..1e1a6e3ddfe2 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -35,11 +35,6 @@ case ${EAPI} in # 1.52 may need setting RUSTC_BOOTSTRAP envvar for some crates # 1.53 added cargo update --offline, can be used to update vulnerable crates from pre-fetched registry without editing toml RUST_DEPEND=">=virtual/rust-1.53" - - if [[ -z ${CRATES} && "${PV}" != *9999* ]]; then - eerror "undefined CRATES variable in non-live EAPI=8 ebuild" - die "CRATES variable not defined" - fi ;; esac