commit:     fdffef785dfdf66abe64c3d6c5986fc41e6869db
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 12 16:23:46 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Jun 12 16:23:55 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdffef78

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 fca27fefaa4..1b20668b569 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() {

Reply via email to