kde4-base.eclass: don't perform gcc version check with clang
authorMichael Palimaka <kensington@gentoo.org>
Thu, 7 Jul 2016 13:42:22 +0000 (23:42 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 7 Jul 2016 13:43:22 +0000 (23:43 +1000)
Gentoo-bug: 587998

eclass/kde4-base.eclass

index 6f71dea72153fce9080c1215745513542bb7a455..5c36b2918f1057ead13c25385c347d8d13e0cbdf 100644 (file)
@@ -616,7 +616,7 @@ kde4-base_pkg_setup() {
        # In theory should be in pkg_pretend but we check it only for kdelibs there
        # and for others we do just quick scan in pkg_setup because pkg_pretend
        # executions consume quite some time (ie. when merging 300 packages at once will cause 300 checks)
-       if [[ ${MERGE_TYPE} != binary ]]; then
+       if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc; then
                [[ $(gcc-major-version) -lt 4 ]] || \
                                ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 6 ]] ) \
                        && die "Sorry, but gcc-4.6 and earlier wont work for some KDE packages."