summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2017-11-08 15:19:51 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2017-11-08 13:43:23 +0000
commite7aad4d4cd29bb8912c40abe8cf2c0a1bac36283 (patch)
tree348653625f735e4c6eb1512bec0eb456f858dab7
parentd27de8ecd0308b548739f82cb8e1982d31c84085 (diff)
downloadmeta-qt5-e7aad4d4cd29bb8912c40abe8cf2c0a1bac36283.tar.gz
qtwebengine: remove patches that are no longer used
These were renamed in upstream changed and left here by mistake. Change-Id: I0c1225ecb808fda625c398f72772ec842032b872 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch97
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch42
2 files changed, 0 insertions, 139 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch b/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch
deleted file mode 100644
index 148b0629..00000000
--- a/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch
+++ /dev/null
@@ -1,97 +0,0 @@
1From e7d1e5dfdece59f247a1d71ad0ca1b0c8cadda21 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Wed, 15 Mar 2017 13:53:28 +0200
4Subject: [PATCH] Force host toolchain configuration
5
6Force gcc/g++ to be used for parts using host toolchain, since
7the option(host_build) does not work in yocto builds.
8
9Don't use QT_ARCH for the host architecture, since that's always
10the target architecture in bitbake builds, instead ask specifically
11for the qmakes's host architecture.
12
13Change-Id: I38329d545e527dbc5892547b6951822171ab761f
14Upstream-Status: Inappropriate [OE specific]
15Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
16---
17 src/buildtools/configure_host.pro | 14 +++++++-------
18 src/core/config/linux.pri | 2 +-
19 2 files changed, 8 insertions(+), 8 deletions(-)
20
21diff --git a/src/buildtools/configure_host.pro b/src/buildtools/configure_host.pro
22index f1b3d47..1212372 100644
23--- a/src/buildtools/configure_host.pro
24+++ b/src/buildtools/configure_host.pro
25@@ -4,7 +4,7 @@ TEMPLATE = aux
26 # Pick up the host toolchain
27 option(host_build)
28
29-GN_HOST_CPU = $$gnArch($$QT_ARCH)
30+GN_HOST_CPU = $$gnArch($$QMAKE_HOST.arch)
31 !isEmpty(QT_TARGET_ARCH): GN_TARGET_CPU = $$gnArch($$QT_TARGET_ARCH)
32 else: GN_TARGET_CPU = $$GN_HOST_CPU
33 GN_OS = $$gnOS()
34@@ -29,9 +29,9 @@ GN_CONTENTS = \
35 "import(\"//build/config/sysroot.gni\")" \
36 "import(\"//build/toolchain/gcc_toolchain.gni\")" \
37 "gcc_toolchain(\"host\") {" \
38-" cc = \"$$which($$QMAKE_CC)\" " \
39-" cxx = \"$$which($$QMAKE_CXX)\" " \
40-" ld = \"$$which($$QMAKE_LINK)\" " \
41+" cc = \"$$which(gcc)\" " \
42+" cxx = \"$$which(g++)\" " \
43+" ld = \"$$which(g++)\" " \
44 " ar = \"$$which(ar)\" " \
45 " nm = \"$$which(nm)\" " \
46 " toolchain_args = { " \
47@@ -42,9 +42,9 @@ GN_CONTENTS = \
48 " } " \
49 "}" \
50 "gcc_toolchain(\"v8_snapshot\") {" \
51-" cc = \"$$which($$QMAKE_CC)\" " \
52-" cxx = \"$$which($$QMAKE_CXX)\" " \
53-" ld = \"$$which($$QMAKE_LINK)\" " \
54+" cc = \"$$which(gcc)\" " \
55+" cxx = \"$$which(g++)\" " \
56+" ld = \"$$which(g++)\" " \
57 " ar = \"$$which(ar)\" " \
58 " nm = \"$$which(nm)\" " \
59 " toolchain_args = { " \
60diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri
61index 714c864..f66ca55 100644
62--- a/src/core/config/linux.pri
63+++ b/src/core/config/linux.pri
64@@ -98,7 +98,7 @@ contains(QT_ARCH, "mips"):!host_build {
65
66 host_build {
67 gn_args += custom_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:host\"
68- GN_HOST_CPU = $$gnArch($$QT_ARCH)
69+ GN_HOST_CPU = $$gnArch($$QMAKE_HOST.arch)
70 gn_args += host_cpu=\"$$GN_HOST_CPU\"
71 # Don't bother trying to use system libraries in this case
72 gn_args += use_glib=false
73diff --git a/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py b/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
74index 75b9690..601f688 100755
75--- a/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
76+++ b/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
77@@ -298,14 +298,14 @@ def write_gn_ninja(path, root_gen_dir, options):
78 ld = os.environ.get('LD', 'link.exe')
79 ar = os.environ.get('AR', 'lib.exe')
80 else:
81- cc = os.environ.get('CC', 'cc')
82- cxx = os.environ.get('CXX', 'c++')
83+ cc = os.environ.get('CC_host', 'gcc')
84+ cxx = os.environ.get('CXX_host', 'g++')
85 ld = cxx
86- ar = os.environ.get('AR', 'ar')
87+ ar = os.environ.get('AR_host', 'ar')
88
89- cflags = os.environ.get('CFLAGS', '').split()
90- cflags_cc = os.environ.get('CXXFLAGS', '').split()
91- ldflags = os.environ.get('LDFLAGS', '').split()
92+ cflags = os.environ.get('CFLAGS_host', '').split()
93+ cflags_cc = os.environ.get('CXXFLAGS_host', '').split()
94+ ldflags = os.environ.get('LDFLAGS_host', '').split()
95 include_dirs = [root_gen_dir, SRC_ROOT]
96 libs = []
97
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
deleted file mode 100644
index 42ceeacf..00000000
--- a/recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From c72097e8790553771daf3231124c3fbe1a438379 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Thu, 30 Mar 2017 11:37:24 +0300
4Subject: [PATCH] chromium: workaround for too long .rps file name
5
6Ninja may fail when the build directory is too long:
7
8ninja: error: WriteFile(__third_party_WebKit_Source_bindings_modules_\
9interfaces_info_individual_modules__home_qt_work_build_build-nitrogen\
106x_tmp_work_cortexa9hf-neon-mx6qdl-poky-linux-gnueabi_qtwebengine_5.9\
11.0_gitAUTOINC_29afdb0a34_049134677a-r0_build_src_toolchain_target__ru\
12le.rsp): Unable to create file. File name too long
13
14Task-number: QTBUG-59769
15Change-Id: I73c5e64ae5174412be2a675e35b0b6047f2bf4c1
16---
17 src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc | 9 +++++++++
18 1 file changed, 9 insertions(+)
19
20diff --git a/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc b/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc
21index 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.