1 |
commit: ed1600475e8bcde7b0fe01bcdb621a5e6c8ba049 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 1 20:04:04 2018 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 2 15:01:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed160047 |
7 |
|
8 |
www-client/chromium: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/7329 |
11 |
|
12 |
www-client/chromium/files/chromium-gcc-r0.patch | 55 ---------- |
13 |
www-client/chromium/files/chromium-gcc-u2f.patch | 45 -------- |
14 |
www-client/chromium/files/chromium-vulkan-r0.patch | 120 --------------------- |
15 |
3 files changed, 220 deletions(-) |
16 |
|
17 |
diff --git a/www-client/chromium/files/chromium-gcc-r0.patch b/www-client/chromium/files/chromium-gcc-r0.patch |
18 |
deleted file mode 100644 |
19 |
index b0aaae8de55..00000000000 |
20 |
--- a/www-client/chromium/files/chromium-gcc-r0.patch |
21 |
+++ /dev/null |
22 |
@@ -1,55 +0,0 @@ |
23 |
-From 353219b1d808a8980af93eff5412ec2863557e35 Mon Sep 17 00:00:00 2001 |
24 |
-From: Jose Dapena Paz <jose.dapena@×××.com> |
25 |
-Date: Wed, 10 Jan 2018 15:34:25 +0000 |
26 |
-Subject: [PATCH] GCC fixes: avoid symbol collision between Element::ComputedAccessibleNode and ComputedAccessibleNode. |
27 |
- |
28 |
-GCC at least fails to compile if the method has the same name of the class. To avoid |
29 |
-this we rename the getter method to be prefixed with Get. |
30 |
- |
31 |
-Change-Id: I7f7ac2ecf0947718f72e78ccef019c3239c9b921 |
32 |
-Reviewed-on: https://chromium-review.googlesource.com/857716 |
33 |
-Reviewed-by: Daniel Cheng <dcheng@××××××××.org> |
34 |
-Reviewed-by: Hayato Ito <hayato@××××××××.org> |
35 |
-Commit-Queue: José Dapena Paz <jose.dapena@×××.com> |
36 |
-Cr-Commit-Position: refs/heads/master@{#528322} |
37 |
---- |
38 |
- |
39 |
-diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
40 |
-index 4f50b7d..d0fa7b1 100644 |
41 |
---- a/third_party/WebKit/Source/core/dom/Element.cpp |
42 |
-+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
43 |
-@@ -1276,7 +1276,7 @@ |
44 |
- return rare_data.EnsureAccessibleNode(this); |
45 |
- } |
46 |
- |
47 |
--ComputedAccessibleNode* Element::ComputedAccessibleNode() { |
48 |
-+ComputedAccessibleNode* Element::GetComputedAccessibleNode() { |
49 |
- if (!RuntimeEnabledFeatures::AccessibilityObjectModelEnabled()) |
50 |
- return nullptr; |
51 |
- |
52 |
-diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h |
53 |
-index 733596b..986e31a 100644 |
54 |
---- a/third_party/WebKit/Source/core/dom/Element.h |
55 |
-+++ b/third_party/WebKit/Source/core/dom/Element.h |
56 |
-@@ -295,7 +295,7 @@ |
57 |
- AccessibleNode* ExistingAccessibleNode() const; |
58 |
- AccessibleNode* accessibleNode(); |
59 |
- |
60 |
-- ComputedAccessibleNode* ComputedAccessibleNode(); |
61 |
-+ ComputedAccessibleNode* GetComputedAccessibleNode(); |
62 |
- |
63 |
- void DidMoveToNewDocument(Document&) override; |
64 |
- |
65 |
-diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
66 |
-index 642f55f..f6a8d8e 100644 |
67 |
---- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
68 |
-+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
69 |
-@@ -1110,7 +1110,7 @@ |
70 |
- Element* element) { |
71 |
- DCHECK(element); |
72 |
- ComputedAccessibleNode* computed_accessible_node = |
73 |
-- element->ComputedAccessibleNode(); |
74 |
-+ element->GetComputedAccessibleNode(); |
75 |
- return computed_accessible_node->ComputePromiseProperty(script_state); |
76 |
- } |
77 |
- |
78 |
|
79 |
diff --git a/www-client/chromium/files/chromium-gcc-u2f.patch b/www-client/chromium/files/chromium-gcc-u2f.patch |
80 |
deleted file mode 100644 |
81 |
index 20608da58d0..00000000000 |
82 |
--- a/www-client/chromium/files/chromium-gcc-u2f.patch |
83 |
+++ /dev/null |
84 |
@@ -1,45 +0,0 @@ |
85 |
-From ee7f5ecc3b869660ded9882a9904cc7c6db7dc0d Mon Sep 17 00:00:00 2001 |
86 |
-From: Jose Dapena Paz <jose.dapena@×××.com> |
87 |
-Date: Tue, 19 Dec 2017 19:25:00 +0000 |
88 |
-Subject: [PATCH] GCC build: workaround GCC bad "this" handling on lambda by |
89 |
- not using lambda. |
90 |
-MIME-Version: 1.0 |
91 |
-Content-Type: text/plain; charset=UTF-8 |
92 |
-Content-Transfer-Encoding: 8bit |
93 |
- |
94 |
-This is a workaround for the bug in GCC "Inconsistent `this->` |
95 |
-required when calling member function in a lambda |
96 |
-capturing `this` through another function" |
97 |
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67274 |
98 |
- |
99 |
-This fix just replaces the foreach call using lambda with a |
100 |
-regular C++ for-each-like for (:) construct in u2f discovery. |
101 |
- |
102 |
-Change-Id: I9ddf212a7687e02cd7d2d2b43cf76e21dd5dada2 |
103 |
-Reviewed-on: https://chromium-review.googlesource.com/833886 |
104 |
-Reviewed-by: Jan Wilken Dörrie <jdoerrie@××××××××.org> |
105 |
-Commit-Queue: José Dapena Paz <jose.dapena@×××.com> |
106 |
-Cr-Commit-Position: refs/heads/master@{#525104} |
107 |
---- |
108 |
- device/u2f/u2f_hid_discovery.cc | 5 ++--- |
109 |
- 1 file changed, 2 insertions(+), 3 deletions(-) |
110 |
- |
111 |
-diff --git a/device/u2f/u2f_hid_discovery.cc b/device/u2f/u2f_hid_discovery.cc |
112 |
-index 0695778d2aab..6c4e71179ce7 100644 |
113 |
---- a/device/u2f/u2f_hid_discovery.cc |
114 |
-+++ b/device/u2f/u2f_hid_discovery.cc |
115 |
-@@ -55,9 +55,8 @@ void U2fHidDiscovery::DeviceRemoved( |
116 |
- |
117 |
- void U2fHidDiscovery::OnGetDevices( |
118 |
- std::vector<device::mojom::HidDeviceInfoPtr> device_infos) { |
119 |
-- std::for_each( |
120 |
-- device_infos.begin(), device_infos.end(), |
121 |
-- [this](auto& device_info) { DeviceAdded(std::move(device_info)); }); |
122 |
-+ for (auto& device_info : device_infos) |
123 |
-+ DeviceAdded(std::move(device_info)); |
124 |
- NotifyDiscoveryStarted(true); |
125 |
- } |
126 |
- |
127 |
--- |
128 |
-2.15.1 |
129 |
- |
130 |
|
131 |
diff --git a/www-client/chromium/files/chromium-vulkan-r0.patch b/www-client/chromium/files/chromium-vulkan-r0.patch |
132 |
deleted file mode 100644 |
133 |
index 4553bb76667..00000000000 |
134 |
--- a/www-client/chromium/files/chromium-vulkan-r0.patch |
135 |
+++ /dev/null |
136 |
@@ -1,120 +0,0 @@ |
137 |
-From 949b4f07fd1ef5b208136fe38327c28c95f18928 Mon Sep 17 00:00:00 2001 |
138 |
-From: Jamie Madill <jmadill@××××××××.org> |
139 |
-Date: Mon, 08 Jan 2018 11:15:38 -0500 |
140 |
-Subject: [PATCH] Vulkan: Allow for no .git directory in build. |
141 |
- |
142 |
-The SPIRV-Tools 'external revision generate' script is coded such that |
143 |
-it assumes a .git folder is present. This causes a problem for the |
144 |
-tarball build. We can fix this by using the same tooling we use for |
145 |
-ANGLE's commit id script to check if the .git directory is present |
146 |
-before running the generator. If it is missing, we insert a hard-coded |
147 |
-dummy header. Also use the 'DEPS' file as a placeholder for .git/HEAD |
148 |
-to check if the current revision needs updating. |
149 |
- |
150 |
-Bug: chromium:799620 |
151 |
-Bug: angleproject:2237 |
152 |
-Change-Id: Icea8e9c66f1600df7dca2aaa45fe449f687f5b55 |
153 |
-Reviewed-on: https://chromium-review.googlesource.com/854255 |
154 |
-Reviewed-by: Jamie Madill <jmadill@××××××××.org> |
155 |
-Commit-Queue: Jamie Madill <jmadill@××××××××.org> |
156 |
---- |
157 |
- |
158 |
-diff --git a/third_party/angle/src/commit_id.py b/third_party/angle/src/commit_id.py |
159 |
-index bbdb810..57651a5 100644 |
160 |
---- a/third_party/angle/src/commit_id.py |
161 |
-+++ b/third_party/angle/src/commit_id.py |
162 |
-@@ -23,6 +23,9 @@ |
163 |
- print("0") |
164 |
- sys.exit(0) |
165 |
- |
166 |
-+if len(sys.argv) < 4 or operation != 'gen': |
167 |
-+ sys.exit(usage) |
168 |
-+ |
169 |
- output_file = sys.argv[3] |
170 |
- commit_id_size = 12 |
171 |
- |
172 |
-diff --git a/third_party/angle/src/vulkan_support/BUILD.gn b/third_party/angle/src/vulkan_support/BUILD.gn |
173 |
-index fe61826..24f5a3a 100644 |
174 |
---- a/third_party/angle/src/vulkan_support/BUILD.gn |
175 |
-+++ b/third_party/angle/src/vulkan_support/BUILD.gn |
176 |
-@@ -145,21 +145,40 @@ |
177 |
- } |
178 |
- } |
179 |
- |
180 |
--# This could be generalized to a foreach if other revisions are added. |
181 |
--action("spirv_tools_external_revision_generate") { |
182 |
-- script = "$vulkan_layers_dir/scripts/external_revision_generator.py" |
183 |
-- inputs = [ |
184 |
-- "$spirv_tools_dir/.git/HEAD", |
185 |
-- "$spirv_tools_dir/.git/index", |
186 |
-- ] |
187 |
-- outputs = [ |
188 |
-- "$vulkan_gen_dir/spirv_tools_commit_id.h", |
189 |
-- ] |
190 |
-- args = [ |
191 |
-- "$raw_spirv_tools_dir", |
192 |
-- "SPIRV_TOOLS_COMMIT_ID", |
193 |
-- "$raw_vulkan_gen_dir/spirv_tools_commit_id.h", |
194 |
-- ] |
195 |
-+spirv_git_is_present = exec_script("$angle_root/src/commit_id.py", |
196 |
-+ [ |
197 |
-+ "check", |
198 |
-+ raw_spirv_tools_dir, |
199 |
-+ ], |
200 |
-+ "value") |
201 |
-+ |
202 |
-+spirv_use_commit_id = spirv_git_is_present == 1 |
203 |
-+ |
204 |
-+if (spirv_use_commit_id) { |
205 |
-+ # This could be generalized to a foreach if other revisions are added. |
206 |
-+ action("spirv_tools_external_revision_generate") { |
207 |
-+ script = "$vulkan_layers_dir/scripts/external_revision_generator.py" |
208 |
-+ inputs = [ |
209 |
-+ "$angle_root/DEPS", |
210 |
-+ ] |
211 |
-+ outputs = [ |
212 |
-+ "$vulkan_gen_dir/spirv_tools_commit_id.h", |
213 |
-+ ] |
214 |
-+ args = [ |
215 |
-+ "$raw_spirv_tools_dir", |
216 |
-+ "SPIRV_TOOLS_COMMIT_ID", |
217 |
-+ "$raw_vulkan_gen_dir/spirv_tools_commit_id.h", |
218 |
-+ ] |
219 |
-+ } |
220 |
-+} else { |
221 |
-+ copy("spirv_tools_external_revision_generate") { |
222 |
-+ sources = [ |
223 |
-+ "dummy_spirv_tools_commit_id.h", |
224 |
-+ ] |
225 |
-+ outputs = [ |
226 |
-+ "$vulkan_gen_dir/spirv_tools_commit_id.h", |
227 |
-+ ] |
228 |
-+ } |
229 |
- } |
230 |
- |
231 |
- config("vulkan_generate_helper_files_config") { |
232 |
-@@ -864,7 +883,7 @@ |
233 |
- sources += [ "$vulkan_layers_dir/layers/VkLayer_$name.def" ] |
234 |
- } |
235 |
- if (is_linux) { |
236 |
-- ldflags = [ "-Wl,-Bsymbolic,--exclude-libs,ALL" ] |
237 |
-+ ldflags = [ "-Wl,-Bsymbolic,--exclude-libs,ALL" ] |
238 |
- } |
239 |
- } |
240 |
- } |
241 |
-diff --git a/third_party/angle/src/vulkan_support/dummy_spirv_tools_commit_id.h b/third_party/angle/src/vulkan_support/dummy_spirv_tools_commit_id.h |
242 |
-new file mode 100644 |
243 |
-index 0000000..e1793bd |
244 |
---- /dev/null |
245 |
-+++ b/third_party/angle/src/vulkan_support/dummy_spirv_tools_commit_id.h |
246 |
-@@ -0,0 +1,10 @@ |
247 |
-+// |
248 |
-+// Copyright 2018 The ANGLE Project Authors. All rights reserved. |
249 |
-+// Use of this source code is governed by a BSD-style license that can be |
250 |
-+// found in the LICENSE file. |
251 |
-+// |
252 |
-+// This file is a dummy file to enable building SPIRV tools when git is absent. |
253 |
-+ |
254 |
-+#pragma once |
255 |
-+ |
256 |
-+#define SPIRV_TOOLS_COMMIT_ID "0000000000000000000000000000000000000000" |