commit: 8ed3b65dd6316568c74cad5485936abd7f4f36a4
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 23 01:31:31 2016 +0000
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Sat Jan 23 01:31:31 2016 +0000
URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=8ed3b65d
qt5-build.eclass: update gcc version check for 5.7 and qtwebengine
eclass/qt5-build.eclass | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 600f2f9..a1ad3fb 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -133,9 +133,14 @@ EXPORT_FUNCTIONS src_unpack src_prepare src_configure
src_compile src_install sr
# @DESCRIPTION:
# Unpacks the sources.
qt5-build_src_unpack() {
- if [[ $(gcc-major-version) -lt 4 ]] || [[ $(gcc-major-version) -eq 4 &&
$(gcc-minor-version) -lt 5 ]]; 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
ewarn
- ewarn "Using a GCC version lower than 4.5 is not supported."
+ ewarn "Using a GCC version lower than
4.${min_gcc4_minor_version} is not supported."
ewarn
fi