diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2019-07-25 12:30:39 +0300 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2019-07-29 12:15:34 +0000 |
commit | cd9256718be8b28fff9d6e0d69dc819830c5cc20 (patch) | |
tree | 8e00f146969f44dc4aa701906afc429a9191ede2 | |
parent | 708be171f67ed6d63247f4fb7a83d6f858d42fbd (diff) | |
download | meta-qt5-cd9256718be8b28fff9d6e0d69dc819830c5cc20.tar.gz |
qt5-creator: update to v4.9.2
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch (renamed from recipes-qt/qt5/qt5-creator/0003-Link-with-libexecinfo-on-musl.patch) | 6 | ||||
-rw-r--r-- | recipes-qt/qt5/qt5-creator/0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch | 26 | ||||
-rw-r--r-- | recipes-qt/qt5/qt5-creator/0002-botan.pro-pass-QMAKE_AR.patch | 80 | ||||
-rw-r--r-- | recipes-qt/qt5/qt5-creator_git.bb | 14 |
4 files changed, 9 insertions, 117 deletions
diff --git a/recipes-qt/qt5/qt5-creator/0003-Link-with-libexecinfo-on-musl.patch b/recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch index 9b225a57..214a4034 100644 --- a/recipes-qt/qt5/qt5-creator/0003-Link-with-libexecinfo-on-musl.patch +++ b/recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 88afa7173c7d0c97e15d9ee9c58e8c0364799bb7 Mon Sep 17 00:00:00 2001 | 1 | From 33299724b8719d53b26c9055a76a61c358270110 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: Tue, 16 Jan 2018 13:26:57 +0000 | 3 | Date: Tue, 16 Jan 2018 13:26:57 +0000 |
4 | Subject: [PATCH] Link with libexecinfo on musl | 4 | Subject: [PATCH] Link with libexecinfo on musl |
@@ -10,10 +10,10 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
10 | 1 file changed, 1 insertion(+) | 10 | 1 file changed, 1 insertion(+) |
11 | 11 | ||
12 | diff --git a/src/plugins/debugger/debugger.pro b/src/plugins/debugger/debugger.pro | 12 | diff --git a/src/plugins/debugger/debugger.pro b/src/plugins/debugger/debugger.pro |
13 | index f5a34aa0d5..4a1359dd5c 100644 | 13 | index acbf5136b9..159139eb2b 100644 |
14 | --- a/src/plugins/debugger/debugger.pro | 14 | --- a/src/plugins/debugger/debugger.pro |
15 | +++ b/src/plugins/debugger/debugger.pro | 15 | +++ b/src/plugins/debugger/debugger.pro |
16 | @@ -141,3 +141,4 @@ include(console/console.pri) | 16 | @@ -139,3 +139,4 @@ include(console/console.pri) |
17 | include(analyzer/analyzer.pri) | 17 | include(analyzer/analyzer.pri) |
18 | 18 | ||
19 | include(shared/shared.pri) | 19 | include(shared/shared.pri) |
diff --git a/recipes-qt/qt5/qt5-creator/0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch b/recipes-qt/qt5/qt5-creator/0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch deleted file mode 100644 index eebda742..00000000 --- a/recipes-qt/qt5/qt5-creator/0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From 766e5b37a42b440b66823262eb553f9981940115 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 27 Sep 2018 20:48:17 -0700 | ||
4 | Subject: [PATCH] botan: Always define BOTAN_ARCH_SWITCH when cross-building | ||
5 | |||
6 | this helps in compiling botan for non-x86 architectures | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | src/libs/botan/botan.pro | 2 ++ | ||
11 | 1 file changed, 2 insertions(+) | ||
12 | |||
13 | diff --git a/src/libs/botan/botan.pro b/src/libs/botan/botan.pro | ||
14 | index 0c939b2a30..6e1a85fe84 100644 | ||
15 | --- a/src/libs/botan/botan.pro | ||
16 | +++ b/src/libs/botan/botan.pro | ||
17 | @@ -18,6 +18,7 @@ else: clang: BOTAN_CC_TYPE = clang | ||
18 | else: BOTAN_CC_TYPE = gcc | ||
19 | contains(QT_ARCH, i386): BOTAN_ARCH_SWITCH = "--cpu=x86" | ||
20 | else: contains(QT_ARCH, x86_64): BOTAN_ARCH_SWITCH = "--cpu=x86_64" | ||
21 | +else: BOTAN_ARCH_SWITCH = --cpu=$$QT_ARCH | ||
22 | BOTAN_MODULES = aes aes_ssse3 auto_rng bigint block cbc ctr des dh dsa ec_group ecdh ecdsa entropy \ | ||
23 | filters hmac mode_pad pubkey rsa sha1 sha1_sse2 sha1_x86 sha2_32 sha2_32_x86 \ | ||
24 | sha2_64 simd system_rng,emsa_pkcs1,pbes2,pbkdf2 | ||
25 | -- 2.19.0 | ||
26 | |||
diff --git a/recipes-qt/qt5/qt5-creator/0002-botan.pro-pass-QMAKE_AR.patch b/recipes-qt/qt5/qt5-creator/0002-botan.pro-pass-QMAKE_AR.patch deleted file mode 100644 index 26262299..00000000 --- a/recipes-qt/qt5/qt5-creator/0002-botan.pro-pass-QMAKE_AR.patch +++ /dev/null | |||
@@ -1,80 +0,0 @@ | |||
1 | From cd006f4a79b3c1435a8a8321b5af9191f104bbb3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Wed, 26 Sep 2018 21:14:06 +0000 | ||
4 | Subject: [PATCH] botan.pro: pass QMAKE_AR | ||
5 | |||
6 | * otherwise AR from environment sets it with cqs params, e.g.: | ||
7 | x86_64-oe-linux-ar cqs | ||
8 | from QMAKE_AR = ${OE_QMAKE_AR} cqs | ||
9 | |||
10 | but then botan's Makefile will add "crs" after it causing: | ||
11 | http://errors.yoctoproject.org/Errors/Details/194653/ | ||
12 | |||
13 | x86_64-oe-linux-ar cqs crs libbotan-2.a build/obj/lib/botan_all.o build/obj/lib/botan_all_ssse3.o | ||
14 | x86_64-oe-linux-ar: libbotan-2.a: No such file or directory | ||
15 | Makefile:79: recipe for target 'libbotan-2.a' failed | ||
16 | make[4]: *** [libbotan-2.a] Error 1 | ||
17 | |||
18 | * add --ar-options parameter to botan configure and respect the | ||
19 | value when set (before cc.ar_options and osinfo.ar_options) | ||
20 | then use this to pass empty ar_options as we already include | ||
21 | the options in ar_command | ||
22 | |||
23 | Upstream-Status: Pending | ||
24 | |||
25 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
26 | --- | ||
27 | src/libs/3rdparty/botan/configure.py | 13 ++++++++++++- | ||
28 | src/libs/botan/botan.pro | 1 + | ||
29 | 2 files changed, 13 insertions(+), 1 deletion(-) | ||
30 | |||
31 | diff --git a/src/libs/3rdparty/botan/configure.py b/src/libs/3rdparty/botan/configure.py | ||
32 | index b09f07bb5e..2b5b9c6417 100755 | ||
33 | --- a/src/libs/3rdparty/botan/configure.py | ||
34 | +++ b/src/libs/3rdparty/botan/configure.py | ||
35 | @@ -321,6 +321,9 @@ def process_command_line(args): # pylint: disable=too-many-locals | ||
36 | target_group.add_option('--ar-command', dest='ar_command', metavar='AR', default=None, | ||
37 | help='set path to static archive creator') | ||
38 | |||
39 | + target_group.add_option('--ar-options', dest='ar_options', metavar='crs', default='crs', | ||
40 | + help='set options for static archive creator') | ||
41 | + | ||
42 | target_group.add_option('--msvc-runtime', metavar='RT', default=None, | ||
43 | help='specify MSVC runtime (MT, MD, MTd, MDd)') | ||
44 | |||
45 | @@ -1786,6 +1789,14 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, | ||
46 | |||
47 | return osinfo.ar_command | ||
48 | |||
49 | + def ar_options(): | ||
50 | + if options.ar_options: | ||
51 | + return options.ar_options | ||
52 | + if cc.ar_options: | ||
53 | + return cc.ar_options | ||
54 | + | ||
55 | + return osinfo.ar_options | ||
56 | + | ||
57 | def choose_endian(arch_info, options): | ||
58 | if options.with_endian != None: | ||
59 | return options.with_endian | ||
60 | @@ -1938,7 +1949,7 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, | ||
61 | 'post_link_cmd': '', | ||
62 | |||
63 | 'ar_command': ar_command(), | ||
64 | - 'ar_options': cc.ar_options or osinfo.ar_options, | ||
65 | + 'ar_options': ar_options(), | ||
66 | 'ar_output_to': cc.ar_output_to, | ||
67 | |||
68 | 'link_to': ' '.join( | ||
69 | diff --git a/src/libs/botan/botan.pro b/src/libs/botan/botan.pro | ||
70 | index 0c939b2a30..e8082c4bbb 100644 | ||
71 | --- a/src/libs/botan/botan.pro | ||
72 | +++ b/src/libs/botan/botan.pro | ||
73 | @@ -46,6 +46,7 @@ configure.variable_out = BOTAN_MAKEFILE | ||
74 | configure.commands = cd $$BOTAN_BUILD_DIR_FOR_SHELL && \ | ||
75 | python $$CONFIGURE_FILE_PATH_FOR_SHELL \ | ||
76 | --cc=$$BOTAN_CC_TYPE --cc-bin=$$shell_quote($$QMAKE_CXX) \ | ||
77 | + --ar-command=$$shell_quote($$QMAKE_AR) --ar-options=$$shell_quote(' ') \ | ||
78 | $$BOTAN_ARCH_SWITCH $$BOTAN_OS_SWITCH $$OTHER_FLAGS | ||
79 | QMAKE_EXTRA_COMPILERS += configure | ||
80 | |||
diff --git a/recipes-qt/qt5/qt5-creator_git.bb b/recipes-qt/qt5/qt5-creator_git.bb index 6a8887ed..107fee53 100644 --- a/recipes-qt/qt5/qt5-creator_git.bb +++ b/recipes-qt/qt5/qt5-creator_git.bb | |||
@@ -18,17 +18,15 @@ DEPENDS = "qtbase qtscript qtwebkit qtxmlpatterns qtx11extras qtdeclarative qtto | |||
18 | DEPENDS_append_toolchain-clang = " clang llvm-common" | 18 | DEPENDS_append_toolchain-clang = " clang llvm-common" |
19 | DEPENDS_append_libc-musl = " libexecinfo" | 19 | DEPENDS_append_libc-musl = " libexecinfo" |
20 | 20 | ||
21 | SRCREV = "8768e39d3c8e74e583eca3897cc6de53a99c3dde" | 21 | SRCREV = "8181363fa90eb651591bf71e1a840e1c998429f4" |
22 | PV = "4.7.1+git${SRCPV}" | 22 | PV = "4.9.2+git${SRCPV}" |
23 | 23 | ||
24 | # Patches from https://github.com/meta-qt5/qtcreator/commits/b4.7.1 | 24 | # Patches from https://github.com/meta-qt5/qtcreator/commits/b4.9.2 |
25 | # 4.7.1.meta-qt5.1 | 25 | # 4.9.2.meta-qt5.1 |
26 | SRC_URI = " \ | 26 | 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.9 \ |
28 | file://0002-botan.pro-pass-QMAKE_AR.patch \ | ||
29 | file://0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch \ | ||
30 | " | 28 | " |
31 | SRC_URI_append_libc-musl = " file://0003-Link-with-libexecinfo-on-musl.patch" | 29 | SRC_URI_append_libc-musl = " file://0001-Link-with-libexecinfo-on-musl.patch" |
32 | 30 | ||
33 | S = "${WORKDIR}/git" | 31 | S = "${WORKDIR}/git" |
34 | 32 | ||