diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-03-20 12:23:26 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-03-20 12:32:50 +0200 |
commit | bd7a586d835d1dd0a5b201338e223fb94adc4380 (patch) | |
tree | 2ec50ae595f291ccc80f046f6824c7f03d7b1f2a | |
parent | 26205f49f51b5727d75bf8f02a894e04bf7b7942 (diff) | |
parent | 0b0a608ddc55acf1f817aee03e65a06017239bed (diff) | |
download | meta-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-x | recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb | 1 | ||||
-rw-r--r-- | recipes-qt/qt5/qt5-creator_git.bb | 5 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch | 14 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0009-Add-OE-specific-specs-for-clang-compiler.patch | 6 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 23 | ||||
-rw-r--r-- | recipes-qt/qt5/qtscript_git.bb | 2 |
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 | " |
32 | SRC_URI_append_libc-musl = " file://0003-Link-with-libexecinfo-on-musl.patch" | 31 | SRC_URI_append_libc-musl = " file://0003-Link-with-libexecinfo-on-musl.patch" |
33 | 32 | ||
@@ -50,10 +49,6 @@ do_configure_append() { | |||
50 | 49 | ||
51 | do_install() { | 50 | do_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 | } |
58 | do_install_append_toolchain-clang () { | 53 | do_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 @@ | |||
1 | From 3701cce26ce6f90e4b5e4c71c73d333d43b5ac08 Mon Sep 17 00:00:00 2001 | 1 | From 5a9a1e8da67d2bf1672982f087995c8e0e8b3577 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Mon, 15 Apr 2013 04:29:32 +0200 | 3 | Date: Mon, 15 Apr 2013 04:29:32 +0200 |
4 | Subject: [PATCH] Add linux-oe-g++ platform | 4 | Subject: [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 | ||
33 | diff --git a/configure b/configure | 33 | diff --git a/configure b/configure |
34 | index ef7bad1bfc..dcca0f9135 100755 | 34 | index 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 |
46 | diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf | 46 | diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf |
47 | index 934a18a924..0f5b1b6333 100644 | 47 | index 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) |
67 | diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf | 67 | diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf |
68 | index d16b3cf1be..df219ce34c 100644 | 68 | index 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) |
91 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf | 91 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf |
92 | index 1903e509c8..c093dd4592 100644 | 92 | index 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) |
104 | diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf | 104 | diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf |
105 | new file mode 100644 | 105 | new file mode 100644 |
106 | index 0000000000..c202c47fa1 | 106 | index 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) |
149 | diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h | 149 | diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h |
150 | new file mode 100644 | 150 | new file mode 100644 |
151 | index 0000000000..5d22fb4101 | 151 | index 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 @@ | |||
1 | From 4486a9740b07aa7902f638efe23a51ee619f9600 Mon Sep 17 00:00:00 2001 | 1 | From 289f366363eeca03c27fd718c8b3ae53dcc28586 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 3 Sep 2017 09:11:44 -0700 | 3 | Date: Sun, 3 Sep 2017 09:11:44 -0700 |
4 | Subject: [PATCH] Add OE specific specs for clang compiler | 4 | Subject: [PATCH] Add OE specific specs for clang compiler |
@@ -13,7 +13,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
13 | 13 | ||
14 | diff --git a/mkspecs/linux-oe-clang/qmake.conf b/mkspecs/linux-oe-clang/qmake.conf | 14 | diff --git a/mkspecs/linux-oe-clang/qmake.conf b/mkspecs/linux-oe-clang/qmake.conf |
15 | new file mode 100644 | 15 | new file mode 100644 |
16 | index 0000000000..db02ab5215 | 16 | index 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) |
59 | diff --git a/mkspecs/linux-oe-clang/qplatformdefs.h b/mkspecs/linux-oe-clang/qplatformdefs.h | 59 | diff --git a/mkspecs/linux-oe-clang/qplatformdefs.h b/mkspecs/linux-oe-clang/qplatformdefs.h |
60 | new file mode 100644 | 60 | new file mode 100644 |
61 | index 0000000000..880c927b21 | 61 | index 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 | ||
94 | OPENSSL_LINKING_MODE ??= "" | ||
92 | 95 | ||
93 | PACKAGECONFIG[static] = "-static,-shared" | 96 | PACKAGECONFIG[static] = "-static,-shared" |
94 | PACKAGECONFIG[release] = "-release,-debug" | 97 | PACKAGECONFIG[release] = "-release,-debug" |
@@ -148,7 +151,7 @@ PACKAGECONFIG[kms] = "-kms,-no-kms,drm virtual/egl" | |||
148 | PACKAGECONFIG[gbm] = "-gbm,-no-gbm,virtual/libgbm" | 151 | PACKAGECONFIG[gbm] = "-gbm,-no-gbm,virtual/libgbm" |
149 | PACKAGECONFIG[icu] = "-icu,-no-icu,icu" | 152 | PACKAGECONFIG[icu] = "-icu,-no-icu,icu" |
150 | PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev" | 153 | PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev" |
151 | PACKAGECONFIG[openssl] = "-openssl,-no-openssl,openssl,libssl" | 154 | PACKAGECONFIG[openssl] = "-openssl${OPENSSL_LINKING_MODE},-no-openssl,openssl,libssl" |
152 | PACKAGECONFIG[widgets] = "-widgets,-no-widgets" | 155 | PACKAGECONFIG[widgets] = "-widgets,-no-widgets" |
153 | PACKAGECONFIG[libproxy] = "-libproxy,-no-libproxy,libproxy" | 156 | PACKAGECONFIG[libproxy] = "-libproxy,-no-libproxy,libproxy" |
154 | PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput" | 157 | PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput" |
@@ -263,4 +266,22 @@ INSANE_SKIP_${PN}-mkspecs += "file-rdeps" | |||
263 | 266 | ||
264 | RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}" | 267 | RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}" |
265 | 268 | ||
269 | TARGET_MKSPEC ?= "linux-g++" | ||
270 | |||
271 | # use clean mkspecs on target | ||
272 | pkg_postinst_${PN}-tools () { | ||
273 | sed -i \ | ||
274 | -e 's:HostSpec =.*:HostSpec = ${TARGET_MKSPEC}:g' \ | ||
275 | -e 's:TargetSpec =.*:TargetSpec = ${TARGET_MKSPEC}:g' \ | ||
276 | $D${bindir}/qt.conf | ||
277 | } | ||
278 | |||
279 | pkg_postinst_${PN}-mkspecs () { | ||
280 | sed -i 's: cross_compile : :g' $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qconfig.pri | ||
281 | sed -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 | |||
266 | SRCREV = "856fb1ab44722f5165fb6b5dec0bd748006acd10" | 287 | SRCREV = "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 |
16 | SRC_URI += " \ | 16 | SRC_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 | " |