diff options
author | Davide Pesavento <pesa@gentoo.org> | 2016-07-07 23:33:16 +0200 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2016-07-07 23:33:16 +0200 |
commit | 2048cd28302473534cd56454c562bff31daefa74 (patch) | |
tree | b918fd4af72c97e528e29e0545397c4270641f3f /eclass/qt5-build.eclass | |
parent | sys-fs/redirfs: Remove last rited package (diff) | |
download | gentoo-2048cd28302473534cd56454c562bff31daefa74.tar.gz gentoo-2048cd28302473534cd56454c562bff31daefa74.tar.bz2 gentoo-2048cd28302473534cd56454c562bff31daefa74.zip |
qt5-build.eclass: don't run gcc version checks if compiler is not gcc
Gentoo-Bug: 587582
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index eeea33ca4642..012918fef440 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -141,19 +141,21 @@ EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install sr # @DESCRIPTION: # Unpacks the sources. qt5-build_src_unpack() { - local min_gcc4_minor_version=5 - if [[ ${QT5_MINOR_VERSION} -ge 7 || ${PN} == qtwebengine ]]; then - min_gcc4_minor_version=7 - fi - if [[ $(gcc-major-version) -lt 4 ]] || \ - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt ${min_gcc4_minor_version} ]]; then - if [[ ${QT5_MINOR_VERSION} -ge 6 ]]; then - eerror "GCC version 4.${min_gcc4_minor_version} or later is required to build this package" - die "GCC 4.${min_gcc4_minor_version} or later required" - else - ewarn - ewarn "Using a GCC version lower than 4.${min_gcc4_minor_version} is not supported" - ewarn + if tc-is-gcc; then + local min_gcc4_minor_version=5 + if [[ ${QT5_MINOR_VERSION} -ge 7 || ${PN} == qtwebengine ]]; then + min_gcc4_minor_version=7 + fi + if [[ $(gcc-major-version) -lt 4 ]] || \ + [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt ${min_gcc4_minor_version} ]]; then + if [[ ${QT5_MINOR_VERSION} -ge 6 ]]; then + eerror "GCC version 4.${min_gcc4_minor_version} or later is required to build this package" + die "GCC 4.${min_gcc4_minor_version} or later required" + else + ewarn + ewarn "Using a GCC version lower than 4.${min_gcc4_minor_version} is not supported" + ewarn + fi fi fi |