From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0557B1396D0 for ; Thu, 17 Aug 2017 08:42:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88A7C1FC102; Thu, 17 Aug 2017 08:37:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47B591FC0FE for ; Thu, 17 Aug 2017 08:37:43 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id EE9903418DE; Thu, 17 Aug 2017 08:37:40 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: cluster@gentoo.org, robbat2@gentoo.org, toolchain@gentoo.org, suse@gentoo.org, llvm@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 11/12] toolchain.eclass: Update masquerades via dev-util/shadowman postinst/rm Date: Thu, 17 Aug 2017 10:36:40 +0200 Message-Id: <20170817083641.3507-12-mgorny@gentoo.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170817083641.3507-1-mgorny@gentoo.org> References: <20170817083641.3507-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 43d0d00b-1cd0-4ce2-b6ff-8581cfe41fbb X-Archives-Hash: d929b8a0f1cc3fc0c16a49cbf6b01a4b --- eclass/toolchain.eclass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index ae2db7f0a442..51b37c54ccbd 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2067,6 +2067,9 @@ gcc_slot_java() { toolchain_pkg_postinst() { do_gcc_config + if [[ -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 [[ -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 -- 2.14.1