commit:     fc3a823fced5f3ad4feae0169f719b17069b4fac
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 20 04:01:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 20 04:01:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc3a823f

toolchain.eclass: avoid translation collisions for accel-*

This is only observable if LINGUAS is set to the right values, which is
why I didn't see it.

I only have:
```
$ find /usr/share/gcc-data/nvptx-none
/usr/share/gcc-data/nvptx-none
/usr/share/gcc-data/nvptx-none/16
/usr/share/gcc-data/nvptx-none/16/python
/usr/share/gcc-data/nvptx-none/16/python/libstdcxx
/usr/share/gcc-data/nvptx-none/16/python/libstdcxx/__init__.py
/usr/share/gcc-data/nvptx-none/16/python/libstdcxx/v6
/usr/share/gcc-data/nvptx-none/16/python/libstdcxx/v6/xmethods.py
/usr/share/gcc-data/nvptx-none/16/python/libstdcxx/v6/__init__.py
/usr/share/gcc-data/nvptx-none/16/python/libstdcxx/v6/printers.py
```

Bug: https://bugs.gentoo.org/967286
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index aaf24c50426b..cc8d7a5cd291 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -288,7 +288,7 @@ else
        
BINPATH=${TOOLCHAIN_BINPATH:-${PREFIX}/${CTARGET#accel-}/gcc-bin/${GCC_CONFIG_VER}}
 fi
 
-DATAPATH=${TOOLCHAIN_DATAPATH:-${PREFIX}/share/gcc-data/${CTARGET#accel-}/${GCC_CONFIG_VER}}
+DATAPATH=${TOOLCHAIN_DATAPATH:-${PREFIX}/share/gcc-data/${CTARGET}/${GCC_CONFIG_VER}}
 
 # Don't install in /usr/include/g++-v3/, but instead to gcc's internal 
directory.
 # We will handle /usr/include/g++-v3/ with gcc-config ...

Reply via email to