commit:     998c2e817348b57e87d1ba9f07d44818ef9c3da4
Author:     Kacper Słomiński <kacper.slominski72 <AT> gmail <DOT> com>
AuthorDate: Mon Nov 10 23:13:46 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 10 23:45:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=998c2e81

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 <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44587
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/guile-utils.eclass | 4 ++--
 1 file 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[@]}"

Reply via email to