commit:     8d90f4f76448e89de32e6cd4338e953d673c4f72
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  3 04:01:39 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct  3 04:01:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d90f4f7

toolchain.eclass: fix seq params

I didn't notice as I tested on a machine with ${SLOT} available.

Fixes: c9f79ed713758a95abea32d9c41f4f2a49f999b2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 3cacc2da31b7..a2eba0a9297e 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -848,7 +848,7 @@ toolchain_setup_ada() {
        # 1) Match the version being built;
        # 2) Iterate downwards from the version being built;
        # 3) Iterate upwards from the version being built to the greatest 
version installed.
-       for ada_candidate in ${SLOT} $(seq -1 $((${SLOT} - 1)) 10) $(seq 
$((${SLOT} + 1)) ${latest_gcc}) ; do
+       for ada_candidate in ${SLOT} $(seq $((${SLOT} - 1)) -1 10) $(seq 
$((${SLOT} + 1)) ${latest_gcc}) ; do
                has_version -b "sys-devel/gcc:${ada_candidate}" || continue
 
                ebegin "Testing sys-devel/gcc:${ada_candidate} for Ada"
@@ -1010,7 +1010,7 @@ toolchain_setup_d() {
        # 1) Match the version being built;
        # 2) Iterate downwards from the version being built;
        # 3) Iterate upwards from the version being built to the greatest 
version installed.
-       for d_candidate in ${SLOT} $(seq -1 $((${SLOT} - 1)) 10) $(seq 
$((${SLOT} + 1)) ${latest_gcc}) ; do
+       for d_candidate in ${SLOT} $(seq $((${SLOT} - 1)) -1 10) $(seq 
$((${SLOT} + 1)) ${latest_gcc}) ; do
                has_version -b "sys-devel/gcc:${d_candidate}" || continue
 
                ebegin "Testing sys-devel/gcc:${d_candidate} for D"

Reply via email to