diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2017-04-20 09:44:13 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2017-04-24 05:50:42 +0000 |
commit | 881ef630a78a8e3279df5d093cc853b6aa37137e (patch) | |
tree | 5a9509eb27a5536dee3a02f4c6aa661ab834bf92 | |
parent | 34b9d9fa2750bce915991828e707d8cf595da289 (diff) | |
download | meta-qt5-881ef630a78a8e3279df5d093cc853b6aa37137e.tar.gz |
qtwebengine: better workaround for too long build directory
Task-number: QTBUG-59769
Change-Id: I727f560ca1b7c7aeeee7ae3128785a2e8cb55e4a
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r-- | recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch | 42 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwebengine_git.bb | 4 |
2 files changed, 43 insertions, 3 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch b/recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch new file mode 100644 index 00000000..42ceeacf --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From c72097e8790553771daf3231124c3fbe1a438379 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
3 | Date: Thu, 30 Mar 2017 11:37:24 +0300 | ||
4 | Subject: [PATCH] chromium: workaround for too long .rps file name | ||
5 | |||
6 | Ninja may fail when the build directory is too long: | ||
7 | |||
8 | ninja: error: WriteFile(__third_party_WebKit_Source_bindings_modules_\ | ||
9 | interfaces_info_individual_modules__home_qt_work_build_build-nitrogen\ | ||
10 | 6x_tmp_work_cortexa9hf-neon-mx6qdl-poky-linux-gnueabi_qtwebengine_5.9\ | ||
11 | .0_gitAUTOINC_29afdb0a34_049134677a-r0_build_src_toolchain_target__ru\ | ||
12 | le.rsp): Unable to create file. File name too long | ||
13 | |||
14 | Task-number: QTBUG-59769 | ||
15 | Change-Id: I73c5e64ae5174412be2a675e35b0b6047f2bf4c1 | ||
16 | --- | ||
17 | src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc | 9 +++++++++ | ||
18 | 1 file changed, 9 insertions(+) | ||
19 | |||
20 | diff --git a/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc b/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc | ||
21 | index a5bc6cd..5cefbfe 100644 | ||
22 | --- a/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc | ||
23 | +++ b/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc | ||
24 | @@ -115,9 +115,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() { | ||
25 | // strictly necessary for regular one-shot actions, but it's easier to | ||
26 | // just always define unique_name. | ||
27 | std::string rspfile = custom_rule_name; | ||
28 | + | ||
29 | + //quick workaround if filename length > 255 - ".rsp", just cut the dirs starting from the end | ||
30 | + //please note ".$unique_name" is not used at the moment | ||
31 | + int pos = 0; | ||
32 | + std::string delimiter("_"); | ||
33 | + while (rspfile.length() > 251 && (pos = rspfile.find_last_of(delimiter)) != std::string::npos) | ||
34 | + rspfile = rspfile.substr(0,pos); | ||
35 | + | ||
36 | if (!target_->sources().empty()) | ||
37 | rspfile += ".$unique_name"; | ||
38 | rspfile += ".rsp"; | ||
39 | + | ||
40 | out_ << " rspfile = " << rspfile << std::endl; | ||
41 | |||
42 | // Response file contents. | ||
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb index e4802ec3..425aeec6 100644 --- a/recipes-qt/qt5/qtwebengine_git.bb +++ b/recipes-qt/qt5/qtwebengine_git.bb | |||
@@ -108,6 +108,7 @@ QT_MODULE_BRANCH_CHROMIUM = "56-based" | |||
108 | SRC_URI += " \ | 108 | SRC_URI += " \ |
109 | ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \ | 109 | ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \ |
110 | file://0001-Force-host-toolchain-configuration.patch \ | 110 | file://0001-Force-host-toolchain-configuration.patch \ |
111 | file://0001-chromium-workaround-for-too-long-.rps-file-name.patch \ | ||
111 | file://0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch \ | 112 | file://0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch \ |
112 | " | 113 | " |
113 | 114 | ||
@@ -119,6 +120,3 @@ SRCREV_FORMAT = "qtwebengine_chromium" | |||
119 | 120 | ||
120 | # WARNING: qtwebengine-5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0 do_package_qa: QA Issue: ELF binary '/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/packages-split/qtwebengine/usr/lib/libQt5WebEngineCore.so.5.6.0' has relocations in .text [textrel] | 121 | # WARNING: qtwebengine-5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0 do_package_qa: QA Issue: ELF binary '/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/packages-split/qtwebengine/usr/lib/libQt5WebEngineCore.so.5.6.0' has relocations in .text [textrel] |
121 | INSANE_SKIP_${PN} += "textrel" | 122 | INSANE_SKIP_${PN} += "textrel" |
122 | |||
123 | # Ninja may fail when path is too long, try to make it a bit shorter | ||
124 | WORKDIR = "${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/${PN}/${QT_MODULE_BRANCH}" | ||