commit:     1b4b03f4084fc08475ccf1bdc3734e0ff9ed37df
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 12 22:07:06 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 23:37:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b4b03f4

toolchain.eclass: add 'einfo' when last cross-compiler is removed

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/toolchain.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 3d997fb6581..9caed25f55a 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2253,6 +2253,7 @@ toolchain_pkg_postrm() {
        # clean up the cruft left behind by cross-compilers
        if is_crosscompile ; then
                if [[ -z $(ls "${EROOT%/}"/etc/env.d/gcc/${CTARGET}* 
2>/dev/null) ]] ; then
+                       einfo "Removing last cross-compiler instance. Deleting 
dangling symlinks."
                        rm -f "${EROOT%/}"/etc/env.d/gcc/config-${CTARGET}
                        rm -f "${EROOT%/}"/etc/env.d/??gcc-${CTARGET}
                        rm -f 
"${EROOT%/}"/usr/bin/${CTARGET}-{gcc,{g,c}++}{,32,64}

Reply via email to