commit: c4cd0691bd4fdef1c7eca9dc27f4dffb9f43f593
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 10 21:18:22 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 26 13:36:56 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4cd0691
toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm
eclass/toolchain.eclass | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ae2db7f0a44..dad4ae3d197 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2067,6 +2067,9 @@ gcc_slot_java() {
toolchain_pkg_postinst() {
do_gcc_config
+ if [[ ${ROOT} == / && -f
${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
+ eselect compiler-shadow update all
+ fi
if ! is_crosscompile ; then
echo
@@ -2105,6 +2108,10 @@ toolchain_pkg_postinst() {
}
toolchain_pkg_postrm() {
+ if [[ ${ROOT} == / && -f
${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
+ eselect compiler-shadow clean all
+ fi
+
# to make our lives easier (and saner), we do the fix_libtool stuff
here.
# rather than checking SLOT's and trying in upgrade paths, we just see
if
# the common libstdc++.la exists in the ${LIBPATH} of the gcc that we
are