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