commit: 57193a46a7ee2a7b8dea5243f1aea5697735aa96
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 3 01:10:09 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 3 01:10:09 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57193a46
toolchain.eclass: fix CATEGORY check for accel cross
These weren't doing anything when CATEGORY was accel- (missing cross- prefix)
but it shows that these changes weren't needed at all (and might even be
something we can totally clean up). But undo it for now.
Fixes: 5ae1d39ab405205254c2a0b50a82c60ada051f7e
Reported-by: Matija Skala <mskala <AT> gmx.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 91b5c9b2175a..0c62e34a5c35 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: toolchain.eclass
@@ -1504,7 +1504,7 @@ toolchain_src_configure() {
# requires libc
confgcc_no_libc+=( --disable-libatomic )
- if ! has_version ${CATEGORY#accel-}/${needed_libc} ;
then
+ if ! has_version ${CATEGORY}/${needed_libc} ; then
confgcc+=(
"${confgcc_no_libc[@]}"
--disable-threads
@@ -1519,7 +1519,7 @@ toolchain_src_configure() {
# The option appeared in gcc-4.2.
confgcc+=( --with-long-double-128 )
fi
- elif has_version
"${CATEGORY#accel-}/${needed_libc}[headers-only(-)]" ; then
+ elif has_version
"${CATEGORY}/${needed_libc}[headers-only(-)]" ; then
confgcc+=(
"${confgcc_no_libc[@]}"
--with-sysroot="${PREFIX}"/${CTARGET#accel-}