commit: 77810cba2a601d0c0870589850b9864ec59d9fe8
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 17 17:33:53 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 17 17:33:53 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77810cba
toolchain.eclass: allow existing slot in has_version check for ada-bootstrap too
Followup to 14e674bb7a8cb8aa50498582e392d0ecd21f2d4a.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b74984fc8ea8..8659a78be17e 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -983,7 +983,9 @@ toolchain_setup_ada() {
# As a penultimate resort, try dev-lang/ada-bootstrap.
if ver_test ${ada_bootstrap} -gt ${PV} || [[ -z ${ada_bootstrap} ]] ;
then
ebegin "Testing fallback dev-lang/ada-bootstrap for Ada"
- if has_version -b "<dev-lang/ada-bootstrap-${SLOT}" ; then
+ # XXX: This can be cleaned up like BDEPEND for
tc_use_major_version_only
+ # once we only support such versions.
+ if has_version -b "=dev-lang/ada-bootstrap-${SLOT}*" ||
has_version -b "<dev-lang/ada-bootstrap-${SLOT}" ; then
# Workaround the old scheme
if has_version -b "=dev-lang/ada-bootstrap-0_p2021*" ;
then
ada_bootstrap=10