From fdffef785dfdf66abe64c3d6c5986fc41e6869db Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 12 Jun 2018 18:23:46 +0200 Subject: sys-devel/gcc-apple: don't switch to this compiler, it's old Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild index fca27fefaa43..1b20668b569d 100644 --- a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild +++ b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild @@ -352,8 +352,8 @@ src_install() { } pkg_postinst() { - # beware this also switches when it's on another branch version of GCC - gcc-config ${CTARGET}-${GCC_VERS} + # only activate this compiler if nothing else is activated + gcc-config -c >& /dev/null || gcc-config ${CTARGET}-${GCC_VERS} } pkg_postrm() { -- cgit v1.2.3-65-gdbad