diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2019-08-19 15:23:02 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2019-08-20 05:40:46 +0000 |
commit | b5777bd48ee6cfd32d9ae39a7841749298caaadd (patch) | |
tree | e2b8a66564aebf924f0da9223f083ffe265a3211 | |
parent | f139f2895b699fb0898f6d733b5807c934d48cf1 (diff) | |
download | meta-qt5-b5777bd48ee6cfd32d9ae39a7841749298caaadd.tar.gz |
qtscxml: fix test build
Change-Id: Ie11c9d34f7e84e1a17d3a72507e9a3c37ddf664f
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rw-r--r-- | recipes-qt/qt5/qtscxml/0001-Fix-shadow-build.patch | 37 | ||||
-rw-r--r-- | recipes-qt/qt5/qtscxml_git.bb | 5 |
2 files changed, 41 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtscxml/0001-Fix-shadow-build.patch b/recipes-qt/qt5/qtscxml/0001-Fix-shadow-build.patch new file mode 100644 index 00000000..96d87b82 --- /dev/null +++ b/recipes-qt/qt5/qtscxml/0001-Fix-shadow-build.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 91547b21cbbdc608a800ad53f47f296798b370ab Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
3 | Date: Mon, 19 Aug 2019 15:17:13 +0300 | ||
4 | Subject: [PATCH] Fix shadow build | ||
5 | |||
6 | Don't write to source directory when using shadow build. | ||
7 | This stops working with Qt 5.14.0. | ||
8 | |||
9 | Change-Id: Ica83b9c810e2a937aab75af131484f5f91570453 | ||
10 | --- | ||
11 | tests/auto/scion/scion.pro | 8 ++++---- | ||
12 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
13 | |||
14 | diff --git a/tests/auto/scion/scion.pro b/tests/auto/scion/scion.pro | ||
15 | index 6e1f7f4..1ebc624 100644 | ||
16 | --- a/tests/auto/scion/scion.pro | ||
17 | +++ b/tests/auto/scion/scion.pro | ||
18 | @@ -89,15 +89,15 @@ for (f,ALLSCXMLS) { | ||
19 | ALLFILES = $$files($$SCXMLS_DIR/*.*, true) | ||
20 | for (f,ALLFILES) { | ||
21 | base = $$relative_path($$f,$$absolute_path($$SCXMLS_DIR)) | ||
22 | - file = $$relative_path($$f, $$absolute_path($$PWD)) | ||
23 | + file = $$relative_path($$f, $$absolute_path($$OUT_PWD)) | ||
24 | qrc += '<file alias="$$base">$$file</file>' | ||
25 | } | ||
26 | |||
27 | contents = $$inc_list "std::function<QScxmlStateMachine *()> creators[] = {" $$func_list "};" | ||
28 | -write_file("scxml/compiled_tests.h", contents)|error("Aborting.") | ||
29 | +write_file("$$OUT_PWD/scxml/compiled_tests.h", contents)|error("Aborting.") | ||
30 | |||
31 | contents = "const char *testBases[] = {" $$testBases "};" | ||
32 | -write_file("scxml/scion.h", contents)|error("Aborting.") | ||
33 | +write_file("$$OUT_PWD/scxml/scion.h", contents)|error("Aborting.") | ||
34 | |||
35 | contents = '<!DOCTYPE RCC><RCC version=\"1.0\">' '<qresource>' $$qrc '</qresource></RCC>' | ||
36 | -write_file("scion.qrc", contents)|error("Aborting.") | ||
37 | +write_file("$$OUT_PWD/scion.qrc", contents)|error("Aborting.") | ||
diff --git a/recipes-qt/qt5/qtscxml_git.bb b/recipes-qt/qt5/qtscxml_git.bb index 8842b9d6..2e8b42d8 100644 --- a/recipes-qt/qt5/qtscxml_git.bb +++ b/recipes-qt/qt5/qtscxml_git.bb | |||
@@ -14,7 +14,10 @@ SRCREV = "279d63c4f6632237e6a0d9c4be91b466876c260a" | |||
14 | 14 | ||
15 | # Patches from https://github.com/meta-qt5/qtscxml/commits/b5.12 | 15 | # Patches from https://github.com/meta-qt5/qtscxml/commits/b5.12 |
16 | # 5.12.meta-qt5.2 | 16 | # 5.12.meta-qt5.2 |
17 | SRC_URI += "file://0001-Use-external-host-bin-path-for-cmake-file.patch" | 17 | SRC_URI += "\ |
18 | file://0001-Use-external-host-bin-path-for-cmake-file.patch \ | ||
19 | file://0001-Fix-shadow-build.patch \ | ||
20 | " | ||
18 | 21 | ||
19 | do_install_append_class-nativesdk() { | 22 | do_install_append_class-nativesdk() { |
20 | # qml files not needed in nativesdk | 23 | # qml files not needed in nativesdk |