commit: f91fe1660806f6ac0e103fa3eb339c6d44943dda
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 3 23:11:07 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 3 23:14:14 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f91fe166
toolchain-autoconf.eclass: use ${SLOT} for env filename
Prereleases for autoconf (and automake) now follow the usual GNU
convention of X.Y.90 (etc), so we need to adapt the env filename
logic to include SLOT rather than PV, otherwise 2.72.90 "mangles"
the same as 2.72.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain-autoconf.eclass | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/eclass/toolchain-autoconf.eclass b/eclass/toolchain-autoconf.eclass
index 330ec45dd7d1..f4eda613d272 100644
--- a/eclass/toolchain-autoconf.eclass
+++ b/eclass/toolchain-autoconf.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: toolchain-autoconf.eclass
@@ -102,8 +102,9 @@ toolchain-autoconf_src_install() {
else
rm -f dir || die
- local major="$(ver_cut 1)"
- local minor="$(ver_cut 2)"
+ local major="$(ver_cut 1 ${SLOT})"
+ local minor="$(ver_cut 2 ${SLOT})"
+
local idx="$((99999-(major*1000+minor)))"
newenvd - "${TC_AUTOCONF_ENVPREFIX}${PN}${idx}" <<-EOF
INFOPATH="${TC_AUTOCONF_INFOPATH}"