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 v2 11/12] toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm
Date: Sun, 20 Aug 2017 10:32:12
Message-Id: 20170820102659.19050-11-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH v2 01/12] dev-util/shadowman: New package by "Michał Górny"
1 ---
2 eclass/toolchain.eclass | 7 +++++++
3 1 file changed, 7 insertions(+)
4
5 changes in v2: do not apply magic when ROOT!=/
6
7 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
8 index ae2db7f0a442..dad4ae3d1972 100644
9 --- a/eclass/toolchain.eclass
10 +++ b/eclass/toolchain.eclass
11 @@ -2067,6 +2067,9 @@ gcc_slot_java() {
12
13 toolchain_pkg_postinst() {
14 do_gcc_config
15 + if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
16 + eselect compiler-shadow update all
17 + fi
18
19 if ! is_crosscompile ; then
20 echo
21 @@ -2105,6 +2108,10 @@ toolchain_pkg_postinst() {
22 }
23
24 toolchain_pkg_postrm() {
25 + if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
26 + eselect compiler-shadow clean all
27 + fi
28 +
29 # to make our lives easier (and saner), we do the fix_libtool stuff here.
30 # rather than checking SLOT's and trying in upgrade paths, we just see if
31 # the common libstdc++.la exists in the ${LIBPATH} of the gcc that we are
32 --
33 2.14.1