From: Fabian Groffen Date: Tue, 12 Jun 2018 16:23:46 +0000 (+0200) Subject: sys-devel/gcc-apple: don't switch to this compiler, it's old X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=fdffef785dfdf66abe64c3d6c5986fc41e6869db;p=gentoo.git sys-devel/gcc-apple: don't switch to this compiler, it's old Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- 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() {