summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2019-03-20 12:23:26 +0200
committerMikko Gronoff <mikko.gronoff@qt.io>2019-03-20 12:32:50 +0200
commitbd7a586d835d1dd0a5b201338e223fb94adc4380 (patch)
tree2ec50ae595f291ccc80f046f6824c7f03d7b1f2a
parent26205f49f51b5727d75bf8f02a894e04bf7b7942 (diff)
parent0b0a608ddc55acf1f817aee03e65a06017239bed (diff)
downloadmeta-qt5-bd7a586d835d1dd0a5b201338e223fb94adc4380.tar.gz
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.12
* upstream/master: 0b0a608 qtbase: let user decide how to link openssl to Qt5 libraries 47d1132 qtbase: fix target mkspec adjustment 87f0462 qttools/cmake: use OE_QMAKE_PATH_EXTERNAL_HOST_BINS fe88b99 nativesdk-qtbase: use rpath for nativesdk Qt tools 92c34de qt5: cleanup mkspecs e117b58 qtbase: Fix test builds with clang/x86_64 6280bef qtscript: add fix for build with gcc 8.3 77ed8fb qtbase: Adjust target mkspec settings 75c7d00 qt5-creator: Do not ship two desktop files 6629131 packagegroup-qt5-toolchain-target: add qtbase-tools Conflicts: recipes-qt/qt5/nativesdk-qtbase_git.bb recipes-qt/qt5/qtbase-native_git.bb recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch recipes-qt/qt5/qtbase_git.bb Change-Id: Iaa69404f2d91bd492eea527548b7cf7c504b7bde
-rwxr-xr-xrecipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb1
-rw-r--r--recipes-qt/qt5/qt5-creator_git.bb5
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch14
-rw-r--r--recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch6
-rw-r--r--recipes-qt/qt5/qtbase_git.bb23
-rw-r--r--recipes-qt/qt5/qtscript_git.bb2
6 files changed, 34 insertions, 17 deletions
diff --git a/recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb b/recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb
index 8067832c..b912d891 100755
--- a/recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb
+++ b/recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb
@@ -36,6 +36,7 @@ RDEPENDS_${PN} += " \
36 qtbase-mkspecs \ 36 qtbase-mkspecs \
37 qtbase-plugins \ 37 qtbase-plugins \
38 qtbase-staticdev \ 38 qtbase-staticdev \
39 qtbase-tools \
39 qttranslations-qtbase \ 40 qttranslations-qtbase \
40 qttranslations-qthelp \ 41 qttranslations-qthelp \
41 qtcharts-dev \ 42 qtcharts-dev \
diff --git a/recipes-qt/qt5/qt5-creator_git.bb b/recipes-qt/qt5/qt5-creator_git.bb
index 344c956e..6a8887ed 100644
--- a/recipes-qt/qt5/qt5-creator_git.bb
+++ b/recipes-qt/qt5/qt5-creator_git.bb
@@ -27,7 +27,6 @@ SRC_URI = " \
27 git://code.qt.io/qt-creator/qt-creator.git;branch=4.7 \ 27 git://code.qt.io/qt-creator/qt-creator.git;branch=4.7 \
28 file://0002-botan.pro-pass-QMAKE_AR.patch \ 28 file://0002-botan.pro-pass-QMAKE_AR.patch \
29 file://0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch \ 29 file://0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch \
30 file://qtcreator.desktop.in \
31" 30"
32SRC_URI_append_libc-musl = " file://0003-Link-with-libexecinfo-on-musl.patch" 31SRC_URI_append_libc-musl = " file://0003-Link-with-libexecinfo-on-musl.patch"
33 32
@@ -50,10 +49,6 @@ do_configure_append() {
50 49
51do_install() { 50do_install() {
52 oe_runmake install INSTALL_ROOT=${D}${prefix} 51 oe_runmake install INSTALL_ROOT=${D}${prefix}
53 # install desktop and ensure that qt-creator finds qmake
54 install -d ${D}${datadir}/applications
55 install -m 0644 ${WORKDIR}/qtcreator.desktop.in ${D}${datadir}/applications/qtcreator.desktop
56 sed -i 's:@QT5_QMAKE@:${OE_QMAKE_PATH_QT_BINS}:g' ${D}${datadir}/applications/qtcreator.desktop
57} 52}
58do_install_append_toolchain-clang () { 53do_install_append_toolchain-clang () {
59 # Remove RPATHs embedded in bins 54 # Remove RPATHs embedded in bins
diff --git a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
index acc532e3..3f35e7dd 100644
--- a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
+++ b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
@@ -1,4 +1,4 @@
1From 3701cce26ce6f90e4b5e4c71c73d333d43b5ac08 Mon Sep 17 00:00:00 2001 1From 5a9a1e8da67d2bf1672982f087995c8e0e8b3577 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 15 Apr 2013 04:29:32 +0200 3Date: Mon, 15 Apr 2013 04:29:32 +0200
4Subject: [PATCH] Add linux-oe-g++ platform 4Subject: [PATCH] Add linux-oe-g++ platform
@@ -31,7 +31,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
31 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h 31 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h
32 32
33diff --git a/configure b/configure 33diff --git a/configure b/configure
34index ef7bad1bfc..dcca0f9135 100755 34index ef7bad1bfce..dcca0f91359 100755
35--- a/configure 35--- a/configure
36+++ b/configure 36+++ b/configure
37@@ -712,7 +712,7 @@ fi 37@@ -712,7 +712,7 @@ fi
@@ -44,7 +44,7 @@ index ef7bad1bfc..dcca0f9135 100755
44 44
45 # build qmake 45 # build qmake
46diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf 46diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
47index 934a18a924..0f5b1b6333 100644 47index 934a18a9249..0f5b1b63334 100644
48--- a/mkspecs/features/configure.prf 48--- a/mkspecs/features/configure.prf
49+++ b/mkspecs/features/configure.prf 49+++ b/mkspecs/features/configure.prf
50@@ -46,14 +46,14 @@ defineTest(qtCompileTest) { 50@@ -46,14 +46,14 @@ defineTest(qtCompileTest) {
@@ -65,7 +65,7 @@ index 934a18a924..0f5b1b6333 100644
65 msg = "test $$1 succeeded" 65 msg = "test $$1 succeeded"
66 write_file($$QMAKE_CONFIG_LOG, msg, append) 66 write_file($$QMAKE_CONFIG_LOG, msg, append)
67diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf 67diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
68index d16b3cf1be..df219ce34c 100644 68index 90e318e2a48..3e8568ed675 100644
69--- a/mkspecs/features/qt.prf 69--- a/mkspecs/features/qt.prf
70+++ b/mkspecs/features/qt.prf 70+++ b/mkspecs/features/qt.prf
71@@ -147,7 +147,7 @@ import_plugins:qtConfig(static) { 71@@ -147,7 +147,7 @@ import_plugins:qtConfig(static) {
@@ -89,7 +89,7 @@ index d16b3cf1be..df219ce34c 100644
89 # run qmlimportscanner 89 # run qmlimportscanner
90 qtPrepareTool(QMLIMPORTSCANNER, qmlimportscanner, , system) 90 qtPrepareTool(QMLIMPORTSCANNER, qmlimportscanner, , system)
91diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf 91diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
92index 1903e509c8..c093dd4592 100644 92index 1903e509c8e..c093dd4592d 100644
93--- a/mkspecs/features/qt_functions.prf 93--- a/mkspecs/features/qt_functions.prf
94+++ b/mkspecs/features/qt_functions.prf 94+++ b/mkspecs/features/qt_functions.prf
95@@ -69,7 +69,7 @@ defineTest(qtHaveModule) { 95@@ -69,7 +69,7 @@ defineTest(qtHaveModule) {
@@ -103,7 +103,7 @@ index 1903e509c8..c093dd4592 100644
103 cmd = perl -w $$system_path($${cmd}.pl) 103 cmd = perl -w $$system_path($${cmd}.pl)
104diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf 104diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf
105new file mode 100644 105new file mode 100644
106index 0000000000..c202c47fa1 106index 00000000000..c202c47fa15
107--- /dev/null 107--- /dev/null
108+++ b/mkspecs/linux-oe-g++/qmake.conf 108+++ b/mkspecs/linux-oe-g++/qmake.conf
109@@ -0,0 +1,39 @@ 109@@ -0,0 +1,39 @@
@@ -148,7 +148,7 @@ index 0000000000..c202c47fa1
148+load(qt_config) 148+load(qt_config)
149diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h 149diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h
150new file mode 100644 150new file mode 100644
151index 0000000000..5d22fb4101 151index 00000000000..5d22fb41013
152--- /dev/null 152--- /dev/null
153+++ b/mkspecs/linux-oe-g++/qplatformdefs.h 153+++ b/mkspecs/linux-oe-g++/qplatformdefs.h
154@@ -0,0 +1 @@ 154@@ -0,0 +1 @@
diff --git a/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch b/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch
index fe5746e2..5a9eb404 100644
--- a/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch
+++ b/recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch
@@ -1,4 +1,4 @@
1From 4486a9740b07aa7902f638efe23a51ee619f9600 Mon Sep 17 00:00:00 2001 1From 289f366363eeca03c27fd718c8b3ae53dcc28586 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 3 Sep 2017 09:11:44 -0700 3Date: Sun, 3 Sep 2017 09:11:44 -0700
4Subject: [PATCH] Add OE specific specs for clang compiler 4Subject: [PATCH] Add OE specific specs for clang compiler
@@ -13,7 +13,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 13
14diff --git a/mkspecs/linux-oe-clang/qmake.conf b/mkspecs/linux-oe-clang/qmake.conf 14diff --git a/mkspecs/linux-oe-clang/qmake.conf b/mkspecs/linux-oe-clang/qmake.conf
15new file mode 100644 15new file mode 100644
16index 0000000000..db02ab5215 16index 00000000000..db02ab5215f
17--- /dev/null 17--- /dev/null
18+++ b/mkspecs/linux-oe-clang/qmake.conf 18+++ b/mkspecs/linux-oe-clang/qmake.conf
19@@ -0,0 +1,39 @@ 19@@ -0,0 +1,39 @@
@@ -58,7 +58,7 @@ index 0000000000..db02ab5215
58+load(qt_config) 58+load(qt_config)
59diff --git a/mkspecs/linux-oe-clang/qplatformdefs.h b/mkspecs/linux-oe-clang/qplatformdefs.h 59diff --git a/mkspecs/linux-oe-clang/qplatformdefs.h b/mkspecs/linux-oe-clang/qplatformdefs.h
60new file mode 100644 60new file mode 100644
61index 0000000000..880c927b21 61index 00000000000..880c927b218
62--- /dev/null 62--- /dev/null
63+++ b/mkspecs/linux-oe-clang/qplatformdefs.h 63+++ b/mkspecs/linux-oe-clang/qplatformdefs.h
64@@ -0,0 +1 @@ 64@@ -0,0 +1 @@
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 943ab08e..836f57fa 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -89,6 +89,9 @@ PACKAGECONFIG ?= " \
89 ${PACKAGECONFIG_SYSTEM} \ 89 ${PACKAGECONFIG_SYSTEM} \
90 ${PACKAGECONFIG_DISTRO} \ 90 ${PACKAGECONFIG_DISTRO} \
91" 91"
92# Choose whether to link to OpenSSL library at linking time or run time
93# Leave the variable empty to let the buildsystem decide, or specify -linked or -runtime
94OPENSSL_LINKING_MODE ??= ""
92 95
93PACKAGECONFIG[static] = "-static,-shared" 96PACKAGECONFIG[static] = "-static,-shared"
94PACKAGECONFIG[release] = "-release,-debug" 97PACKAGECONFIG[release] = "-release,-debug"
@@ -148,7 +151,7 @@ PACKAGECONFIG[kms] = "-kms,-no-kms,drm virtual/egl"
148PACKAGECONFIG[gbm] = "-gbm,-no-gbm,virtual/libgbm" 151PACKAGECONFIG[gbm] = "-gbm,-no-gbm,virtual/libgbm"
149PACKAGECONFIG[icu] = "-icu,-no-icu,icu" 152PACKAGECONFIG[icu] = "-icu,-no-icu,icu"
150PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev" 153PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev"
151PACKAGECONFIG[openssl] = "-openssl,-no-openssl,openssl,libssl" 154PACKAGECONFIG[openssl] = "-openssl${OPENSSL_LINKING_MODE},-no-openssl,openssl,libssl"
152PACKAGECONFIG[widgets] = "-widgets,-no-widgets" 155PACKAGECONFIG[widgets] = "-widgets,-no-widgets"
153PACKAGECONFIG[libproxy] = "-libproxy,-no-libproxy,libproxy" 156PACKAGECONFIG[libproxy] = "-libproxy,-no-libproxy,libproxy"
154PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput" 157PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput"
@@ -263,4 +266,22 @@ INSANE_SKIP_${PN}-mkspecs += "file-rdeps"
263 266
264RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}" 267RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}"
265 268
269TARGET_MKSPEC ?= "linux-g++"
270
271# use clean mkspecs on target
272pkg_postinst_${PN}-tools () {
273sed -i \
274 -e 's:HostSpec =.*:HostSpec = ${TARGET_MKSPEC}:g' \
275 -e 's:TargetSpec =.*:TargetSpec = ${TARGET_MKSPEC}:g' \
276 $D${bindir}/qt.conf
277}
278
279pkg_postinst_${PN}-mkspecs () {
280sed -i 's: cross_compile : :g' $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qconfig.pri
281sed -i \
282 -e 's: cross_compile : :g' \
283 -e 's:HOST_QT_TOOLS =.*::g' \
284 $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qmodule.pri
285}
286
266SRCREV = "856fb1ab44722f5165fb6b5dec0bd748006acd10" 287SRCREV = "856fb1ab44722f5165fb6b5dec0bd748006acd10"
diff --git a/recipes-qt/qt5/qtscript_git.bb b/recipes-qt/qt5/qtscript_git.bb
index 132d69e2..67d17b28 100644
--- a/recipes-qt/qt5/qtscript_git.bb
+++ b/recipes-qt/qt5/qtscript_git.bb
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = " \
12" 12"
13 13
14# Patches from https://github.com/meta-qt5/qtscript/commits/b5.12 14# Patches from https://github.com/meta-qt5/qtscript/commits/b5.12
15# 5.12.meta-qt5.1 15# 5.12.meta-qt5.2
16SRC_URI += " \ 16SRC_URI += " \
17 file://0001-Include-asm-sgidefs.h-on-non-glibc-systems.patch \ 17 file://0001-Include-asm-sgidefs.h-on-non-glibc-systems.patch \
18" 18"