1 |
commit: fdffef785dfdf66abe64c3d6c5986fc41e6869db |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 12 16:23:46 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 12 16:23:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdffef78 |
7 |
|
8 |
sys-devel/gcc-apple: don't switch to this compiler, it's old |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
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 |
16 |
index fca27fefaa4..1b20668b569 100644 |
17 |
--- a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild |
18 |
+++ b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild |
19 |
@@ -352,8 +352,8 @@ src_install() { |
20 |
} |
21 |
|
22 |
pkg_postinst() { |
23 |
- # beware this also switches when it's on another branch version of GCC |
24 |
- gcc-config ${CTARGET}-${GCC_VERS} |
25 |
+ # only activate this compiler if nothing else is activated |
26 |
+ gcc-config -c >& /dev/null || gcc-config ${CTARGET}-${GCC_VERS} |
27 |
} |
28 |
|
29 |
pkg_postrm() { |