summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-08-31 14:18:39 +0100
committerSam James <sam@gentoo.org>2024-09-08 19:21:29 +0100
commit08cb1492fe62e8f15aa0d546db59ba27ec7a5ab3 (patch)
treea8ac7386cd8f1227601c70a987095d4feeb48a5a /eclass
parentdistutils-r1.eclass: Allow .jar files in sitedir (diff)
downloadgentoo-08cb1492fe62e8f15aa0d546db59ba27ec7a5ab3.tar.gz
gentoo-08cb1492fe62e8f15aa0d546db59ba27ec7a5ab3.tar.bz2
gentoo-08cb1492fe62e8f15aa0d546db59ba27ec7a5ab3.zip
distutils-r1.eclass: Don't run cargo_env unless cargo_gen_config has run
Normally, failing to run cargo_gen_config results in an error, but that is unhelpful for ebuilds with optional Cargo support. Closes: https://bugs.gentoo.org/938764 Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/38041 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 39705c5c3c84..5a6ebdcede8a 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1253,7 +1253,9 @@ distutils_pep517_install() {
fi
local cmd=() config_settings=
- has cargo ${INHERITED} && cmd+=( cargo_env )
+ if has cargo ${INHERITED} && [[ ${_CARGO_GEN_CONFIG_HAS_RUN} ]]; then
+ cmd+=( cargo_env )
+ fi
case ${DISTUTILS_USE_PEP517} in
maturin)