From 8c195224ab8d8a499d120cb0b44371d7d7c0511c Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 1 Oct 2024 11:26:00 -0400 Subject: toolchain.eclass: fix typo that prevented configuring with USE=ada We need a bootstrap (version) and a bootstrap_type (value irrelevant for now except to flag whether it is ada-bootstrap). Due to a typo, we set the former first to the detected slot and then immediately to the value "gcc", which made no sense since "gcc" isn't a valid SLOT version of gcc. Hence we tried to run ${triplet}-gcc-gcc instead of running ${triplet}-gcc-${SLOT}. Only reproducible when using gnat-gpl itself as the gcc edition. Signed-off-by: Eli Schwartz Reviewed-by: Sam James --- eclass/toolchain.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index e253cffa777b..3547549b1a12 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -884,7 +884,7 @@ toolchain_setup_ada() { ebegin "Testing fallback dev-lang/gnat-gpl for Ada" if has_version -b "dev-lang/gnat-gpl" ; then ada_bootstrap=10 - ada_bootstrap=gcc + ada_bootstrap_type=gcc eend 0 else eend 1 -- cgit v1.2.3-65-gdbad