projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adc405d
)
toolchain.eclass: add 'einfo' when last cross-compiler is removed
author
Sergei Trofimovich
<slyfox@gentoo.org>
Fri, 12 Jul 2019 22:07:06 +0000
(23:07 +0100)
committer
Sergei Trofimovich
<slyfox@gentoo.org>
Fri, 12 Jul 2019 23:37:32 +0000
(
00:37
+0100)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass
patch
|
blob
|
history
diff --git
a/eclass/toolchain.eclass
b/eclass/toolchain.eclass
index 3d997fb6581941a6f33edf64c73d281192988246..9caed25f55a757014f28cff42bbef6ea5a87ab54 100644
(file)
--- 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}