summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2016-03-13 02:14:52 +0100
committerDavide Pesavento <pesa@gentoo.org>2016-04-13 01:18:19 +0200
commit4c6377e845cc7b0150a664e075d83b0fa0e0d749 (patch)
tree7d9a95840e5ca626810ca6a03ba054a4a51c8c7e /eclass/qt5-build.eclass
parentqt5-build.eclass: stop mentioning bug 307861 to users (diff)
downloadgentoo-4c6377e845cc7b0150a664e075d83b0fa0e0d749.tar.gz
gentoo-4c6377e845cc7b0150a664e075d83b0fa0e0d749.tar.bz2
gentoo-4c6377e845cc7b0150a664e075d83b0fa0e0d749.zip
qt5-build.eclass: simplify gcc version check, add eerror
(cherry picked from proj/qt commit e2c27b48a98cb8a6789ff9de5cb1b8637ab45a4e)
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r--eclass/qt5-build.eclass11
1 files changed, 5 insertions, 6 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 927ca1516b1d..11aeb8c249e8 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -131,20 +131,19 @@ EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install sr
# @DESCRIPTION:
# Unpacks the sources.
qt5-build_src_unpack() {
- local gcc_version_check_fatal=false
local min_gcc4_minor_version=5
- if [[ ${QT5_MINOR_VERSION} -ge 6 ]]; then
- gcc_version_check_fatal=true
- fi
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 ${gcc_version_check_fatal}; then
- die "GCC version 4.${min_gcc4_minor_version} or later is required to build this package"
+ 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