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: Tue, 05 Apr 2022 08:15:14
Message-Id: 1649146471.f0224834f4c1c17bd06bc66ef05f327e1fe26c66.sultan@gentoo
1 commit: f0224834f4c1c17bd06bc66ef05f327e1fe26c66
2 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 5 08:14:31 2022 +0000
4 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 5 08:14:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0224834
7
8 www-client/chromium: security cleanup
9
10 Bug: https://bugs.gentoo.org/836381
11 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>
12
13 www-client/chromium/Manifest | 2 -
14 www-client/chromium/chromium-99.0.4844.84.ebuild | 1013 --------------------
15 .../chromium/files/chromium-98-system-libdrm.patch | 34 -
16 .../chromium/files/chromium-glibc-2.34-r1.patch | 20 -
17 4 files changed, 1069 deletions(-)
18
19 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
20 index b7741cf49d5e..75e19083335c 100644
21 --- a/www-client/chromium/Manifest
22 +++ b/www-client/chromium/Manifest
23 @@ -5,5 +5,3 @@ DIST chromium-101-patchset-3.tar.xz 3236 BLAKE2B 6a190eb102a2d330a1224cd132f41ce
24 DIST chromium-101.0.4951.15.tar.xz 1400555704 BLAKE2B 2757239c9935af8c8b7a2ed973ed6f5e4c1fa36248ccdabd9c216409cd87ed28149cc38295284679e752789046aa74ea0394b682722592f177cd1d7d6b456a2a SHA512 008a94fa4fd06055bf98c3e49b934a410a34eeff06443ca5ee3b5daef9ac992364a6d362acd169861acd7b25bf64f5cdbbf8b9d751598dcfd47347e0b674d0f5
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-99-patchset-3.tar.xz 3912 BLAKE2B 79030156e81ebd6b3c348fb429e23d0c866059e047e7cdc0f656a1b1ee290f3afa8b358d0e1df18a86616a35a9a256e7432a5ab4e9b952c7a360aed871236659 SHA512 63d951cb3d17c1d02d9ddbee3a44aca000c5ba2f908012584944ce7fc435aebfe39b9628d4bd043df97c4dd7afa0ad614c65368ca759b64a84654126f06f9ea8
28 -DIST chromium-99.0.4844.84.tar.xz 1326587000 BLAKE2B 9a59f6f521ed9d1ad5d061f9cad4df969c163b532089a18215b0c92de263f838ae64358cc3c52eaf28843e1eedcfb4009d76cbfa1882f5985d2dc5e2e86365a2 SHA512 7d8bd7e03fc3c8f546f4b9d49fd0191a9b174f1eea4ea53673e0337dbe985ee56b31de132bf0b228ca741416f9b6aa707ee182021fc65df37b193aab75ab05cc
29
30 diff --git a/www-client/chromium/chromium-99.0.4844.84.ebuild b/www-client/chromium/chromium-99.0.4844.84.ebuild
31 deleted file mode 100644
32 index 74ee1e8d0757..000000000000
33 --- a/www-client/chromium/chromium-99.0.4844.84.ebuild
34 +++ /dev/null
35 @@ -1,1013 +0,0 @@
36 -# Copyright 2009-2022 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=8
40 -PYTHON_COMPAT=( python3_{8..10} )
41 -PYTHON_REQ_USE="xml"
42 -
43 -CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
44 - hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
45 - sv sw ta te th tr uk vi zh-CN zh-TW"
46 -
47 -inherit check-reqs chromium-2 desktop flag-o-matic ninja-utils pax-utils python-any-r1 readme.gentoo-r1 toolchain-funcs xdg-utils
48 -
49 -DESCRIPTION="Open-source version of Google Chrome web browser"
50 -HOMEPAGE="https://chromium.org/"
51 -PATCHSET="3"
52 -PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
53 -SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
54 - https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz"
55 -
56 -LICENSE="BSD"
57 -SLOT="0/stable"
58 -KEYWORDS="amd64 ~arm64 ~x86"
59 -IUSE="component-build cups cpu_flags_arm_neon debug gtk4 +hangouts headless +js-type-check kerberos libcxx +official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-harfbuzz +system-icu +system-png vaapi wayland widevine"
60 -REQUIRED_USE="
61 - component-build? ( !suid !libcxx )
62 - screencast? ( wayland )
63 -"
64 -
65 -COMMON_X_DEPEND="
66 - x11-libs/gdk-pixbuf:2
67 - x11-libs/libXcomposite:=
68 - x11-libs/libXcursor:=
69 - x11-libs/libXdamage:=
70 - x11-libs/libXfixes:=
71 - >=x11-libs/libXi-1.6.0:=
72 - x11-libs/libXrandr:=
73 - x11-libs/libXrender:=
74 - x11-libs/libXtst:=
75 - x11-libs/libxshmfence:=
76 - virtual/opengl
77 -"
78 -
79 -COMMON_SNAPSHOT_DEPEND="
80 - system-icu? ( >=dev-libs/icu-69.1:= )
81 - >=dev-libs/libxml2-2.9.4-r3:=[icu]
82 - dev-libs/nspr:=
83 - >=dev-libs/nss-3.26:=
84 - !libcxx? ( >=dev-libs/re2-0.2019.08.01:= )
85 - dev-libs/libxslt:=
86 - media-libs/fontconfig:=
87 - >=media-libs/freetype-2.11.0-r1:=
88 - system-harfbuzz? ( >=media-libs/harfbuzz-3:0=[icu(-)] )
89 - media-libs/libjpeg-turbo:=
90 - system-png? ( media-libs/libpng:=[-apng] )
91 - >=media-libs/libwebp-0.4.0:=
92 - media-libs/mesa:=[gbm(+)]
93 - >=media-libs/openh264-1.6.0:=
94 - sys-libs/zlib:=
95 - x11-libs/libdrm:=
96 - !headless? (
97 - dev-libs/glib:2
98 - >=media-libs/alsa-lib-1.0.19:=
99 - pulseaudio? ( media-sound/pulseaudio:= )
100 - sys-apps/pciutils:=
101 - kerberos? ( virtual/krb5 )
102 - vaapi? ( >=x11-libs/libva-2.7:=[X] )
103 - x11-libs/libX11:=
104 - x11-libs/libXext:=
105 - x11-libs/libxcb:=
106 - x11-libs/libxkbcommon:=
107 - wayland? (
108 - dev-libs/wayland:=
109 - screencast? ( media-video/pipewire:= )
110 - )
111 - )
112 -"
113 -
114 -COMMON_DEPEND="
115 - ${COMMON_SNAPSHOT_DEPEND}
116 - app-arch/bzip2:=
117 - dev-libs/expat:=
118 - system-ffmpeg? (
119 - >=media-video/ffmpeg-4.3:=
120 - || (
121 - media-video/ffmpeg[-samba]
122 - >=net-fs/samba-4.5.10-r1[-debug(-)]
123 - )
124 - >=media-libs/opus-1.3.1:=
125 - )
126 - net-misc/curl[ssl]
127 - sys-apps/dbus:=
128 - media-libs/flac:=
129 - sys-libs/zlib:=[minizip]
130 - !headless? (
131 - ${COMMON_X_DEPEND}
132 - >=app-accessibility/at-spi2-atk-2.26:2
133 - >=app-accessibility/at-spi2-core-2.26:2
134 - >=dev-libs/atk-2.26
135 - cups? ( >=net-print/cups-1.3.11:= )
136 - virtual/udev
137 - x11-libs/cairo:=
138 - x11-libs/pango:=
139 - )
140 -"
141 -RDEPEND="${COMMON_DEPEND}
142 - !headless? (
143 - || (
144 - x11-libs/gtk+:3[X,wayland?]
145 - gui-libs/gtk:4[X,wayland?]
146 - )
147 - )
148 - x11-misc/xdg-utils
149 - virtual/ttf-fonts
150 - selinux? ( sec-policy/selinux-chromium )
151 -"
152 -DEPEND="${COMMON_DEPEND}
153 - !headless? (
154 - gtk4? ( gui-libs/gtk:4[X,wayland?] )
155 - !gtk4? ( x11-libs/gtk+:3[X,wayland?] )
156 - )
157 -"
158 -BDEPEND="
159 - ${COMMON_SNAPSHOT_DEPEND}
160 - ${PYTHON_DEPS}
161 - $(python_gen_any_dep '
162 - dev-python/setuptools[${PYTHON_USEDEP}]
163 - ')
164 - >=app-arch/gzip-1.7
165 - libcxx? ( >=sys-devel/clang-12 )
166 - dev-lang/perl
167 - >=dev-util/gn-0.1807
168 - >=dev-util/gperf-3.0.3
169 - >=dev-util/ninja-1.7.2
170 - >=net-libs/nodejs-7.6.0[inspector]
171 - >=sys-devel/bison-2.4.3
172 - sys-devel/flex
173 - virtual/pkgconfig
174 - js-type-check? ( virtual/jre )
175 -"
176 -
177 -# These are intended for ebuild maintainer use to force clang if GCC is broken.
178 -: ${CHROMIUM_FORCE_CLANG=no}
179 -
180 -if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then
181 - BDEPEND+=" >=sys-devel/clang-12"
182 -fi
183 -
184 -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
185 - EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
186 -fi
187 -
188 -DISABLE_AUTOFORMATTING="yes"
189 -DOC_CONTENTS="
190 -Some web pages may require additional fonts to display properly.
191 -Try installing some of the following packages if some characters
192 -are not displayed properly:
193 -- media-fonts/arphicfonts
194 -- media-fonts/droid
195 -- media-fonts/ipamonafont
196 -- media-fonts/noto
197 -- media-fonts/ja-ipafonts
198 -- media-fonts/takao-fonts
199 -- media-fonts/wqy-microhei
200 -- media-fonts/wqy-zenhei
201 -
202 -To fix broken icons on the Downloads page, you should install an icon
203 -theme that covers the appropriate MIME types, and configure this as your
204 -GTK+ icon theme.
205 -
206 -For native file dialogs in KDE, install kde-apps/kdialog.
207 -
208 -To make password storage work with your desktop environment you may
209 -have install one of the supported credentials management applications:
210 -- app-crypt/libsecret (GNOME)
211 -- kde-frameworks/kwallet (KDE)
212 -If you have one of above packages installed, but don't want to use
213 -them in Chromium, then add --password-store=basic to CHROMIUM_FLAGS
214 -in /etc/chromium/default.
215 -"
216 -
217 -python_check_deps() {
218 - has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
219 -}
220 -
221 -pre_build_checks() {
222 - if [[ ${MERGE_TYPE} != binary ]]; then
223 - local -x CPP="$(tc-getCXX) -E"
224 - if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 9.2; then
225 - die "At least gcc 9.2 is required"
226 - fi
227 - if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || tc-is-clang || use libcxx; then
228 - tc-is-cross-compiler && CPP=${CBUILD}-clang++ || CPP=${CHOST}-clang++
229 - CPP+=" -E"
230 - if ! ver_test "$(clang-major-version)" -ge 12; then
231 - die "At least clang 12 is required"
232 - fi
233 - fi
234 - fi
235 -
236 - # Check build requirements, bug #541816 and bug #471810 .
237 - CHECKREQS_MEMORY="4G"
238 - CHECKREQS_DISK_BUILD="9G"
239 - tc-is-cross-compiler && CHECKREQS_DISK_BUILD="12G"
240 - if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then
241 - if use custom-cflags || use component-build; then
242 - CHECKREQS_DISK_BUILD="25G"
243 - fi
244 - if ! use component-build; then
245 - CHECKREQS_MEMORY="16G"
246 - fi
247 - fi
248 - check-reqs_pkg_setup
249 -}
250 -
251 -pkg_pretend() {
252 - pre_build_checks
253 -
254 - if use headless; then
255 - local headless_unused_flags=("cups" "kerberos" "pulseaudio" "vaapi" "wayland")
256 - for myiuse in ${headless_unused_flags[@]}; do
257 - use ${myiuse} && ewarn "Ignoring USE=${myiuse} since USE=headless is set."
258 - done
259 - fi
260 -}
261 -
262 -pkg_setup() {
263 - pre_build_checks
264 -
265 - chromium_suid_sandbox_check_kernel_config
266 -
267 - # nvidia-drivers does not work correctly with Wayland due to unsupported EGLStreams
268 - if use wayland && ! use headless && has_version "x11-drivers/nvidia-drivers"; then
269 - ewarn "Proprietary nVidia driver does not work with Wayland. You can disable"
270 - ewarn "Wayland by setting DISABLE_OZONE_PLATFORM=true in /etc/chromium/default."
271 - fi
272 -}
273 -
274 -src_prepare() {
275 - # Calling this here supports resumption via FEATURES=keepwork
276 - python_setup
277 -
278 - local PATCHES=(
279 - "${WORKDIR}/patches"
280 - "${FILESDIR}/chromium-93-InkDropHost-crash.patch"
281 - "${FILESDIR}/chromium-97-arm-tflite-cast.patch"
282 - "${FILESDIR}/chromium-98-EnumTable-crash.patch"
283 - "${FILESDIR}/chromium-98-system-libdrm.patch"
284 - "${FILESDIR}/chromium-98-gtk4-build.patch"
285 - "${FILESDIR}/chromium-glibc-2.34-r1.patch"
286 - "${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch"
287 - "${FILESDIR}/chromium-shim_headers.patch"
288 - "${FILESDIR}/chromium-cross-compile.patch"
289 - )
290 -
291 - default
292 -
293 - mkdir -p third_party/node/linux/node-linux-x64/bin || die
294 - ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die
295 -
296 - # adjust python interpreter version
297 - sed -i -e "s|\(^script_executable = \).*|\1\"${EPYTHON}\"|g" .gn || die
298 -
299 - local keeplibs=(
300 - base/third_party/cityhash
301 - base/third_party/double_conversion
302 - base/third_party/dynamic_annotations
303 - base/third_party/icu
304 - base/third_party/nspr
305 - base/third_party/superfasthash
306 - base/third_party/symbolize
307 - base/third_party/valgrind
308 - base/third_party/xdg_mime
309 - base/third_party/xdg_user_dirs
310 - buildtools/third_party/libc++
311 - buildtools/third_party/libc++abi
312 - chrome/third_party/mozilla_security_manager
313 - courgette/third_party
314 - net/third_party/mozilla_security_manager
315 - net/third_party/nss
316 - net/third_party/quic
317 - net/third_party/uri_template
318 - third_party/abseil-cpp
319 - third_party/angle
320 - third_party/angle/src/common/third_party/base
321 - third_party/angle/src/common/third_party/smhasher
322 - third_party/angle/src/common/third_party/xxhash
323 - third_party/angle/src/third_party/libXNVCtrl
324 - third_party/angle/src/third_party/trace_event
325 - third_party/angle/src/third_party/volk
326 - third_party/apple_apsl
327 - third_party/axe-core
328 - third_party/blink
329 - third_party/boringssl
330 - third_party/boringssl/src/third_party/fiat
331 - third_party/breakpad
332 - third_party/breakpad/breakpad/src/third_party/curl
333 - third_party/brotli
334 - third_party/catapult
335 - third_party/catapult/common/py_vulcanize/third_party/rcssmin
336 - third_party/catapult/common/py_vulcanize/third_party/rjsmin
337 - third_party/catapult/third_party/beautifulsoup4-4.9.3
338 - third_party/catapult/third_party/html5lib-1.1
339 - third_party/catapult/third_party/polymer
340 - third_party/catapult/third_party/six
341 - third_party/catapult/tracing/third_party/d3
342 - third_party/catapult/tracing/third_party/gl-matrix
343 - third_party/catapult/tracing/third_party/jpeg-js
344 - third_party/catapult/tracing/third_party/jszip
345 - third_party/catapult/tracing/third_party/mannwhitneyu
346 - third_party/catapult/tracing/third_party/oboe
347 - third_party/catapult/tracing/third_party/pako
348 - third_party/ced
349 - third_party/cld_3
350 - third_party/closure_compiler
351 - third_party/crashpad
352 - third_party/crashpad/crashpad/third_party/lss
353 - third_party/crashpad/crashpad/third_party/zlib
354 - third_party/crc32c
355 - third_party/cros_system_api
356 - third_party/dav1d
357 - third_party/dawn
358 - third_party/dawn/third_party/khronos
359 - third_party/dawn/third_party/tint
360 - third_party/depot_tools
361 - third_party/devscripts
362 - third_party/devtools-frontend
363 - third_party/devtools-frontend/src/front_end/third_party/acorn
364 - third_party/devtools-frontend/src/front_end/third_party/additional_readme_paths.json
365 - third_party/devtools-frontend/src/front_end/third_party/axe-core
366 - third_party/devtools-frontend/src/front_end/third_party/chromium
367 - third_party/devtools-frontend/src/front_end/third_party/codemirror
368 - third_party/devtools-frontend/src/front_end/third_party/diff
369 - third_party/devtools-frontend/src/front_end/third_party/i18n
370 - third_party/devtools-frontend/src/front_end/third_party/intl-messageformat
371 - third_party/devtools-frontend/src/front_end/third_party/lighthouse
372 - third_party/devtools-frontend/src/front_end/third_party/lit-html
373 - third_party/devtools-frontend/src/front_end/third_party/lodash-isequal
374 - third_party/devtools-frontend/src/front_end/third_party/marked
375 - third_party/devtools-frontend/src/front_end/third_party/puppeteer
376 - third_party/devtools-frontend/src/front_end/third_party/wasmparser
377 - third_party/devtools-frontend/src/test/unittests/front_end/third_party/i18n
378 - third_party/devtools-frontend/src/third_party
379 - third_party/distributed_point_functions
380 - third_party/dom_distiller_js
381 - third_party/eigen3
382 - third_party/emoji-segmenter
383 - third_party/farmhash
384 - third_party/fdlibm
385 - third_party/fft2d
386 - third_party/flatbuffers
387 - third_party/freetype
388 - third_party/fusejs
389 - third_party/highway
390 - third_party/libgifcodec
391 - third_party/liburlpattern
392 - third_party/libzip
393 - third_party/gemmlowp
394 - third_party/google_input_tools
395 - third_party/google_input_tools/third_party/closure_library
396 - third_party/google_input_tools/third_party/closure_library/third_party/closure
397 - third_party/googletest
398 - third_party/hunspell
399 - third_party/iccjpeg
400 - third_party/inspector_protocol
401 - third_party/jinja2
402 - third_party/jsoncpp
403 - third_party/jstemplate
404 - third_party/khronos
405 - third_party/leveldatabase
406 - third_party/libXNVCtrl
407 - third_party/libaddressinput
408 - third_party/libaom
409 - third_party/libaom/source/libaom/third_party/fastfeat
410 - third_party/libaom/source/libaom/third_party/vector
411 - third_party/libaom/source/libaom/third_party/x86inc
412 - third_party/libavif
413 - third_party/libgav1
414 - third_party/libjingle
415 - third_party/libjxl
416 - third_party/libphonenumber
417 - third_party/libsecret
418 - third_party/libsrtp
419 - third_party/libsync
420 - third_party/libudev
421 - third_party/libva_protected_content
422 - third_party/libvpx
423 - third_party/libvpx/source/libvpx/third_party/x86inc
424 - third_party/libwebm
425 - third_party/libx11
426 - third_party/libxcb-keysyms
427 - third_party/libxml/chromium
428 - third_party/libyuv
429 - third_party/llvm
430 - third_party/lottie
431 - third_party/lss
432 - third_party/lzma_sdk
433 - third_party/mako
434 - third_party/maldoca
435 - third_party/maldoca/src/third_party/tensorflow_protos
436 - third_party/maldoca/src/third_party/zlibwrapper
437 - third_party/markupsafe
438 - third_party/mesa
439 - third_party/metrics_proto
440 - third_party/minigbm
441 - third_party/modp_b64
442 - third_party/nasm
443 - third_party/nearby
444 - third_party/neon_2_sse
445 - third_party/node
446 - third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2
447 - third_party/one_euro_filter
448 - third_party/opencv
449 - third_party/openscreen
450 - third_party/openscreen/src/third_party/mozilla
451 - third_party/openscreen/src/third_party/tinycbor/src/src
452 - third_party/ots
453 - third_party/pdfium
454 - third_party/pdfium/third_party/agg23
455 - third_party/pdfium/third_party/base
456 - third_party/pdfium/third_party/bigint
457 - third_party/pdfium/third_party/freetype
458 - third_party/pdfium/third_party/lcms
459 - third_party/pdfium/third_party/libopenjpeg20
460 - third_party/pdfium/third_party/libpng16
461 - third_party/pdfium/third_party/libtiff
462 - third_party/pdfium/third_party/skia_shared
463 - third_party/perfetto
464 - third_party/perfetto/protos/third_party/chromium
465 - third_party/pffft
466 - third_party/ply
467 - third_party/polymer
468 - third_party/private-join-and-compute
469 - third_party/private_membership
470 - third_party/protobuf
471 - third_party/protobuf/third_party/six
472 - third_party/pyjson5
473 - third_party/qcms
474 - third_party/rnnoise
475 - third_party/s2cellid
476 - third_party/securemessage
477 - third_party/shell-encryption
478 - third_party/simplejson
479 - third_party/skia
480 - third_party/skia/include/third_party/skcms
481 - third_party/skia/include/third_party/vulkan
482 - third_party/skia/third_party/skcms
483 - third_party/skia/third_party/vulkan
484 - third_party/smhasher
485 - third_party/snappy
486 - third_party/sqlite
487 - third_party/swiftshader
488 - third_party/swiftshader/third_party/astc-encoder
489 - third_party/swiftshader/third_party/llvm-subzero
490 - third_party/swiftshader/third_party/marl
491 - third_party/swiftshader/third_party/subzero
492 - third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1
493 - third_party/tcmalloc
494 - third_party/tensorflow-text
495 - third_party/tflite
496 - third_party/tflite/src/third_party/eigen3
497 - third_party/tflite/src/third_party/fft2d
498 - third_party/ruy
499 - third_party/six
500 - third_party/ukey2
501 - third_party/unrar
502 - third_party/usrsctp
503 - third_party/utf
504 - third_party/vulkan
505 - third_party/web-animations-js
506 - third_party/webdriver
507 - third_party/webgpu-cts
508 - third_party/webrtc
509 - third_party/webrtc/common_audio/third_party/ooura
510 - third_party/webrtc/common_audio/third_party/spl_sqrt_floor
511 - third_party/webrtc/modules/third_party/fft
512 - third_party/webrtc/modules/third_party/g711
513 - third_party/webrtc/modules/third_party/g722
514 - third_party/webrtc/rtc_base/third_party/base64
515 - third_party/webrtc/rtc_base/third_party/sigslot
516 - third_party/widevine
517 - third_party/woff2
518 - third_party/wuffs
519 - third_party/x11proto
520 - third_party/xcbproto
521 - third_party/zxcvbn-cpp
522 - third_party/zlib/google
523 - url/third_party/mozilla
524 - v8/src/third_party/siphash
525 - v8/src/third_party/valgrind
526 - v8/src/third_party/utf8-decoder
527 - v8/third_party/inspector_protocol
528 - v8/third_party/v8
529 -
530 - # gyp -> gn leftovers
531 - base/third_party/libevent
532 - third_party/speech-dispatcher
533 - third_party/usb_ids
534 - third_party/xdg-utils
535 - )
536 - if ! use system-ffmpeg; then
537 - keeplibs+=( third_party/ffmpeg third_party/opus )
538 - fi
539 - if ! use system-icu; then
540 - keeplibs+=( third_party/icu )
541 - fi
542 - if ! use system-png; then
543 - keeplibs+=( third_party/libpng )
544 - fi
545 - if use libcxx; then
546 - keeplibs+=( third_party/re2 )
547 - fi
548 - if use system-harfbuzz; then
549 - keeplibs+=( third_party/harfbuzz-ng/utils )
550 - else
551 - keeplibs+=( third_party/harfbuzz-ng )
552 - fi
553 - if use wayland && ! use headless ; then
554 - keeplibs+=( third_party/wayland )
555 - fi
556 - if use arm64 || use ppc64 ; then
557 - keeplibs+=( third_party/swiftshader/third_party/llvm-10.0 )
558 - fi
559 - # we need to generate ppc64 stuff because upstream does not ship it yet
560 - # it has to be done before unbundling.
561 - if use ppc64; then
562 - pushd third_party/libvpx >/dev/null || die
563 - mkdir -p source/config/linux/ppc64 || die
564 - # requires git and clang, bug #832803
565 - sed -i -e "s|^update_readme||g; s|clang-format|${EPREFIX}/bin/true|g" \
566 - generate_gni.sh || die
567 - ./generate_gni.sh || die
568 - popd >/dev/null || die
569 - fi
570 -
571 - # Remove most bundled libraries. Some are still needed.
572 - build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die
573 -
574 - if use js-type-check; then
575 - ln -s "${EPREFIX}"/usr/bin/java third_party/jdk/current/bin/java || die
576 - fi
577 -
578 - # bundled eu-strip is for amd64 only and we don't want to pre-stripped binaries
579 - mkdir -p buildtools/third_party/eu-strip/bin || die
580 - ln -s "${EPREFIX}"/bin/true buildtools/third_party/eu-strip/bin/eu-strip || die
581 -}
582 -
583 -src_configure() {
584 - # Calling this here supports resumption via FEATURES=keepwork
585 - python_setup
586 -
587 - local myconf_gn=""
588 -
589 - # Make sure the build system will use the right tools, bug #340795.
590 - tc-export AR CC CXX NM
591 -
592 - if { [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || use libcxx; } && ! tc-is-clang; then
593 - # Force clang since gcc is either broken or build is using libcxx.
594 - if tc-is-cross-compiler; then
595 - CC="${CBUILD}-clang -target ${CHOST} --sysroot ${ESYSROOT}"
596 - CXX="${CBUILD}-clang++ -target ${CHOST} --sysroot ${ESYSROOT}"
597 - BUILD_CC=${CBUILD}-clang
598 - BUILD_CXX=${CBUILD}-clang++
599 - else
600 - CC=${CHOST}-clang
601 - CXX=${CHOST}-clang++
602 - fi
603 - strip-unsupported-flags
604 - fi
605 -
606 - if tc-is-clang || use libcxx; then
607 - myconf_gn+=" is_clang=true clang_use_chrome_plugins=false"
608 - else
609 - myconf_gn+=" is_clang=false"
610 - fi
611 -
612 - # Define a custom toolchain for GN
613 - myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\""
614 -
615 - if tc-is-cross-compiler; then
616 - tc-export BUILD_{AR,CC,CXX,NM}
617 - myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\""
618 - myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\""
619 - myconf_gn+=" pkg_config=\"$(tc-getPKG_CONFIG)\""
620 - myconf_gn+=" host_pkg_config=\"$(tc-getBUILD_PKG_CONFIG)\""
621 -
622 - # setup cups-config, build system only uses --libs option
623 - if use cups; then
624 - mkdir "${T}/cups-config" || die
625 - cp "${ESYSROOT}/usr/bin/${CHOST}-cups-config" "${T}/cups-config/cups-config" || die
626 - export PATH="${PATH}:${T}/cups-config"
627 - fi
628 -
629 - # Don't inherit PKG_CONFIG_PATH from environment
630 - local -x PKG_CONFIG_PATH=
631 - else
632 - myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\""
633 - fi
634 -
635 - # GN needs explicit config for Debug/Release as opposed to inferring it from build directory.
636 - myconf_gn+=" is_debug=false"
637 -
638 - # enable DCHECK with USE=debug only, increases chrome binary size by 30%, bug #811138.
639 - # DCHECK is fatal by default, make it configurable at runtime, #bug 807881.
640 - myconf_gn+=" dcheck_always_on=$(usex debug true false)"
641 - myconf_gn+=" dcheck_is_configurable=$(usex debug true false)"
642 -
643 - # Component build isn't generally intended for use by end users. It's mostly useful
644 - # for development and debugging.
645 - myconf_gn+=" is_component_build=$(usex component-build true false)"
646 -
647 - # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
648 - myconf_gn+=" enable_nacl=false"
649 -
650 - # Use system-provided libraries.
651 - # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733).
652 - # TODO: use_system_hunspell (upstream changes needed).
653 - # TODO: use_system_protobuf (bug #525560).
654 - # TODO: use_system_sqlite (http://crbug.com/22208).
655 -
656 - # libevent: https://bugs.gentoo.org/593458
657 - local gn_system_libraries=(
658 - flac
659 - fontconfig
660 - freetype
661 - # Need harfbuzz_from_pkgconfig target
662 - #harfbuzz-ng
663 - libdrm
664 - libjpeg
665 - libwebp
666 - libxml
667 - libxslt
668 - openh264
669 - zlib
670 - )
671 - if use system-ffmpeg; then
672 - gn_system_libraries+=( ffmpeg opus )
673 - fi
674 - if use system-icu; then
675 - gn_system_libraries+=( icu )
676 - fi
677 - if use system-png; then
678 - gn_system_libraries+=( libpng )
679 - fi
680 - # re2 library interface relies on std::string and std::vector
681 - if ! use libcxx; then
682 - gn_system_libraries+=( re2 )
683 - fi
684 - build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die
685 -
686 - # See dependency logic in third_party/BUILD.gn
687 - myconf_gn+=" use_system_harfbuzz=$(usex system-harfbuzz true false)"
688 -
689 - # Disable deprecated libgnome-keyring dependency, bug #713012
690 - myconf_gn+=" use_gnome_keyring=false"
691 -
692 - # Optional dependencies.
693 - myconf_gn+=" enable_js_type_check=$(usex js-type-check true false)"
694 - myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)"
695 - myconf_gn+=" enable_widevine=$(usex widevine true false)"
696 -
697 - if use headless; then
698 - myconf_gn+=" use_cups=false"
699 - myconf_gn+=" use_kerberos=false"
700 - myconf_gn+=" use_pulseaudio=false"
701 - myconf_gn+=" use_vaapi=false"
702 - myconf_gn+=" rtc_use_pipewire=false"
703 - else
704 - myconf_gn+=" use_cups=$(usex cups true false)"
705 - myconf_gn+=" use_kerberos=$(usex kerberos true false)"
706 - myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)"
707 - myconf_gn+=" use_vaapi=$(usex vaapi true false)"
708 - myconf_gn+=" rtc_use_pipewire=$(usex screencast true false)"
709 - myconf_gn+=" gtk_version=$(usex gtk4 4 3)"
710 - fi
711 -
712 - # TODO: link_pulseaudio=true for GN.
713 -
714 - myconf_gn+=" disable_fieldtrial_testing_config=true"
715 -
716 - # Never use bundled gold binary. Disable gold linker flags for now.
717 - # Do not use bundled clang.
718 - # Trying to use gold results in linker crash.
719 - myconf_gn+=" use_gold=false use_sysroot=false"
720 - myconf_gn+=" use_custom_libcxx=$(usex libcxx true false)"
721 -
722 - # Disable forced lld, bug 641556
723 - myconf_gn+=" use_lld=false"
724 -
725 - # Disable pseudolocales, only used for testing
726 - myconf_gn+=" enable_pseudolocales=false"
727 -
728 - # Disable code formating of generated files
729 - myconf_gn+=" blink_enable_generated_code_formatting=false"
730 -
731 - ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
732 - myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)"
733 - myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\""
734 -
735 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
736 - # Note: these are for Gentoo use ONLY. For your own distribution,
737 - # please get your own set of keys. Feel free to contact chromium@g.o
738 - # for more info. The OAuth2 credentials, however, have been left out.
739 - # Those OAuth2 credentials have been broken for quite some time anyway.
740 - # Instead we apply a patch to use the --oauth2-client-id= and
741 - # --oauth2-client-secret= switches for setting GOOGLE_DEFAULT_CLIENT_ID and
742 - # GOOGLE_DEFAULT_CLIENT_SECRET at runtime. This allows signing into
743 - # Chromium without baked-in values.
744 - local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc"
745 - myconf_gn+=" google_api_key=\"${google_api_key}\""
746 - local myarch="$(tc-arch)"
747 -
748 - # Avoid CFLAGS problems, bug #352457, bug #390147.
749 - if ! use custom-cflags; then
750 - replace-flags "-Os" "-O2"
751 - strip-flags
752 -
753 - # Debug info section overflows without component build
754 - # Prevent linker from running out of address space, bug #471810 .
755 - if ! use component-build || use x86; then
756 - filter-flags "-g*"
757 - fi
758 -
759 - # Prevent libvpx build failures. Bug 530248, 544702, 546984.
760 - if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
761 - filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 -mno-fma -mno-fma4
762 - fi
763 - fi
764 -
765 - if [[ $myarch = amd64 ]] ; then
766 - myconf_gn+=" target_cpu=\"x64\""
767 - ffmpeg_target_arch=x64
768 - elif [[ $myarch = x86 ]] ; then
769 - myconf_gn+=" target_cpu=\"x86\""
770 - ffmpeg_target_arch=ia32
771 -
772 - # This is normally defined by compiler_cpu_abi in
773 - # build/config/compiler/BUILD.gn, but we patch that part out.
774 - append-flags -msse2 -mfpmath=sse -mmmx
775 - elif [[ $myarch = arm64 ]] ; then
776 - myconf_gn+=" target_cpu=\"arm64\""
777 - ffmpeg_target_arch=arm64
778 - elif [[ $myarch = arm ]] ; then
779 - myconf_gn+=" target_cpu=\"arm\""
780 - ffmpeg_target_arch=$(usex cpu_flags_arm_neon arm-neon arm)
781 - elif [[ $myarch = ppc64 ]] ; then
782 - myconf_gn+=" target_cpu=\"ppc64\""
783 - ffmpeg_target_arch=ppc64
784 - else
785 - die "Failed to determine target arch, got '$myarch'."
786 - fi
787 -
788 - # Make sure that -Werror doesn't get added to CFLAGS by the build system.
789 - # Depending on GCC version the warnings are different and we don't want
790 - # the build to fail because of that.
791 - myconf_gn+=" treat_warnings_as_errors=false"
792 -
793 - # Disable fatal linker warnings, bug 506268.
794 - myconf_gn+=" fatal_linker_warnings=false"
795 -
796 - # Bug 491582.
797 - export TMPDIR="${WORKDIR}/temp"
798 - mkdir -p -m 755 "${TMPDIR}" || die
799 -
800 - # https://bugs.gentoo.org/654216
801 - addpredict /dev/dri/ #nowarn
802 -
803 - #if ! use system-ffmpeg; then
804 - if false; then
805 - local build_ffmpeg_args=""
806 - if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
807 - build_ffmpeg_args+=" --disable-asm"
808 - fi
809 -
810 - # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
811 - einfo "Configuring bundled ffmpeg..."
812 - pushd third_party/ffmpeg > /dev/null || die
813 - chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
814 - --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
815 - chromium/scripts/copy_config.sh || die
816 - chromium/scripts/generate_gn.py || die
817 - popd > /dev/null || die
818 - fi
819 -
820 - # Disable unknown warning message from clang.
821 - if tc-is-clang; then
822 - append-flags -Wno-unknown-warning-option
823 - if tc-is-cross-compiler; then
824 - export BUILD_CXXFLAGS+=" -Wno-unknown-warning-option"
825 - export BUILD_CFLAGS+=" -Wno-unknown-warning-option"
826 - fi
827 - fi
828 -
829 - # Explicitly disable ICU data file support for system-icu/headless builds.
830 - if use system-icu || use headless; then
831 - myconf_gn+=" icu_use_data_file=false"
832 - fi
833 -
834 - # Enable ozone wayland and/or headless support
835 - myconf_gn+=" use_ozone=true ozone_auto_platforms=false"
836 - myconf_gn+=" ozone_platform_headless=true"
837 - myconf_gn+=" ozone_platform_x11=$(usex headless false true)"
838 - if use wayland || use headless; then
839 - if use headless; then
840 - myconf_gn+=" ozone_platform=\"headless\""
841 - myconf_gn+=" use_xkbcommon=false use_gtk=false"
842 - myconf_gn+=" use_glib=false use_gio=false"
843 - myconf_gn+=" use_pangocairo=false use_alsa=false"
844 - myconf_gn+=" use_libpci=false use_udev=false"
845 - myconf_gn+=" enable_print_preview=false"
846 - myconf_gn+=" enable_remoting=false"
847 - else
848 - myconf_gn+=" ozone_platform_wayland=true"
849 - myconf_gn+=" use_system_libdrm=true"
850 - myconf_gn+=" use_system_minigbm=true"
851 - myconf_gn+=" use_xkbcommon=true"
852 - myconf_gn+=" ozone_platform=\"wayland\""
853 - fi
854 - else
855 - myconf_gn+=" ozone_platform=\"x11\""
856 - fi
857 -
858 - # Enable official builds
859 - myconf_gn+=" is_official_build=$(usex official true false)"
860 - myconf_gn+=" use_thin_lto=false"
861 - if use official; then
862 - # Allow building against system libraries in official builds
863 - sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
864 - tools/generate_shim_headers/generate_shim_headers.py || die
865 - # Disable CFI: unsupported for GCC, requires clang+lto+lld
866 - myconf_gn+=" is_cfi=false"
867 - # Disable PGO, because profile data is only compatible with >=clang-11
868 - myconf_gn+=" chrome_pgo_phase=0"
869 - # Don't add symbols to build
870 - myconf_gn+=" symbol_level=0"
871 - fi
872 -
873 - einfo "Configuring Chromium..."
874 - set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release
875 - echo "$@"
876 - "$@" || die
877 -}
878 -
879 -src_compile() {
880 - # Final link uses lots of file descriptors.
881 - ulimit -n 2048
882 -
883 - # Calling this here supports resumption via FEATURES=keepwork
884 - python_setup
885 -
886 - # Don't inherit PYTHONPATH from environment, bug #789021, #812689
887 - local -x PYTHONPATH=
888 -
889 - #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die
890 -
891 - # Build mksnapshot and pax-mark it.
892 - local x
893 - for x in mksnapshot v8_context_snapshot_generator; do
894 - if tc-is-cross-compiler; then
895 - eninja -C out/Release "host/${x}"
896 - pax-mark m "out/Release/host/${x}"
897 - else
898 - eninja -C out/Release "${x}"
899 - pax-mark m "out/Release/${x}"
900 - fi
901 - done
902 -
903 - # Even though ninja autodetects number of CPUs, we respect
904 - # user's options, for debugging with -j 1 or any other reason.
905 - eninja -C out/Release chrome chromedriver
906 - use suid && eninja -C out/Release chrome_sandbox
907 -
908 - pax-mark m out/Release/chrome
909 -
910 - mv out/Release/chromedriver{.unstripped,} || die
911 -
912 - # Build manpage; bug #684550
913 - sed -e 's|@@PACKAGE@@|chromium-browser|g;
914 - s|@@MENUNAME@@|Chromium|g;' \
915 - chrome/app/resources/manpage.1.in > \
916 - out/Release/chromium-browser.1 || die
917 -
918 - # Build desktop file; bug #706786
919 - sed -e 's|@@MENUNAME@@|Chromium|g;
920 - s|@@USR_BIN_SYMLINK_NAME@@|chromium-browser|g;
921 - s|@@PACKAGE@@|chromium-browser|g;
922 - s|\(^Exec=\)/usr/bin/|\1|g;' \
923 - chrome/installer/linux/common/desktop.template > \
924 - out/Release/chromium-browser-chromium.desktop || die
925 -
926 - # Build vk_swiftshader_icd.json; bug #827861
927 - sed -e 's|${ICD_LIBRARY_PATH}|./libvk_swiftshader.so|g' \
928 - third_party/swiftshader/src/Vulkan/vk_swiftshader_icd.json.tmpl > \
929 - out/Release/vk_swiftshader_icd.json || die
930 -}
931 -
932 -src_install() {
933 - local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
934 - exeinto "${CHROMIUM_HOME}"
935 - doexe out/Release/chrome
936 -
937 - if use suid; then
938 - newexe out/Release/chrome_sandbox chrome-sandbox
939 - fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
940 - fi
941 -
942 - doexe out/Release/chromedriver
943 - doexe out/Release/chrome_crashpad_handler
944 -
945 - ozone_auto_session () {
946 - use wayland && ! use headless && echo true || echo false
947 - }
948 - local sedargs=( -e
949 - "s:/usr/lib/:/usr/$(get_libdir)/:g;
950 - s:@@OZONE_AUTO_SESSION@@:$(ozone_auto_session):g"
951 - )
952 - sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r7.sh" > chromium-launcher.sh || die
953 - doexe chromium-launcher.sh
954 -
955 - # It is important that we name the target "chromium-browser",
956 - # xdg-utils expect it; bug #355517.
957 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser
958 - # keep the old symlink around for consistency
959 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium
960 -
961 - dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver
962 -
963 - # Allow users to override command-line options, bug #357629.
964 - insinto /etc/chromium
965 - newins "${FILESDIR}/chromium.default" "default"
966 -
967 - pushd out/Release/locales > /dev/null || die
968 - chromium_remove_language_paks
969 - popd
970 -
971 - insinto "${CHROMIUM_HOME}"
972 - doins out/Release/*.bin
973 - doins out/Release/*.pak
974 - (
975 - shopt -s nullglob
976 - local files=(out/Release/*.so out/Release/*.so.[0-9])
977 - [[ ${#files[@]} -gt 0 ]] && doins "${files[@]}"
978 - )
979 -
980 - if ! use system-icu && ! use headless; then
981 - doins out/Release/icudtl.dat
982 - fi
983 -
984 - doins -r out/Release/locales
985 - doins -r out/Release/MEIPreload
986 -
987 - # Install vk_swiftshader_icd.json; bug #827861
988 - doins out/Release/vk_swiftshader_icd.json
989 -
990 - if [[ -d out/Release/swiftshader ]]; then
991 - insinto "${CHROMIUM_HOME}/swiftshader"
992 - doins out/Release/swiftshader/*.so
993 - fi
994 -
995 - # Install icons
996 - local branding size
997 - for size in 16 24 32 48 64 128 256 ; do
998 - case ${size} in
999 - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
1000 - *) branding="chrome/app/theme/chromium" ;;
1001 - esac
1002 - newicon -s ${size} "${branding}/product_logo_${size}.png" \
1003 - chromium-browser.png
1004 - done
1005 -
1006 - # Install desktop entry
1007 - domenu out/Release/chromium-browser-chromium.desktop
1008 -
1009 - # Install GNOME default application entry (bug #303100).
1010 - insinto /usr/share/gnome-control-center/default-apps
1011 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml
1012 -
1013 - # Install manpage; bug #684550
1014 - doman out/Release/chromium-browser.1
1015 - dosym chromium-browser.1 /usr/share/man/man1/chromium.1
1016 -
1017 - readme.gentoo_create_doc
1018 -}
1019 -
1020 -pkg_postrm() {
1021 - xdg_icon_cache_update
1022 - xdg_desktop_database_update
1023 -}
1024 -
1025 -pkg_postinst() {
1026 - xdg_icon_cache_update
1027 - xdg_desktop_database_update
1028 - readme.gentoo_print_elog
1029 -
1030 - if ! use headless; then
1031 - if use vaapi; then
1032 - elog "VA-API is disabled by default at runtime. You have to enable it"
1033 - elog "by adding --enable-features=VaapiVideoDecoder to CHROMIUM_FLAGS"
1034 - elog "in /etc/chromium/default."
1035 - fi
1036 - if use screencast; then
1037 - elog "Screencast is disabled by default at runtime. Either enable it"
1038 - elog "by navigating to chrome://flags/#enable-webrtc-pipewire-capturer"
1039 - elog "inside Chromium or add --enable-features=WebRTCPipeWireCapturer"
1040 - elog "to CHROMIUM_FLAGS in /etc/chromium/default."
1041 - fi
1042 - if use gtk4; then
1043 - elog "Chromium prefers GTK3 over GTK4 at runtime. To override this"
1044 - elog "behavior you need to pass --gtk-version=4, e.g. by adding it"
1045 - elog "to CHROMIUM_FLAGS in /etc/chromium/default."
1046 - fi
1047 - fi
1048 -}
1049
1050 diff --git a/www-client/chromium/files/chromium-98-system-libdrm.patch b/www-client/chromium/files/chromium-98-system-libdrm.patch
1051 deleted file mode 100644
1052 index f2f18beda3db..000000000000
1053 --- a/www-client/chromium/files/chromium-98-system-libdrm.patch
1054 +++ /dev/null
1055 @@ -1,34 +0,0 @@
1056 -diff --git a/media/gpu/chromeos/BUILD.gn b/media/gpu/chromeos/BUILD.gn
1057 -index a5c8945..d742d80 100644
1058 ---- a/media/gpu/chromeos/BUILD.gn
1059 -+++ b/media/gpu/chromeos/BUILD.gn
1060 -@@ -32,6 +32,7 @@ source_set("chromeos") {
1061 -
1062 - if (use_vaapi) {
1063 - deps += [
1064 -+ "//build/config/linux/libdrm",
1065 - "//media/gpu/vaapi",
1066 - "//media/gpu/vaapi:common",
1067 - ]
1068 -diff --git a/media/gpu/chromeos/video_decoder_pipeline.cc b/media/gpu/chromeos/video_decoder_pipeline.cc
1069 -index 2d77cd9..1883fd4 100644
1070 ---- a/media/gpu/chromeos/video_decoder_pipeline.cc
1071 -+++ b/media/gpu/chromeos/video_decoder_pipeline.cc
1072 -@@ -4,6 +4,9 @@
1073 -
1074 - #include "media/gpu/chromeos/video_decoder_pipeline.h"
1075 -
1076 -+#if BUILDFLAG(USE_VAAPI)
1077 -+#include <drm_fourcc.h>
1078 -+#endif
1079 - #include <memory>
1080 -
1081 - #include "base/bind.h"
1082 -@@ -28,7 +31,6 @@
1083 -
1084 - #if BUILDFLAG(USE_VAAPI)
1085 - #include "media/gpu/vaapi/vaapi_video_decoder.h"
1086 --#include "third_party/libdrm/src/include/drm/drm_fourcc.h"
1087 - #elif BUILDFLAG(USE_V4L2_CODEC)
1088 - #include "media/gpu/v4l2/v4l2_video_decoder.h"
1089 - #else
1090
1091 diff --git a/www-client/chromium/files/chromium-glibc-2.34-r1.patch b/www-client/chromium/files/chromium-glibc-2.34-r1.patch
1092 deleted file mode 100644
1093 index 0747b4f1cedb..000000000000
1094 --- a/www-client/chromium/files/chromium-glibc-2.34-r1.patch
1095 +++ /dev/null
1096 @@ -1,20 +0,0 @@
1097 ---- a/sandbox/linux/services/credentials.cc
1098 -+++ b/sandbox/linux/services/credentials.cc
1099 -@@ -11,6 +11,7 @@
1100 - #include <stddef.h>
1101 - #include <stdint.h>
1102 - #include <stdio.h>
1103 -+#include <string.h>
1104 - #include <sys/syscall.h>
1105 - #include <sys/types.h>
1106 - #include <sys/wait.h>
1107 -@@ -100,7 +101,8 @@ bool ChrootToSafeEmptyDir() {
1108 - // TODO(crbug.com/1247458) Broken in MSan builds after LLVM f1bb30a4956f.
1109 - clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS;
1110 -
1111 -- char tls_buf[PTHREAD_STACK_MIN] = {0};
1112 -+ char tls_buf[PTHREAD_STACK_MIN];
1113 -+ memset(tls_buf, 0, PTHREAD_STACK_MIN);
1114 - tls = tls_buf;
1115 - #endif
1116 -