diff options
author | Sam James <sam@gentoo.org> | 2024-10-03 05:01:39 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-10-03 05:01:39 +0100 |
commit | 8d90f4f76448e89de32e6cd4338e953d673c4f72 (patch) | |
tree | a01e8112f404ce2da7e48902e3f7cfd561814b81 /eclass/toolchain.eclass | |
parent | dev-qt/qtdeclarative: guard against incomplete installs (qt6) (diff) | |
download | gentoo-8d90f4f76448e89de32e6cd4338e953d673c4f72.tar.gz gentoo-8d90f4f76448e89de32e6cd4338e953d673c4f72.tar.bz2 gentoo-8d90f4f76448e89de32e6cd4338e953d673c4f72.zip |
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@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 4 |
1 files 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" |