summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Hoosier <matt.hoosier@garmin.com>2017-08-14 08:04:03 -0500
committerMatt Hoosier <matt.hoosier@garmin.com>2017-08-15 10:18:10 +0000
commita17ff281aa8d99f770b0a049cb798235005fb93e (patch)
tree1d6c46873c2899f5600a56387dab2cda17c46041
parent41e4144d4d8c50b52ed6224a28f2ca4042c1e5b2 (diff)
downloadmeta-qt5-a17ff281aa8d99f770b0a049cb798235005fb93e.tar.gz
qtbase: fix Krogoth build regression from efa8aaf
With commit efa8aaf82e580a7d32eaaab48eb92d436f2e222a Author: Andreas Müller <schnitzeltony@googlemail.com> Date: Thu Feb 9 00:26:09 2017 qmake5_base.bbclass: set qt.conf by environment variable again we stopped pointing ${OE_QMAKE_QTCONF_PATH} at a valid file and instead directed it to a path which was intended not to exist. The motivation was to permit qtbase/qtbase-native/nativesdk-qtbase to build again after Qt 5.8 started paying attention to the contents of this file. The change as done in efa8aaf works well enough for Morty and subsequent releases' copies of Bitbake, but fails on earlier releases because they lack the following change: commit 2afcbfef2cd1ca568e5225884a8021df38ee3db0 Author: Ross Burton <ross.burton@intel.com> Date: 2016-07-14 13:56:22 bitbake: build: don't use $B as the default cwd for functions The result is that when we build with Krogoth or prior, the body of do_generate_qt_config_file() runs with a cwd of ${B}, which was _not_ the intent of efa8aaf. Because the working directory is ${B}, ${OE_QMAKE_QTCONF_PATH} is written in there too. do_configure() -- whose cwd is by design also ${B} -- then finds the file 'foodummy', and the build breaks for the reasons outlined in efa8aaf. This change simply shifts the implementation tactics to suppress the creation of ${OE_QMAKE_QTCONF_PATH} during qtbase rather than rely on unspecified behavior about the cwd of do_generate_qt_config_file(). Change-Id: I93596ed78cba628d3b673c4fbbcff585e04d4402 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_git.bb2
-rw-r--r--recipes-qt/qt5/qtbase-native_git.bb2
-rw-r--r--recipes-qt/qt5/qtbase_git.bb2
3 files changed, 3 insertions, 3 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index a96d3f60..28b510a1 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -93,7 +93,7 @@ OE_QMAKE_PATH_HOST_LIBS = "${libdir}"
93 93
94# for qtbase configuration we need default settings 94# for qtbase configuration we need default settings
95# since we cannot set empty set filename to a not existent file 95# since we cannot set empty set filename to a not existent file
96export OE_QMAKE_QTCONF_PATH = "foodummy" 96deltask generate_qt_config_file
97 97
98do_configure() { 98do_configure() {
99 ${S}/configure -v \ 99 ${S}/configure -v \
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb
index 309672f6..dc3faf9b 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -79,7 +79,7 @@ PACKAGECONFIG_CONFARGS = " \
79 79
80# for qtbase configuration we need default settings 80# for qtbase configuration we need default settings
81# since we cannot set empty set filename to a not existent file 81# since we cannot set empty set filename to a not existent file
82export OE_QMAKE_QTCONF_PATH = "foodummy" 82deltask generate_qt_config_file
83 83
84do_configure_prepend() { 84do_configure_prepend() {
85 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" 85 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory"
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 4cc5f99c..328cbf2e 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -129,7 +129,7 @@ QT_CONFIG_FLAGS += " \
129 129
130# for qtbase configuration we need default settings 130# for qtbase configuration we need default settings
131# since we cannot set empty set filename to a not existent file 131# since we cannot set empty set filename to a not existent file
132export OE_QMAKE_QTCONF_PATH = "foodummy" 132deltask generate_qt_config_file
133 133
134do_configure() { 134do_configure() {
135 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration 135 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration