diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-08-10 23:18:22 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-08-26 15:36:56 +0200 |
commit | c4cd0691bd4fdef1c7eca9dc27f4dffb9f43f593 (patch) | |
tree | dee6126e2b31494dce702a72b93cdcdcaaaffe7e /eclass | |
parent | sys-devel/icecream: Use dev-util/shadowman for postinst/prerm (diff) | |
download | gentoo-c4cd0691bd4fdef1c7eca9dc27f4dffb9f43f593.tar.gz gentoo-c4cd0691bd4fdef1c7eca9dc27f4dffb9f43f593.tar.bz2 gentoo-c4cd0691bd4fdef1c7eca9dc27f4dffb9f43f593.zip |
toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index ae2db7f0a442..dad4ae3d1972 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 |