From ee406c5f1d4466188ee7a81a3ed8fe1c5573cad9 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 2 Mar 2026 07:27:49 +0000 Subject: [PATCH] eclass/toolchain-autoconf: Sync with Gentoo It's from Gentoo commit f91fe1660806f6ac0e103fa3eb339c6d44943dda. Signed-off-by: Flatcar Buildbot --- .../portage-stable/eclass/toolchain-autoconf.eclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/toolchain-autoconf.eclass b/sdk_container/src/third_party/portage-stable/eclass/toolchain-autoconf.eclass index 330ec45dd7..f4eda613d2 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/toolchain-autoconf.eclass +++ b/sdk_container/src/third_party/portage-stable/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}"