commit:     42a35a5849bcbd696d1f72d697d6d9a1061a26fa
Author:     Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Mon Nov 17 19:34:29 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 11:06:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42a35a58

toolchain.eclass: Fix D bootstrap circular dependency error

Closes: https://bugs.gentoo.org/950310
Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 493712af37f7..83b91f18a7d0 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -455,7 +455,7 @@ if tc_has_feature d && tc_version_is_at_least 12.0 ; then
        # D in 12+ is self-hosting and needs D to bootstrap.
        # TODO: package some binary we can use, like for Ada
        # bug #840182
-       BDEPEND+=" d? ( <sys-devel/gcc-$((${SLOT} + 1))[d(-)] )"
+       BDEPEND+=" d? ( || ( <sys-devel/gcc-$((${SLOT} + 1))[d(-)] 
sys-devel/gcc:11 ) )"
 fi
 
 if tc_has_feature rust && tc_version_is_at_least 14.1 ; then

Reply via email to