summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorKacper Słomiński <kacper.slominski72@gmail.com>2025-11-11 00:13:46 +0100
committerSam James <sam@gentoo.org>2025-11-10 23:45:04 +0000
commit998c2e817348b57e87d1ba9f07d44818ef9c3da4 (patch)
treecae78befcf6c4c28bf7d336ef7bd6e7303e00ed4 /eclass
parent7572bd583ab204051730b036b6998fc45a5bf43b (diff)
downloadgentoo-998c2e817348b57e87d1ba9f07d44818ef9c3da4.tar.gz
gentoo-998c2e817348b57e87d1ba9f07d44818ef9c3da4.tar.bz2
gentoo-998c2e817348b57e87d1ba9f07d44818ef9c3da4.zip
guile-utils.eclass: make generated GUILE_USEDEP entries conditional
If the user specifies only GUILE_TARGETS="3-0", previously, we would incorrectly try to pull in dependencies with USE flag dependencies like [guile_targets_2-2,guile_targets_3-0], which lead to an error about missing USE flags in the dependencies. Signed-off-by: Kacper Słomiński <kacper.slominski72@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44587 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/guile-utils.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/guile-utils.eclass b/eclass/guile-utils.eclass
index d066013486ed..88f69032a083 100644
--- a/eclass/guile-utils.eclass
+++ b/eclass/guile-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: guile-utils.eclass
@@ -146,7 +146,7 @@ guile_generate_depstrings() {
for ver in "${GUILE_COMPAT[@]}"; do
[[ -n ${GUILE_USEDEP} ]] && GUILE_USEDEP+=","
uses+=("${prefix}_${ver}")
- GUILE_USEDEP+="${prefix}_${ver}"
+ GUILE_USEDEP+="${prefix}_${ver}?"
done
GUILE_REQUIRED_USE="${depop} ( ${uses[@]} )"
IUSE="${uses[@]}"