summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2017-02-09 07:26:09 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2017-02-10 18:50:57 +0100
commitefa8aaf82e580a7d32eaaab48eb92d436f2e222a (patch)
tree2092c91c5c5c27af0b8465bd891f76b941642d5d /classes
parent8ba28144d5571504112fd4f32c7bfcbac531e2cb (diff)
downloadmeta-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 'classes')
-rw-r--r--classes/qmake5_base.bbclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass
index 50e5a306..df8f6246 100644
--- a/classes/qmake5_base.bbclass
+++ b/classes/qmake5_base.bbclass
@@ -41,8 +41,9 @@ export OE_QMAKE_LDFLAGS = "${LDFLAGS}"
41export OE_QMAKE_AR = "${AR}" 41export OE_QMAKE_AR = "${AR}"
42export OE_QMAKE_STRIP = "echo" 42export OE_QMAKE_STRIP = "echo"
43export OE_QMAKE_WAYLAND_SCANNER = "${STAGING_BINDIR_NATIVE}/wayland-scanner" 43export OE_QMAKE_WAYLAND_SCANNER = "${STAGING_BINDIR_NATIVE}/wayland-scanner"
44OE_QMAKE_QTCONF_PATH = "${WORKDIR}/qt.conf" 44
45export OE_QMAKE_QTCONF = "-qtconf ${OE_QMAKE_QTCONF_PATH}" 45# qmake reads if from shell environment
46export OE_QMAKE_QTCONF_PATH = "${WORKDIR}/qt.conf"
46 47
47inherit qmake5_paths remove-libtool 48inherit qmake5_paths remove-libtool
48 49
@@ -170,8 +171,8 @@ qmake5_base_do_configure () {
170 # for config.tests to read this 171 # for config.tests to read this
171 export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" 172 export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}"
172 173
173 CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_QTCONF} ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE" 174 CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE"
174 ${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_QTCONF} ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE || die "Error calling $CMD" 175 ${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST -- $QMAKE_VARSUBST_CONFIGURE || die "Error calling $CMD"
175} 176}
176 177
177qmake5_base_native_do_install() { 178qmake5_base_native_do_install() {