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@gentoo.org>
This commit is contained in:
Sam James 2025-12-20 04:01:08 +00:00
parent fe1acaa666
commit fc3a823fce
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -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 ...