diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2017-02-09 07:26:09 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-02-10 18:50:57 +0100 |
commit | efa8aaf82e580a7d32eaaab48eb92d436f2e222a (patch) | |
tree | 2092c91c5c5c27af0b8465bd891f76b941642d5d /recipes-qt/qt5/nativesdk-qtbase_git.bb | |
parent | 8ba28144d5571504112fd4f32c7bfcbac531e2cb (diff) | |
download | meta-qt5-efa8aaf82e580a7d32eaaab48eb92d436f2e222a.tar.gz |
qmake5_base.bbclass: set qt.conf by environment variable again
Qt update to 5.8 caused fallout in meta-qt5-extra. It turned out that
qmake pulled in many pointers to native sysroot. Native sysroot is qmake's
default in case no configuration file qt.conf is set.
The problem with the new way of setting qt.conf by cmd parameter is that is has
to be set explicitly. For instance all the packages coming from [1] use
autotools for configuration. These ask qmake for paths during configuration
and build further Makefiles during compile. To patch these for additional cmd
parameter is nasty business.
Setting qt.conf when building all qtbase's causes errors during configuration.
To fix this we set the filename to a non existent file so that Qt's default is
used. This dirty hack was necessary because there was no way found to export
an empty variable OE_QMAKE_QTCONF_PATH.
This patch was tested by building huge parts of meta-qt5-extra. The meta-layers
did not yet contain oe-core's recipe-specific-sysroot changes so master build
might fail for missing dependencies.
[1] http://www.rncbc.org/drupal/
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/nativesdk-qtbase_git.bb')
-rw-r--r-- | recipes-qt/qt5/nativesdk-qtbase_git.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index 7d2ce583..7a4c1139 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
@@ -27,6 +27,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | |||
27 | # common for qtbase-native, qtbase-nativesdk and qtbase | 27 | # common for qtbase-native, qtbase-nativesdk and qtbase |
28 | SRC_URI += "\ | 28 | SRC_URI += "\ |
29 | file://0001-Add-linux-oe-g-platform.patch \ | 29 | file://0001-Add-linux-oe-g-platform.patch \ |
30 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
30 | file://0003-Add-external-hostbindir-option.patch \ | 31 | file://0003-Add-external-hostbindir-option.patch \ |
31 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | 32 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ |
32 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 33 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
@@ -92,6 +93,10 @@ QT_CONFIG_FLAGS += " \ | |||
92 | OE_QMAKE_PATH_HOST_DATA = "${libdir}${QT_DIR_NAME}" | 93 | OE_QMAKE_PATH_HOST_DATA = "${libdir}${QT_DIR_NAME}" |
93 | OE_QMAKE_PATH_HOST_LIBS = "${libdir}" | 94 | OE_QMAKE_PATH_HOST_LIBS = "${libdir}" |
94 | 95 | ||
96 | # for qtbase configuration we need default settings | ||
97 | # since we cannot set empty set filename to a not existent file | ||
98 | export OE_QMAKE_QTCONF_PATH = "foodummy" | ||
99 | |||
95 | do_configure() { | 100 | do_configure() { |
96 | ${S}/configure -v \ | 101 | ${S}/configure -v \ |
97 | -opensource -confirm-license \ | 102 | -opensource -confirm-license \ |