Gentoo Archives: gentoo-commits

From: Stephan Hartmann <sultan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/, www-client/chromium/files/
Date: Fri, 08 Apr 2022 12:28:57
Message-Id: 1649420925.80573012dd89ca319af9bcba9465383bb85e40d8.sultan@gentoo
1 commit: 80573012dd89ca319af9bcba9465383bb85e40d8
2 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 12:28:23 2022 +0000
4 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 12:28:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80573012
7
8 www-client/chromium: dev channel bump to 102.0.4987.0
9
10 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>
11
12 www-client/chromium/Manifest | 4 +-
13 ....4972.0.ebuild => chromium-102.0.4987.0.ebuild} | 4 +-
14 .../chromium/files/chromium-102-dawn-revert.patch | 268 +++++++++++++++++++++
15 3 files changed, 272 insertions(+), 4 deletions(-)
16
17 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
18 index 903ff9cfe59b..c336cf8ef20c 100644
19 --- a/www-client/chromium/Manifest
20 +++ b/www-client/chromium/Manifest
21 @@ -4,5 +4,5 @@ DIST chromium-100.0.4896.60.tar.xz 1357922968 BLAKE2B a4efa2d4a6bfed6a20552b8cd9
22 DIST chromium-100.0.4896.75.tar.xz 1358118152 BLAKE2B a7747bd1a3ea4e2cab313c139ed68726a253c5b5c71c7b9817aeac94eb9ba167bc28a7c6d498e719c62b4054583c56aa2f2c45ce4351ee3437995393919712ef SHA512 df066ee1a9f8ae324c6ab0d788e01e5d30a9d30148c45f88b270dc00246d34d74a760e7ae6eb8490c4d688ad2d7b8f00d604bb0a260dd3fb7bfc80d3a987958e
23 DIST chromium-101-patchset-4.tar.xz 3644 BLAKE2B 537be42d078338afc46fb8f358afecffdeea11ffc76d391a2c8785cee343bcde5de4d3c2a4102e2cd90a7331bf561c54b7e0c390e21785db3821d3cd39fcb080 SHA512 19370a96f1f3edcf4d529038dedfdc1bc680e6265832bf5b3d0a86f6dbc6784d34dd861ad39c328d4755e21966d19614cbd2f7719af2981abe2c7d8e0e985a78
24 DIST chromium-101.0.4951.26.tar.xz 1401081820 BLAKE2B 395b381bccffd6072ca93d84f422c65c220813a7e153e09635fbf55417bc287613b305ab8355941c01e3d448d3680db6b5beac4fdf7a261738d6dd6530b7e27d SHA512 e22ac973f5093b8cb992587897be5ad79963a541e4aca56c2f36d26dd99370030413363371946f1faa50fd8adc53e42b50b99633c7704e2c39c24e6f49477a85
25 -DIST chromium-102-patchset-1.tar.xz 3804 BLAKE2B 099109dab19ef3e45a1927a893b5d5484d8743458b2027b3cc3aad644f970bbd3fafc2d56f958b33c52b8aaa42f5498ffd4a73baf82374e73e3aaa7deebbefe2 SHA512 1411050d819034e1eeee2918cd8d5daf29982e7a3965d1f0cd9833dfddd488108aa38780f459ec0abc7d5b5dfa395e3f464a3555d6208908966e0c23fb4af01f
26 -DIST chromium-102.0.4972.0.tar.xz 1405292324 BLAKE2B 470dc49986b34b7c8c8759a44ab28b5ee562fce6999ec1456a357d16c2fd0239f734937caef658363b04e1e6889410b4d1773325c120545a7537c640c66e6ae2 SHA512 b4e39297c42a51cf7ab52c8022191434bcd583a1ee3b56a6e5dcce9e0c9d3dfd6f12cb09efb1562efb9b29770af7fe930d850eb31a551e7bf41507cec7757167
27 +DIST chromium-102-patchset-2.tar.xz 3548 BLAKE2B ebcdde1e72cfa21d1d5b1e8edcf06b2145a4c892cae5aa5a79c9196d18c7897d5c97da1cead0f421c39258702557464ef0aa0dee3eb7c9e162b18119ae6f75c5 SHA512 98c01231a2965965ec4d4017812ec0c95bdb9c7c5d27e127060d2f24eb1c19b0b82c64367102f191496c55a819da98c76085c88b672b37e5e4c489b60e15de67
28 +DIST chromium-102.0.4987.0.tar.xz 1427741816 BLAKE2B 5de977daa1d585dcb8ba88293f25dbec64b885d32d44a54ec53b48ae5aa01f4e9019d42f700a4f8f9ac98a892014c9b5e1149eff65562599078b92b3ed18909c SHA512 196c70e36517bcfc3b1fe79844a6bb5904d0863cd6db78477b83d2070b57075663081dfd709a82a71b661781899239870cbcb0b5c52dfda714ed0df3264250cd
29
30 diff --git a/www-client/chromium/chromium-102.0.4972.0.ebuild b/www-client/chromium/chromium-102.0.4987.0.ebuild
31 similarity index 99%
32 rename from www-client/chromium/chromium-102.0.4972.0.ebuild
33 rename to www-client/chromium/chromium-102.0.4987.0.ebuild
34 index 504055107716..b24042a4eb88 100644
35 --- a/www-client/chromium/chromium-102.0.4972.0.ebuild
36 +++ b/www-client/chromium/chromium-102.0.4987.0.ebuild
37 @@ -13,7 +13,7 @@ inherit check-reqs chromium-2 desktop flag-o-matic ninja-utils pax-utils python-
38
39 DESCRIPTION="Open-source version of Google Chrome web browser"
40 HOMEPAGE="https://chromium.org/"
41 -PATCHSET="1"
42 +PATCHSET="2"
43 PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
44 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
45 https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz"
46 @@ -247,6 +247,7 @@ src_prepare() {
47 "${FILESDIR}/chromium-98-EnumTable-crash.patch"
48 "${FILESDIR}/chromium-98-gtk4-build.patch"
49 "${FILESDIR}/chromium-101-libxml-unbundle.patch"
50 + "${FILESDIR}/chromium-102-dawn-revert.patch"
51 "${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch"
52 "${FILESDIR}/chromium-shim_headers.patch"
53 "${FILESDIR}/chromium-cross-compile.patch"
54 @@ -468,7 +469,6 @@ src_prepare() {
55 third_party/six
56 third_party/ukey2
57 third_party/unrar
58 - third_party/usrsctp
59 third_party/utf
60 third_party/vulkan
61 third_party/web-animations-js
62
63 diff --git a/www-client/chromium/files/chromium-102-dawn-revert.patch b/www-client/chromium/files/chromium-102-dawn-revert.patch
64 new file mode 100644
65 index 000000000000..6e77207b4813
66 --- /dev/null
67 +++ b/www-client/chromium/files/chromium-102-dawn-revert.patch
68 @@ -0,0 +1,268 @@
69 +diff --git a/third_party/dawn/generator/dawn_generator.gni b/third_party/dawn/generator/dawn_generator.gni
70 +index 28c5301..fb7e639 100644
71 +--- a/third_party/dawn/generator/dawn_generator.gni
72 ++++ b/third_party/dawn/generator/dawn_generator.gni
73 +@@ -39,7 +39,6 @@ import("generator_lib.gni")
74 +
75 + dawn_allowed_gen_output_dirs = [
76 + "src/dawn/",
77 +- "src/dawn/common/",
78 + "src/dawn/native/",
79 + "src/dawn/native/opengl/",
80 + "src/dawn/wire/client/",
81 +diff --git a/third_party/dawn/generator/dawn_version_generator.py b/third_party/dawn/generator/dawn_version_generator.py
82 +deleted file mode 100644
83 +index 462cb31..0000000
84 +--- a/third_party/dawn/generator/dawn_version_generator.py
85 ++++ /dev/null
86 +@@ -1,105 +0,0 @@
87 +-#!/usr/bin/env python3
88 +-# Copyright 2022 The Dawn Authors
89 +-#
90 +-# Licensed under the Apache License, Version 2.0 (the "License");
91 +-# you may not use this file except in compliance with the License.
92 +-# You may obtain a copy of the License at
93 +-#
94 +-# http://www.apache.org/licenses/LICENSE-2.0
95 +-#
96 +-# Unless required by applicable law or agreed to in writing, software
97 +-# distributed under the License is distributed on an "AS IS" BASIS,
98 +-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
99 +-# See the License for the specific language governing permissions and
100 +-# limitations under the License.
101 +-
102 +-import os, subprocess, sys
103 +-
104 +-from generator_lib import Generator, run_generator, FileRender
105 +-
106 +-
107 +-def get_git():
108 +- return 'git.bat' if sys.platform == 'win32' else 'git'
109 +-
110 +-
111 +-def get_gitHash(dawnDir):
112 +- result = subprocess.run([get_git(), 'rev-parse', 'HEAD'],
113 +- stdout=subprocess.PIPE,
114 +- cwd=dawnDir)
115 +- if result.returncode == 0:
116 +- return result.stdout.decode('utf-8').strip()
117 +- return ''
118 +-
119 +-
120 +-def get_gitHead(dawnDir):
121 +- return [os.path.join(dawnDir, '.git', 'HEAD')]
122 +-
123 +-
124 +-def unpackGitRef(packed, resolved):
125 +- with open(packed) as fin:
126 +- refs = fin.read().strip().split('\n')
127 +-
128 +- # Strip comments
129 +- refs = [ref.split(' ') for ref in refs if ref.strip()[0] != '#']
130 +-
131 +- # Parse results which are in the format [<gitHash>, <refFile>] from previous step.
132 +- refs = [gitHash for (gitHash, refFile) in refs if refFile == resolved]
133 +- if len(refs) == 1:
134 +- with open(resolved, 'w') as fout:
135 +- fout.write(refs[0] + '\n')
136 +- return True
137 +- return False
138 +-
139 +-
140 +-def get_gitResolvedHead(dawnDir):
141 +- result = subprocess.run(
142 +- [get_git(), 'rev-parse', '--symbolic-full-name', 'HEAD'],
143 +- stdout=subprocess.PIPE,
144 +- cwd=dawnDir)
145 +- if result.returncode != 0:
146 +- raise Exception('Failed to execute git rev-parse to resolve git head.')
147 +-
148 +- resolved = os.path.join(dawnDir, '.git',
149 +- result.stdout.decode('utf-8').strip())
150 +-
151 +- # Check a packed-refs file exists. If so, we need to potentially unpack and include it as a dep.
152 +- packed = os.path.join(dawnDir, '.git', 'packed-refs')
153 +- if os.path.exists(packed) and unpackGitRef(packed, resolved):
154 +- return [packed, resolved]
155 +-
156 +- if not os.path.exists(resolved):
157 +- raise Exception('Unable to resolve git HEAD hash file:', path)
158 +- return [resolved]
159 +-
160 +-
161 +-def compute_params(args):
162 +- return {
163 +- 'get_gitHash': lambda: get_gitHash(os.path.abspath(args.dawn_dir)),
164 +- }
165 +-
166 +-
167 +-class DawnVersionGenerator(Generator):
168 +- def get_description(self):
169 +- return 'Generates version dependent Dawn code. Currently regenerated dependent on git hash.'
170 +-
171 +- def add_commandline_arguments(self, parser):
172 +- parser.add_argument('--dawn-dir',
173 +- required=True,
174 +- type=str,
175 +- help='The Dawn root directory path to use')
176 +-
177 +- def get_dependencies(self, args):
178 +- dawn_dir = os.path.abspath(args.dawn_dir)
179 +- return get_gitHead(dawn_dir) + get_gitResolvedHead(dawn_dir)
180 +-
181 +- def get_file_renders(self, args):
182 +- params = compute_params(args)
183 +-
184 +- return [
185 +- FileRender('dawn/common/Version.h',
186 +- 'src/dawn/common/Version_autogen.h', [params]),
187 +- ]
188 +-
189 +-
190 +-if __name__ == '__main__':
191 +- sys.exit(run_generator(DawnVersionGenerator()))
192 +diff --git a/third_party/dawn/generator/templates/dawn/common/Version.h b/third_party/dawn/generator/templates/dawn/common/Version.h
193 +deleted file mode 100644
194 +index f9f67e7..0000000
195 +--- a/third_party/dawn/generator/templates/dawn/common/Version.h
196 ++++ /dev/null
197 +@@ -1,24 +0,0 @@
198 +-// Copyright 2022 The Dawn Authors
199 +-//
200 +-// Licensed under the Apache License, Version 2.0 (the "License");
201 +-// you may not use this file except in compliance with the License.
202 +-// You may obtain a copy of the License at
203 +-//
204 +-// http://www.apache.org/licenses/LICENSE-2.0
205 +-//
206 +-// Unless required by applicable law or agreed to in writing, software
207 +-// distributed under the License is distributed on an "AS IS" BASIS,
208 +-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209 +-// See the License for the specific language governing permissions and
210 +-// limitations under the License.
211 +-
212 +-#ifndef COMMON_VERISON_AUTOGEN_H_
213 +-#define COMMON_VERISON_AUTOGEN_H_
214 +-
215 +-namespace dawn {
216 +-
217 +-static constexpr char kGitHash[] = "{{get_gitHash()}}";
218 +-
219 +-} // namespace dawn
220 +-
221 +-#endif // COMMON_VERISON_AUTOGEN_H_
222 +diff --git a/third_party/dawn/src/dawn/common/BUILD.gn b/third_party/dawn/src/dawn/common/BUILD.gn
223 +index d09999d..8a15f02 100644
224 +--- a/third_party/dawn/src/dawn/common/BUILD.gn
225 ++++ b/third_party/dawn/src/dawn/common/BUILD.gn
226 +@@ -15,7 +15,6 @@
227 + import("../../../scripts/dawn_overrides_with_defaults.gni")
228 +
229 + import("//build_overrides/build.gni")
230 +-import("${dawn_root}/generator/dawn_generator.gni")
231 + import("${dawn_root}/scripts/dawn_features.gni")
232 +
233 + # Use Chromium's dcheck_always_on when available so that we respect it when
234 +@@ -168,15 +167,6 @@ config("internal_config") {
235 + # Common dawn library
236 + ###############################################################################
237 +
238 +-dawn_generator("dawn_version_gen") {
239 +- script = "${dawn_root}/generator/dawn_version_generator.py"
240 +- args = [
241 +- "--dawn-dir",
242 +- rebase_path("${dawn_root}", root_build_dir),
243 +- ]
244 +- outputs = [ "src/dawn/common/Version_autogen.h" ]
245 +-}
246 +-
247 + # This GN file is discovered by all Chromium builds, but common doesn't support
248 + # all of Chromium's OSes so we explicitly make the target visible only on
249 + # systems we know Dawn is able to compile on.
250 +@@ -233,8 +223,6 @@ if (is_win || is_linux || is_chromeos || is_mac || is_fuchsia || is_android) {
251 + "xlib_with_undefs.h",
252 + ]
253 +
254 +- public_deps = [ ":dawn_version_gen" ]
255 +-
256 + if (is_mac) {
257 + sources += [ "SystemUtils_mac.mm" ]
258 + }
259 +@@ -253,7 +241,7 @@ if (is_win || is_linux || is_chromeos || is_mac || is_fuchsia || is_android) {
260 + ]
261 + }
262 + if (dawn_enable_vulkan) {
263 +- public_deps += [ "${dawn_root}/third_party/khronos:vulkan_headers" ]
264 ++ public_deps = [ "${dawn_root}/third_party/khronos:vulkan_headers" ]
265 + }
266 + if (is_android) {
267 + libs = [ "log" ]
268 +diff --git a/third_party/dawn/src/dawn/common/CMakeLists.txt b/third_party/dawn/src/dawn/common/CMakeLists.txt
269 +index 1c28e71..d839d84 100644
270 +--- a/third_party/dawn/src/dawn/common/CMakeLists.txt
271 ++++ b/third_party/dawn/src/dawn/common/CMakeLists.txt
272 +@@ -12,17 +12,8 @@
273 + # See the License for the specific language governing permissions and
274 + # limitations under the License.
275 +
276 +-DawnGenerator(
277 +- SCRIPT "${Dawn_SOURCE_DIR}/generator/dawn_version_generator.py"
278 +- PRINT_NAME "Dawn version based utilities"
279 +- ARGS "--dawn-dir"
280 +- "${Dawn_SOURCE_DIR}"
281 +- RESULT_VARIABLE "DAWN_VERSION_AUTOGEN_SOURCES"
282 +-)
283 +-
284 + add_library(dawn_common STATIC ${DAWN_DUMMY_FILE})
285 + target_sources(dawn_common PRIVATE
286 +- ${DAWN_VERSION_AUTOGEN_SOURCES}
287 + "Alloc.h"
288 + "Assert.cpp"
289 + "Assert.h"
290 +diff --git a/third_party/dawn/src/dawn/tests/BUILD.gn b/third_party/dawn/src/dawn/tests/BUILD.gn
291 +index 0951b9b..990b5b9 100644
292 +--- a/third_party/dawn/src/dawn/tests/BUILD.gn
293 ++++ b/third_party/dawn/src/dawn/tests/BUILD.gn
294 +@@ -238,7 +238,6 @@ dawn_test("dawn_unittests") {
295 + "unittests/SystemUtilsTests.cpp",
296 + "unittests/ToBackendTests.cpp",
297 + "unittests/TypedIntegerTests.cpp",
298 +- "unittests/VersionTests.cpp",
299 + "unittests/native/CacheKeyTests.cpp",
300 + "unittests/native/CommandBufferEncodingTests.cpp",
301 + "unittests/native/CreatePipelineAsyncTaskTests.cpp",
302 +diff --git a/third_party/dawn/src/dawn/tests/unittests/VersionTests.cpp b/third_party/dawn/src/dawn/tests/unittests/VersionTests.cpp
303 +deleted file mode 100644
304 +index 60172a7..0000000
305 +--- a/third_party/dawn/src/dawn/tests/unittests/VersionTests.cpp
306 ++++ /dev/null
307 +@@ -1,29 +0,0 @@
308 +-// Copyright 2022 The Dawn Authors
309 +-//
310 +-// Licensed under the Apache License, Version 2.0 (the "License");
311 +-// you may not use this file except in compliance with the License.
312 +-// You may obtain a copy of the License at
313 +-//
314 +-// http://www.apache.org/licenses/LICENSE-2.0
315 +-//
316 +-// Unless required by applicable law or agreed to in writing, software
317 +-// distributed under the License is distributed on an "AS IS" BASIS,
318 +-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
319 +-// See the License for the specific language governing permissions and
320 +-// limitations under the License.
321 +-
322 +-#include <gmock/gmock.h>
323 +-#include <gtest/gtest.h>
324 +-
325 +-#include "dawn/common/Version_autogen.h"
326 +-
327 +-namespace dawn { namespace {
328 +-
329 +- using ::testing::SizeIs;
330 +-
331 +- TEST(VersionTests, GitCommitHashLength) {
332 +- // Git hashes should be 40 characters long.
333 +- EXPECT_THAT(std::string(kGitHash), SizeIs(40));
334 +- }
335 +-
336 +-}} // namespace dawn::