toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm
authorMichał Górny <mgorny@gentoo.org>
Thu, 10 Aug 2017 21:18:22 +0000 (23:18 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 26 Aug 2017 13:36:56 +0000 (15:36 +0200)
eclass/toolchain.eclass

index ae2db7f0a44294780ea4685e656d6af8486fd4d9..dad4ae3d19722e072bce94bf75f42ed1bf2af2dc 100644 (file)
@@ -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