Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 07 Jul 2016 13:53:45
Message-Id: 1467899002.0788b3785c3ed148a430329152b18073c6d1f23f.kensington@gentoo
1 commit: 0788b3785c3ed148a430329152b18073c6d1f23f
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 6 20:50:11 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 7 13:43:22 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0788b378
7
8 kde5-functions.eclass: don't perform gcc version check with clang
9
10 This used to "work" because gcc-version relied on gcc-config, even if GCC was
11 not the active compiler. gcc-version has since been fixed to always use CC
12 instead.
13
14 Gentoo-bug: 587998
15
16 eclass/kde5-functions.eclass | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
20 index ad3034a..a03c2ad 100644
21 --- a/eclass/kde5-functions.eclass
22 +++ b/eclass/kde5-functions.eclass
23 @@ -76,7 +76,7 @@ export KDE_BUILD_TYPE
24 # @DESCRIPTION:
25 # Determine if the current GCC version is acceptable, otherwise die.
26 _check_gcc_version() {
27 - if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]]; then
28 + if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]] && tc-is-gcc; then
29
30 local version=$(gcc-version)
31 local major=${version%.*}