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