toolchain.eclass: attempt to use gnat-gpl if the bootstrap GNAT is too new

Bug: https://bugs.gentoo.org/880825
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-09-29 12:27:39 +01:00
parent 677f969d3f
commit 6c118fbbef

View File

@@ -891,7 +891,7 @@ toolchain_src_configure() {
# As a last resort, use dev-lang/gnat-gpl.
# TODO: Make gnat-gpl coinstallable with gcc:10.
if [[ -z ${ada_bootstrap} ]] ; then
if ver_test ${ada_bootstrap} -gt ${PV} || [[ -z ${ada_bootstrap} ]] ; then
ebegin "Testing dev-lang/gnat-gpl for Ada"
if has_version -b "dev-lang/gnat-gpl" ; then
ada_bootstrap=10