regardless of sourcing profiles, relogging in, etc. on multiple machines I found the following behaviour: [hathor:~] % gcc -dumpversion 5.3.0 [hathor:~] % echo $PATH /gentoo/prefix32/usr/bin:/gentoo/prefix32/bin:/gentoo/prefix32/opt/bin:/gentoo/prefix32/usr/sbin:/gentoo/prefix32/sbin:/gentoo/prefix32/usr/sparc-sun-solaris2.10/gcc-bin/5.3.0:/usr/bin:/bin [hathor:~] % gcc-config -l [1] sparc-sun-solaris2.10-5.3.0 [2] sparc-sun-solaris2.10-6.4.0 * I need to figure out how PATH is populated, it seems not to be done through env.d any more.
it seems as if gcc-config was changed not to run env-update on prefix, which is wrong of course.
https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=cfbb9e94ca23c360d5801946e39da29c7d422dfc seems to suggest it was myself.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=748d20380aa1b27149dc1b80c7eaf15fde7c6aba commit 748d20380aa1b27149dc1b80c7eaf15fde7c6aba Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2017-12-15 08:30:17 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2017-12-15 08:30:17 +0000 gcc-config: ensure we run env-update for prefix too The intention of commit cfbb9e94ca23c360d5801946e39da29c7d422dfc was to disable running ldconfig and updating ld.so.conf for prefix, but the implementation was too greedy and also disabled env-update, which we need to activate a compiler, see bug #641096. Bug: https://bugs.gentoo.org/641096 gcc-config | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)}
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=21144b9564499c9a5214402d50c5fe5eea464479 commit 21144b9564499c9a5214402d50c5fe5eea464479 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2017-12-15 08:47:13 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2017-12-15 08:47:13 +0000 sys-devel/gcc-config: add patch to re-enable env-update for prefix, bug #641096 Closes: https://bugs.gentoo.org/641096 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6 ...config-1.9.0-ensure-env-update-for-prefix.patch | 46 ++++++++++++++++++++++ ...-1.9.0.ebuild => gcc-config-1.9.0-r00.1.ebuild} | 1 + 2 files changed, 47 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f29fde782b79bc0bf7a8603a86e238412dc2ddfe commit f29fde782b79bc0bf7a8603a86e238412dc2ddfe Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2017-12-17 00:23:49 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2017-12-17 00:24:00 +0000 sys-devel/gcc-config: Version bump; fixes prefix issues (bug 641096) and adds support for LTO linker plugins (bug 630066) Closes: https://bugs.gentoo.org/630066 Bug: https://bugs.gentoo.org/641096 Package-Manager: Portage-2.3.19, Repoman-2.3.6 sys-devel/gcc-config/Manifest | 1 + sys-devel/gcc-config/gcc-config-1.9.1.ebuild | 54 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+)}