Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: cluster@g.o, robbat2@g.o, toolchain@g.o, suse@g.o, llvm@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 11/12] toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm
Date: Thu, 17 Aug 2017 08:42:41
Message-Id: 20170817083641.3507-12-mgorny@gentoo.org
In Reply to: [gentoo-dev] [RFC] [PATCH] dev-util/shadowman: Unified tool to update ccache/distcc/icecc shadow dir by "Michał Górny"
1 ---
2 eclass/toolchain.eclass | 7 +++++++
3 1 file changed, 7 insertions(+)
4
5 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
6 index ae2db7f0a442..51b37c54ccbd 100644
7 --- a/eclass/toolchain.eclass
8 +++ b/eclass/toolchain.eclass
9 @@ -2067,6 +2067,9 @@ gcc_slot_java() {
10
11 toolchain_pkg_postinst() {
12 do_gcc_config
13 + if [[ -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
14 + eselect compiler-shadow update all
15 + fi
16
17 if ! is_crosscompile ; then
18 echo
19 @@ -2105,6 +2108,10 @@ toolchain_pkg_postinst() {
20 }
21
22 toolchain_pkg_postrm() {
23 + if [[ -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
24 + eselect compiler-shadow clean all
25 + fi
26 +
27 # to make our lives easier (and saner), we do the fix_libtool stuff here.
28 # rather than checking SLOT's and trying in upgrade paths, we just see if
29 # the common libstdc++.la exists in the ${LIBPATH} of the gcc that we are
30 --
31 2.14.1