eclass/toolchain-autoconf: Sync with Gentoo

It's from Gentoo commit f91fe1660806f6ac0e103fa3eb339c6d44943dda.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-02 07:27:49 +00:00 committed by Krzesimir Nowak
parent 14c28f426c
commit ee406c5f1d

View File

@ -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}"