* [gentoo-dev] [PATCH] cargo.eclass: Allow CRATES to be unset
@ 2023-12-02 12:37 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2023-12-02 12:37 UTC (permalink / raw)
To: gentoo-dev; +Cc: Michał Górny
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.
Signed-off-by: Michał Górny <mgorny@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
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-02 12:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-02 12:37 [gentoo-dev] [PATCH] cargo.eclass: Allow CRATES to be unset Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox