Fix several qtbase issues
cover Fix several qtbase issues
From: Ming Liu <[email protected]>
Ming Liu (2):
meta: introduce QT_EDITION
meta: fix a regression
conf/layer.conf | 1 + recipes-qt/qt5/nativesdk-qtbase_git.bb | 7 ++++++- recipes-qt/qt5/qt5-native.inc | 7 ------- recipes-qt/qt5/qt5.inc | 7 ------- recipes-qt/qt5/qtbase-native_git.bb | 7 ++++++- recipes-qt/qt5/qtbase_git.bb | 7 ++++++- 6 files changed, 19 insertions(+), 17 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/2 meta: introduce QT_EDITION
From: Ming Liu <[email protected]>
QT_EDITION defaults to 'opensource', but the end users could override it with 'commercial' if they want.
--- conf/layer.conf | 1 + recipes-qt/qt5/nativesdk-qtbase_git.bb | 2 +- recipes-qt/qt5/qtbase-native_git.bb | 2 +- recipes-qt/qt5/qtbase_git.bb | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-)
conf/layer.conf +1 -0
@@ -36,3 +36,4 @@ IMAGE_FEATURES[validitems] += "qtcreator-debug" QT_GIT ?= "git://github.com/qt" QT_LABS_GIT ?= "git://github.com/qt-labs" QT_GIT_PROTOCOL ?= "git" +QT_EDITION ?= "opensource"
recipes-qt/qt5/nativesdk-qtbase_git.bb +1 -1
@@ -103,7 +103,7 @@ deltask generate_qt_config_file do_configure() { ${S}/configure -v \ - -opensource -confirm-license \ + -${QT_EDITION} -confirm-license \ -sysroot ${STAGING_DIR_TARGET} \ -no-gcc-sysroot \ -system-zlib \
recipes-qt/qt5/qtbase-native_git.bb +1 -1
@@ -103,7 +103,7 @@ do_configure_prepend() { # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" touch ${S}/mkspecs/oe-device-extra.pri - MAKEFLAGS="${PARALLEL_MAKE}" ${S}/configure -opensource -confirm-license ${PACKAGECONFIG_CONFARGS} || die "Configuring qt failed. PACKAGECONFIG_CONFARGS was ${PACKAGECONFIG_CONFARGS}" + MAKEFLAGS="${PARALLEL_MAKE}" ${S}/configure -${QT_EDITION} -confirm-license ${PACKAGECONFIG_CONFARGS} || die "Configuring qt failed. PACKAGECONFIG_CONFARGS was ${PACKAGECONFIG_CONFARGS}" } do_install() {
recipes-qt/qt5/qtbase_git.bb +1 -1
@@ -171,7 +171,7 @@ do_configure() { touch ${S}/mkspecs/oe-device-extra.pri ${S}/configure -v \ - -opensource -confirm-license \ + -${QT_EDITION} -confirm-license \ -sysroot ${STAGING_DIR_TARGET} \ -prefix ${OE_QMAKE_PATH_PREFIX} \ -bindir ${OE_QMAKE_PATH_BINS} \
Signature · 1 line
2.7.4
PATCH 2/2 meta: fix a regression
In reply to [email protected]From: Ming Liu <[email protected]>
A flaw was introduced by commit b8a236df:
[ qt5: Fix cmake config files ]
Removing ${S}/include must be done before configure script being called, but it's not in that case for qtbase-native recipe after the commit, that is saying, ${S}/include was removed after configure being called, which causes compiling issues for native build.
Further more, the logic introduced by commit b8a236df should only apply to qtbase recipes, so they should be moved to qtbase recipes as well.
--- recipes-qt/qt5/nativesdk-qtbase_git.bb | 5 +++++ recipes-qt/qt5/qt5-native.inc | 7 ------- recipes-qt/qt5/qt5.inc | 7 ------- recipes-qt/qt5/qtbase-native_git.bb | 5 +++++ recipes-qt/qt5/qtbase_git.bb | 5 +++++ 5 files changed, 15 insertions(+), 14 deletions(-)
recipes-qt/qt5/nativesdk-qtbase_git.bb +5 -0
@@ -102,6 +102,11 @@ OE_QMAKE_PATH_HOST_LIBS = "${libdir}" deltask generate_qt_config_file do_configure() { + # Regenerate header files when they are included in source tarball + # Otherwise cmake files don't set PRIVATE_HEADERS correctly + rm -rf ${S}/include + mkdir -p ${S}/.git || true + ${S}/configure -v \ -${QT_EDITION} -confirm-license \ -sysroot ${STAGING_DIR_TARGET} \
recipes-qt/qt5/qt5-native.inc +0 -7
@@ -10,10 +10,3 @@ OE_QMAKE_PATH_DOCS = "${OE_QMAKE_PATH_QT_DOCS}" OE_QMAKE_PATH_SETTINGS = "${OE_QMAKE_PATH_QT_SETTINGS}" OE_QMAKE_PATH_EXAMPLES = "${OE_QMAKE_PATH_QT_EXAMPLES}" OE_QMAKE_PATH_TESTS = "${OE_QMAKE_PATH_QT_TESTS}" - -# Regenerate header files when they are included in source tarball -# Otherwise cmake files don't set PRIVATE_HEADERS correctly -do_configure_prepend() { - rm -rf ${S}/include - mkdir -p ${S}/.git || true -}
recipes-qt/qt5/qt5.inc +0 -7
@@ -35,13 +35,6 @@ python __anonymous() { d.setVar("PACKAGE_ARCH", tarch) } -# Regenerate header files when they are included in source tarball -# Otherwise cmake files don't set PRIVATE_HEADERS correctly -do_configure_prepend() { - rm -rf ${S}/include - mkdir -p ${S}/.git || true -} - # Many examples come with libraries installed outside of standard libdir, # suppress QA check complaining INSANE_SKIP_${PN}-dbg += "libdir"
recipes-qt/qt5/qtbase-native_git.bb +5 -0
@@ -100,6 +100,11 @@ PACKAGECONFIG_CONFARGS = " \ deltask generate_qt_config_file do_configure_prepend() { + # Regenerate header files when they are included in source tarball + # Otherwise cmake files don't set PRIVATE_HEADERS correctly + rm -rf ${S}/include + mkdir -p ${S}/.git || true + # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" touch ${S}/mkspecs/oe-device-extra.pri
recipes-qt/qt5/qtbase_git.bb +5 -0
@@ -167,6 +167,11 @@ XPLATFORM_toolchain-clang = "linux-oe-clang" XPLATFORM ?= "linux-oe-g++" do_configure() { + # Regenerate header files when they are included in source tarball + # Otherwise cmake files don't set PRIVATE_HEADERS correctly + rm -rf ${S}/include + mkdir -p ${S}/.git || true + # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration touch ${S}/mkspecs/oe-device-extra.pri
Signature · 1 line
2.7.4