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: Tue, 15 Jun 2021 21:19:16
Message-Id: 1623791948.2cc46a4526cdb1c95c860e1e68b632f3b2baf297.sultan@gentoo
1 commit: 2cc46a4526cdb1c95c860e1e68b632f3b2baf297
2 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 15 21:18:53 2021 +0000
4 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 15 21:19:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cc46a45
7
8 www-client/chromium: stable channel bump to 91.0.4472.106
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>
12
13 www-client/chromium/Manifest | 1 +
14 www-client/chromium/chromium-91.0.4472.106.ebuild | 944 ++++++++++++++++++++++
15 2 files changed, 945 insertions(+)
16
17 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
18 index 2c6c393704c..6ea5b296c2b 100644
19 --- a/www-client/chromium/Manifest
20 +++ b/www-client/chromium/Manifest
21 @@ -1,6 +1,7 @@
22 DIST chromium-91-patchset-6.tar.xz 4280 BLAKE2B 18887953453133589cfc5df58d24725047235fac3652cc7af7bd117fbc94aa9a2e1b1dd3147f772f84d8fa3e7b5b77159abc1e408d7b24b065bb1f12cebbfb2f SHA512 49b4aaedfbb1fa5629dbb453bb74f5735c05b14407ea3d2bb1eaee9686e03661a3c471357d085ab839dff16df92d71dae3a6f17486c017a79a836c1d8780a250
23 DIST chromium-91-ppc64le-5.tar.xz 28988 BLAKE2B 7c574626546c9b8c67879277a9b06b95b51111fef7697b7edab5548b4372a73c56a5771dc3ab6126535477493d7415e3e9b3b446cb4faa7b095a56cafaaab2fb SHA512 637433ce28b9f1e41696d1027f1bb5858fc5bdef94121deb34a9eafd58c651af4b84c103f3319151c0b708ad8da1756eff14025979dc46797d20cc95afb3d3bc
24 DIST chromium-91.0.4472.101.tar.xz 950228560 BLAKE2B 441ef6106c09e24ae5b0ebbcebc016bafe46a3064c1b8e44065c63850c1155fd3247357ea6371da6fe226032ac250dc8664ec7ea912916493c705fd0ff02fefe SHA512 d779888d4b6e16c2dcdc18d008d3a5ed755926e9ab2ad1586167c45200d4074b74ab19258c2f6d7515d705cd51815a7601feb0bfab133b4b40d062fd1697525a
25 +DIST chromium-91.0.4472.106.tar.xz 950214296 BLAKE2B 1c68c3d6ccb593b4516482ba8f18f3bf769fe90ca423692f8e8d9fabd36fa8cda7a66f870fc30478ea4e1f9bd147bb6cadb77df4d9e0ef846c30e653b15dcc98 SHA512 142507bbf5fcc47d7eeb5f890ed70eae403271a7f537903545ad09ac26501aae914f327c3287d5588ed4ab601012584f6204cca6896ed2705326b090df2fe00c
26 DIST chromium-92-patchset-6.tar.xz 3764 BLAKE2B a7149940b1371e4bd295e6038b87cc13f4edf8d8ed286d9d8d0e63144c2546de39564fc203a4b2e185267e46398efd0414c1f695ee31c78d33a6cd8d7b434016 SHA512 2f104901271d42762ea27f7c8a017307bde7348ec6b84d0c85875a07bf3783ba43bdb886fb3c6376753b6a14102b495a28bdc7adc611992440d2c1345aea035b
27 DIST chromium-92.0.4515.51.tar.xz 957598564 BLAKE2B 5b911148153cae7058522d155b671c96f94a42621b9e0c371a82acb953de5bfa0baa1c6fe410a8e23d1ff77756437c39bab809cee1f95634ab1abb87ff5456b7 SHA512 63bb8012b7f0cec81bdb13e0acf1ef43e996cb3c66f2374933741c21fd906a6e0ce88e16b4772d4f14cb197c3e35f99235b56021780e405d245b5721096ae732
28 DIST chromium-93-patchset-2.tar.xz 4844 BLAKE2B 34036f2529043329ef33f142c90929504445c8597fbee57f5614579672f88d71ee3c8eb4b0864051fbeaa30ff4a6958a2f71240b11a84d7ebb695b6b90bd21d2 SHA512 db25ef16f82947d2f9971648dbdd41b1c30e6323d85535c6fd6dbcae9d408606cd9c55a609140aa6baff072d2c71fa811bc2fe8fca465004b734690f8f875744
29
30 diff --git a/www-client/chromium/chromium-91.0.4472.106.ebuild b/www-client/chromium/chromium-91.0.4472.106.ebuild
31 new file mode 100644
32 index 00000000000..ad9ec577e69
33 --- /dev/null
34 +++ b/www-client/chromium/chromium-91.0.4472.106.ebuild
35 @@ -0,0 +1,944 @@
36 +# Copyright 2009-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +PYTHON_COMPAT=( python2_7 )
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 multilib ninja-utils pax-utils portability 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="6"
52 +PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
53 +PPC64LE_PATCHSET="5"
54 +SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
55 + https://files.pythonhosted.org/packages/ed/7b/bbf89ca71e722b7f9464ebffe4b5ee20a9e5c9a555a56e2d3914bb9119a6/setuptools-44.1.0.zip
56 + https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz
57 + arm64? ( https://github.com/google/highway/archive/refs/tags/0.12.1.tar.gz -> highway-0.12.1.tar.gz )
58 + ppc64? ( https://dev.gentoo.org/~gyakovlev/distfiles/${PN}-$(ver_cut 1)-ppc64le-${PPC64LE_PATCHSET}.tar.xz )"
59 +
60 +LICENSE="BSD"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
63 +IUSE="component-build cups cpu_flags_arm_neon +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-icu vaapi wayland widevine"
64 +REQUIRED_USE="
65 + component-build? ( !suid )
66 + screencast? ( wayland )
67 +"
68 +
69 +COMMON_X_DEPEND="
70 + media-libs/mesa:=[gbm]
71 + x11-libs/libX11:=
72 + x11-libs/libXcomposite:=
73 + x11-libs/libXcursor:=
74 + x11-libs/libXdamage:=
75 + x11-libs/libXext:=
76 + x11-libs/libXfixes:=
77 + >=x11-libs/libXi-1.6.0:=
78 + x11-libs/libXrandr:=
79 + x11-libs/libXrender:=
80 + x11-libs/libXtst:=
81 + x11-libs/libxcb:=
82 + x11-libs/libxshmfence:=
83 + vaapi? ( >=x11-libs/libva-2.7:=[X,drm] )
84 +"
85 +
86 +COMMON_DEPEND="
87 + app-arch/bzip2:=
88 + cups? ( >=net-print/cups-1.3.11:= )
89 + dev-libs/expat:=
90 + dev-libs/glib:2
91 + >=dev-libs/libxml2-2.9.4-r3:=[icu]
92 + dev-libs/nspr:=
93 + >=dev-libs/nss-3.26:=
94 + >=media-libs/alsa-lib-1.0.19:=
95 + media-libs/fontconfig:=
96 + media-libs/freetype:=
97 + >=media-libs/harfbuzz-2.4.0:0=[icu(-)]
98 + media-libs/libjpeg-turbo:=
99 + media-libs/libpng:=
100 + pulseaudio? ( media-sound/pulseaudio:= )
101 + system-ffmpeg? (
102 + >=media-video/ffmpeg-4.3:=
103 + || (
104 + media-video/ffmpeg[-samba]
105 + >=net-fs/samba-4.5.10-r1[-debug(-)]
106 + )
107 + >=media-libs/opus-1.3.1:=
108 + )
109 + sys-apps/dbus:=
110 + sys-apps/pciutils:=
111 + virtual/udev
112 + x11-libs/cairo:=
113 + x11-libs/gdk-pixbuf:2
114 + x11-libs/libxkbcommon:=
115 + x11-libs/pango:=
116 + media-libs/flac:=
117 + >=media-libs/libwebp-0.4.0:=
118 + sys-libs/zlib:=[minizip]
119 + kerberos? ( virtual/krb5 )
120 + !headless? (
121 + ${COMMON_X_DEPEND}
122 + >=app-accessibility/at-spi2-atk-2.26:2
123 + >=app-accessibility/at-spi2-core-2.26:2
124 + >=dev-libs/atk-2.26
125 + x11-libs/gtk+:3[X]
126 + wayland? (
127 + dev-libs/wayland:=
128 + screencast? ( media-video/pipewire:0/0.3 )
129 + x11-libs/gtk+:3[wayland,X]
130 + x11-libs/libdrm:=
131 + )
132 + )
133 +"
134 +RDEPEND="${COMMON_DEPEND}
135 + x11-misc/xdg-utils
136 + virtual/opengl
137 + virtual/ttf-fonts
138 + selinux? ( sec-policy/selinux-chromium )
139 +"
140 +DEPEND="${COMMON_DEPEND}
141 +"
142 +# dev-vcs/git - https://bugs.gentoo.org/593476
143 +BDEPEND="
144 + ${PYTHON_DEPS}
145 + >=app-arch/gzip-1.7
146 + app-arch/unzip
147 + dev-lang/perl
148 + >=dev-util/gn-0.1807
149 + dev-vcs/git
150 + >=dev-util/gperf-3.0.3
151 + >=dev-util/ninja-1.7.2
152 + >=net-libs/nodejs-7.6.0[inspector]
153 + sys-apps/hwids[usb(+)]
154 + >=sys-devel/bison-2.4.3
155 + sys-devel/flex
156 + virtual/pkgconfig
157 + js-type-check? ( virtual/jre )
158 +"
159 +
160 +# These are intended for ebuild maintainer use to force clang if GCC is broken.
161 +: ${CHROMIUM_FORCE_CLANG=no}
162 +: ${CHROMIUM_FORCE_LIBCXX=no}
163 +
164 +if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then
165 + BDEPEND+=" >=sys-devel/clang-12"
166 +fi
167 +
168 +if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then
169 + RDEPEND+=" >=sys-libs/libcxx-12"
170 + DEPEND+=" >=sys-libs/libcxx-12"
171 +else
172 + COMMON_DEPEND="
173 + app-arch/snappy:=
174 + dev-libs/libxslt:=
175 + >=dev-libs/re2-0.2019.08.01:=
176 + >=media-libs/openh264-1.6.0:=
177 + system-icu? ( >=dev-libs/icu-69.1:= )
178 + "
179 + RDEPEND+="${COMMON_DEPEND}"
180 + DEPEND+="${COMMON_DEPEND}"
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 +pre_build_checks() {
217 + if [[ ${MERGE_TYPE} != binary ]]; then
218 + local -x CPP="$(tc-getCXX) -E"
219 + if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 9.2; then
220 + die "At least gcc 9.2 is required"
221 + fi
222 + if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || tc-is-clang; then
223 + CPP="${CHOST}-clang++ -E"
224 + if ! ver_test "$(clang-major-version)" -ge 12; then
225 + die "At least clang 12 is required"
226 + fi
227 + fi
228 + fi
229 +
230 + # Check build requirements, bug #541816 and bug #471810 .
231 + CHECKREQS_MEMORY="3G"
232 + CHECKREQS_DISK_BUILD="8G"
233 + if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then
234 + if use custom-cflags || use component-build; then
235 + CHECKREQS_DISK_BUILD="25G"
236 + fi
237 + if ! use component-build; then
238 + CHECKREQS_MEMORY="16G"
239 + fi
240 + fi
241 + check-reqs_pkg_setup
242 +}
243 +
244 +pkg_pretend() {
245 + pre_build_checks
246 +}
247 +
248 +pkg_setup() {
249 + pre_build_checks
250 +
251 + chromium_suid_sandbox_check_kernel_config
252 +
253 + # nvidia-drivers does not work correctly with Wayland due to unsupported EGLStreams
254 + if use wayland && ! use headless && has_version "x11-drivers/nvidia-drivers"; then
255 + ewarn "Proprietary nVidia driver does not work with Wayland. You can disable"
256 + ewarn "Wayland by setting DISABLE_OZONE_PLATFORM=true in /etc/chromium/default."
257 + fi
258 +}
259 +
260 +src_prepare() {
261 + # Calling this here supports resumption via FEATURES=keepwork
262 + python_setup
263 +
264 + local PATCHES=(
265 + "${WORKDIR}/patches"
266 + "${FILESDIR}/chromium-89-EnumTable-crash.patch"
267 + "${FILESDIR}/chromium-91-ThemeService-crash.patch"
268 + "${FILESDIR}/chromium-91-system-icu.patch"
269 + "${FILESDIR}/chromium-shim_headers.patch"
270 + )
271 +
272 + # seccomp sandbox is broken if compiled against >=sys-libs/glibc-2.33, bug #769989
273 + if has_version -d ">=sys-libs/glibc-2.33"; then
274 + ewarn "Adding experimental glibc-2.33 sandbox patch. Seccomp sandbox might"
275 + ewarn "still not work correctly. In case of issues, try to disable seccomp"
276 + ewarn "sandbox by adding --disable-seccomp-filter-sandbox to CHROMIUM_FLAGS"
277 + ewarn "in /etc/chromium/default."
278 + PATCHES+=(
279 + "${FILESDIR}/chromium-glibc-2.33.patch"
280 + )
281 + fi
282 +
283 + use ppc64 && eapply -p0 "${WORKDIR}/${PN}"-ppc64le
284 +
285 + default
286 +
287 + mkdir -p third_party/node/linux/node-linux-x64/bin || die
288 + ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die
289 +
290 + # bundled highway library does not support arm64 with GCC
291 + if use arm64; then
292 + rm -r third_party/highway/src || die
293 + ln -s "${WORKDIR}/highway-0.12.1" third_party/highway/src || die
294 + fi
295 +
296 + local keeplibs=(
297 + base/third_party/cityhash
298 + base/third_party/double_conversion
299 + base/third_party/dynamic_annotations
300 + base/third_party/icu
301 + base/third_party/nspr
302 + base/third_party/superfasthash
303 + base/third_party/symbolize
304 + base/third_party/valgrind
305 + base/third_party/xdg_mime
306 + base/third_party/xdg_user_dirs
307 + buildtools/third_party/libc++
308 + buildtools/third_party/libc++abi
309 + chrome/third_party/mozilla_security_manager
310 + courgette/third_party
311 + net/third_party/mozilla_security_manager
312 + net/third_party/nss
313 + net/third_party/quic
314 + net/third_party/uri_template
315 + third_party/abseil-cpp
316 + third_party/angle
317 + third_party/angle/src/common/third_party/base
318 + third_party/angle/src/common/third_party/smhasher
319 + third_party/angle/src/common/third_party/xxhash
320 + third_party/angle/src/third_party/compiler
321 + third_party/angle/src/third_party/libXNVCtrl
322 + third_party/angle/src/third_party/trace_event
323 + third_party/angle/src/third_party/volk
324 + third_party/apple_apsl
325 + third_party/axe-core
326 + third_party/blink
327 + third_party/boringssl
328 + third_party/boringssl/src/third_party/fiat
329 + third_party/breakpad
330 + third_party/breakpad/breakpad/src/third_party/curl
331 + third_party/brotli
332 + third_party/catapult
333 + third_party/catapult/common/py_vulcanize/third_party/rcssmin
334 + third_party/catapult/common/py_vulcanize/third_party/rjsmin
335 + third_party/catapult/third_party/beautifulsoup4
336 + third_party/catapult/third_party/html5lib-python
337 + third_party/catapult/third_party/polymer
338 + third_party/catapult/third_party/six
339 + third_party/catapult/tracing/third_party/d3
340 + third_party/catapult/tracing/third_party/gl-matrix
341 + third_party/catapult/tracing/third_party/jpeg-js
342 + third_party/catapult/tracing/third_party/jszip
343 + third_party/catapult/tracing/third_party/mannwhitneyu
344 + third_party/catapult/tracing/third_party/oboe
345 + third_party/catapult/tracing/third_party/pako
346 + third_party/ced
347 + third_party/cld_3
348 + third_party/closure_compiler
349 + third_party/crashpad
350 + third_party/crashpad/crashpad/third_party/lss
351 + third_party/crashpad/crashpad/third_party/zlib
352 + third_party/crc32c
353 + third_party/cros_system_api
354 + third_party/dav1d
355 + third_party/dawn
356 + third_party/dawn/third_party/khronos
357 + third_party/depot_tools
358 + third_party/devscripts
359 + third_party/devtools-frontend
360 + third_party/devtools-frontend/src/front_end/third_party/acorn
361 + third_party/devtools-frontend/src/front_end/third_party/axe-core
362 + third_party/devtools-frontend/src/front_end/third_party/chromium
363 + third_party/devtools-frontend/src/front_end/third_party/codemirror
364 + third_party/devtools-frontend/src/front_end/third_party/fabricjs
365 + third_party/devtools-frontend/src/front_end/third_party/i18n
366 + third_party/devtools-frontend/src/front_end/third_party/intl-messageformat
367 + third_party/devtools-frontend/src/front_end/third_party/lighthouse
368 + third_party/devtools-frontend/src/front_end/third_party/lit-html
369 + third_party/devtools-frontend/src/front_end/third_party/lodash-isequal
370 + third_party/devtools-frontend/src/front_end/third_party/marked
371 + third_party/devtools-frontend/src/front_end/third_party/puppeteer
372 + third_party/devtools-frontend/src/front_end/third_party/wasmparser
373 + third_party/devtools-frontend/src/third_party
374 + third_party/dom_distiller_js
375 + third_party/eigen3
376 + third_party/emoji-segmenter
377 + third_party/farmhash
378 + third_party/fdlibm
379 + third_party/fft2d
380 + third_party/flatbuffers
381 + third_party/freetype
382 + third_party/fusejs
383 + third_party/highway
384 + third_party/libgifcodec
385 + third_party/liburlpattern
386 + third_party/libzip
387 + third_party/gemmlowp
388 + third_party/google_input_tools
389 + third_party/google_input_tools/third_party/closure_library
390 + third_party/google_input_tools/third_party/closure_library/third_party/closure
391 + third_party/googletest
392 + third_party/harfbuzz-ng/utils
393 + third_party/hunspell
394 + third_party/iccjpeg
395 + third_party/inspector_protocol
396 + third_party/jinja2
397 + third_party/jsoncpp
398 + third_party/jstemplate
399 + third_party/khronos
400 + third_party/leveldatabase
401 + third_party/libXNVCtrl
402 + third_party/libaddressinput
403 + third_party/libaom
404 + third_party/libaom/source/libaom/third_party/fastfeat
405 + third_party/libaom/source/libaom/third_party/vector
406 + third_party/libaom/source/libaom/third_party/x86inc
407 + third_party/libavif
408 + third_party/libgav1
409 + third_party/libjingle
410 + third_party/libjxl
411 + third_party/libphonenumber
412 + third_party/libsecret
413 + third_party/libsrtp
414 + third_party/libsync
415 + third_party/libudev
416 + third_party/libva_protected_content
417 + third_party/libvpx
418 + third_party/libvpx/source/libvpx/third_party/x86inc
419 + third_party/libwebm
420 + third_party/libx11
421 + third_party/libxcb-keysyms
422 + third_party/libxml/chromium
423 + third_party/libyuv
424 + third_party/llvm
425 + third_party/lottie
426 + third_party/lss
427 + third_party/lzma_sdk
428 + third_party/mako
429 + third_party/markupsafe
430 + third_party/mesa
431 + third_party/metrics_proto
432 + third_party/minigbm
433 + third_party/modp_b64
434 + third_party/nasm
435 + third_party/nearby
436 + third_party/neon_2_sse
437 + third_party/node
438 + third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2
439 + third_party/one_euro_filter
440 + third_party/opencv
441 + third_party/openscreen
442 + third_party/openscreen/src/third_party/mozilla
443 + third_party/openscreen/src/third_party/tinycbor/src/src
444 + third_party/ots
445 + third_party/pdfium
446 + third_party/pdfium/third_party/agg23
447 + third_party/pdfium/third_party/base
448 + third_party/pdfium/third_party/bigint
449 + third_party/pdfium/third_party/freetype
450 + third_party/pdfium/third_party/lcms
451 + third_party/pdfium/third_party/libopenjpeg20
452 + third_party/pdfium/third_party/libpng16
453 + third_party/pdfium/third_party/libtiff
454 + third_party/pdfium/third_party/skia_shared
455 + third_party/perfetto
456 + third_party/perfetto/protos/third_party/chromium
457 + third_party/pffft
458 + third_party/ply
459 + third_party/polymer
460 + third_party/private-join-and-compute
461 + third_party/private_membership
462 + third_party/protobuf
463 + third_party/protobuf/third_party/six
464 + third_party/pyjson5
465 + third_party/qcms
466 + third_party/rnnoise
467 + third_party/s2cellid
468 + third_party/securemessage
469 + third_party/shell-encryption
470 + third_party/simplejson
471 + third_party/skia
472 + third_party/skia/include/third_party/skcms
473 + third_party/skia/include/third_party/vulkan
474 + third_party/skia/third_party/skcms
475 + third_party/skia/third_party/vulkan
476 + third_party/smhasher
477 + third_party/sqlite
478 + third_party/swiftshader
479 + third_party/swiftshader/third_party/astc-encoder
480 + third_party/swiftshader/third_party/llvm-subzero
481 + third_party/swiftshader/third_party/marl
482 + third_party/swiftshader/third_party/subzero
483 + third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1
484 + third_party/tcmalloc
485 + third_party/tensorflow-text
486 + third_party/tflite
487 + third_party/tflite/src/third_party/eigen3
488 + third_party/tflite/src/third_party/fft2d
489 + third_party/tflite-support
490 + third_party/tint
491 + third_party/ruy
492 + third_party/ukey2
493 + third_party/unrar
494 + third_party/usrsctp
495 + third_party/utf
496 + third_party/vulkan
497 + third_party/web-animations-js
498 + third_party/webdriver
499 + third_party/webgpu-cts
500 + third_party/webrtc
501 + third_party/webrtc/common_audio/third_party/ooura
502 + third_party/webrtc/common_audio/third_party/spl_sqrt_floor
503 + third_party/webrtc/modules/third_party/fft
504 + third_party/webrtc/modules/third_party/g711
505 + third_party/webrtc/modules/third_party/g722
506 + third_party/webrtc/rtc_base/third_party/base64
507 + third_party/webrtc/rtc_base/third_party/sigslot
508 + third_party/widevine
509 + third_party/woff2
510 + third_party/wuffs
511 + third_party/x11proto
512 + third_party/xcbproto
513 + third_party/zxcvbn-cpp
514 + third_party/zlib/google
515 + tools/grit/third_party/six
516 + url/third_party/mozilla
517 + v8/src/third_party/siphash
518 + v8/src/third_party/valgrind
519 + v8/src/third_party/utf8-decoder
520 + v8/third_party/inspector_protocol
521 + v8/third_party/v8
522 +
523 + # gyp -> gn leftovers
524 + base/third_party/libevent
525 + third_party/speech-dispatcher
526 + third_party/usb_ids
527 + third_party/xdg-utils
528 + )
529 + if ! use system-ffmpeg; then
530 + keeplibs+=( third_party/ffmpeg third_party/opus )
531 + fi
532 + if ! use system-icu; then
533 + keeplibs+=( third_party/icu )
534 + fi
535 + if use wayland && ! use headless ; then
536 + keeplibs+=( third_party/wayland )
537 + fi
538 + if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then
539 + keeplibs+=( third_party/libxml )
540 + keeplibs+=( third_party/libxslt )
541 + keeplibs+=( third_party/openh264 )
542 + keeplibs+=( third_party/re2 )
543 + keeplibs+=( third_party/snappy )
544 + if use system-icu; then
545 + keeplibs+=( third_party/icu )
546 + fi
547 + fi
548 + if use arm64 || use ppc64 ; then
549 + keeplibs+=( third_party/swiftshader/third_party/llvm-10.0 )
550 + fi
551 + # we need to generate ppc64 stuff because upstream does not ship it yet
552 + # it has to be done before unbundling.
553 + if use ppc64; then
554 + pushd third_party/libvpx >/dev/null || die
555 + mkdir -p source/config/linux/ppc64 || die
556 + ./generate_gni.sh || die
557 + popd >/dev/null || die
558 + fi
559 +
560 + # Remove most bundled libraries. Some are still needed.
561 + build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die
562 +
563 + if use js-type-check; then
564 + ln -s "${EPREFIX}"/usr/bin/java third_party/jdk/current/bin/java || die
565 + fi
566 +}
567 +
568 +src_configure() {
569 + # Calling this here supports resumption via FEATURES=keepwork
570 + python_setup
571 +
572 + local myconf_gn=""
573 +
574 + # Make sure the build system will use the right tools, bug #340795.
575 + tc-export AR CC CXX NM
576 +
577 + if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then
578 + # Force clang since gcc is pretty broken at the moment.
579 + CC=${CHOST}-clang
580 + CXX=${CHOST}-clang++
581 + strip-unsupported-flags
582 + fi
583 +
584 + if tc-is-clang; then
585 + myconf_gn+=" is_clang=true clang_use_chrome_plugins=false"
586 + else
587 + if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then
588 + die "Compiling with sys-libs/libcxx requires clang."
589 + fi
590 + myconf_gn+=" is_clang=false"
591 + fi
592 +
593 + # Define a custom toolchain for GN
594 + myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\""
595 +
596 + if tc-is-cross-compiler; then
597 + tc-export BUILD_{AR,CC,CXX,NM}
598 + myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\""
599 + myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\""
600 + else
601 + myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\""
602 + fi
603 +
604 + # GN needs explicit config for Debug/Release as opposed to inferring it from build directory.
605 + myconf_gn+=" is_debug=false"
606 +
607 + # Component build isn't generally intended for use by end users. It's mostly useful
608 + # for development and debugging.
609 + myconf_gn+=" is_component_build=$(usex component-build true false)"
610 +
611 + # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
612 + myconf_gn+=" enable_nacl=false"
613 +
614 + # Use system-provided libraries.
615 + # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733).
616 + # TODO: use_system_hunspell (upstream changes needed).
617 + # TODO: use_system_libsrtp (bug #459932).
618 + # TODO: use_system_protobuf (bug #525560).
619 + # TODO: use_system_ssl (http://crbug.com/58087).
620 + # TODO: use_system_sqlite (http://crbug.com/22208).
621 +
622 + # libevent: https://bugs.gentoo.org/593458
623 + local gn_system_libraries=(
624 + flac
625 + fontconfig
626 + freetype
627 + # Need harfbuzz_from_pkgconfig target
628 + #harfbuzz-ng
629 + libdrm
630 + libjpeg
631 + libpng
632 + libwebp
633 + zlib
634 + )
635 + if use system-ffmpeg; then
636 + gn_system_libraries+=( ffmpeg opus )
637 + fi
638 + if use system-icu; then
639 + gn_system_libraries+=( icu )
640 + fi
641 + if [[ ${CHROMIUM_FORCE_LIBCXX} != yes ]]; then
642 + # unbundle only without libc++, because libc++ is not fully ABI compatible with libstdc++
643 + gn_system_libraries+=( libxml )
644 + gn_system_libraries+=( libxslt )
645 + gn_system_libraries+=( openh264 )
646 + gn_system_libraries+=( re2 )
647 + gn_system_libraries+=( snappy )
648 + fi
649 + build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die
650 +
651 + # See dependency logic in third_party/BUILD.gn
652 + myconf_gn+=" use_system_harfbuzz=true"
653 +
654 + # Disable deprecated libgnome-keyring dependency, bug #713012
655 + myconf_gn+=" use_gnome_keyring=false"
656 +
657 + # Optional dependencies.
658 + myconf_gn+=" enable_js_type_check=$(usex js-type-check true false)"
659 + myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)"
660 + myconf_gn+=" enable_widevine=$(usex widevine true false)"
661 + myconf_gn+=" use_cups=$(usex cups true false)"
662 + myconf_gn+=" use_kerberos=$(usex kerberos true false)"
663 + myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)"
664 + myconf_gn+=" use_vaapi=$(usex vaapi true false)"
665 + myconf_gn+=" rtc_use_pipewire=$(usex screencast true false) rtc_pipewire_version=\"0.3\""
666 +
667 + # TODO: link_pulseaudio=true for GN.
668 +
669 + myconf_gn+=" fieldtrial_testing_like_official_build=true"
670 +
671 + # Never use bundled gold binary. Disable gold linker flags for now.
672 + # Do not use bundled clang.
673 + # Trying to use gold results in linker crash.
674 + myconf_gn+=" use_gold=false use_sysroot=false use_custom_libcxx=false"
675 +
676 + # Disable forced lld, bug 641556
677 + myconf_gn+=" use_lld=false"
678 +
679 + # Disable pseudolocales, only used for testing
680 + myconf_gn+=" enable_pseudolocales=false"
681 +
682 + ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
683 + myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)"
684 + myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\""
685 +
686 + # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
687 + # Note: these are for Gentoo use ONLY. For your own distribution,
688 + # please get your own set of keys. Feel free to contact chromium@g.o
689 + # for more info.
690 + local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc"
691 + local google_default_client_id="329227923882.apps.googleusercontent.com"
692 + local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
693 + myconf_gn+=" google_api_key=\"${google_api_key}\""
694 + myconf_gn+=" google_default_client_id=\"${google_default_client_id}\""
695 + myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\""
696 + local myarch="$(tc-arch)"
697 +
698 + # Avoid CFLAGS problems, bug #352457, bug #390147.
699 + if ! use custom-cflags; then
700 + replace-flags "-Os" "-O2"
701 + strip-flags
702 +
703 + # Debug info section overflows without component build
704 + # Prevent linker from running out of address space, bug #471810 .
705 + if ! use component-build || use x86; then
706 + filter-flags "-g*"
707 + fi
708 +
709 + # Prevent libvpx build failures. Bug 530248, 544702, 546984.
710 + if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
711 + filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 -mno-fma -mno-fma4
712 + fi
713 + fi
714 +
715 + if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then
716 + append-flags -stdlib=libc++
717 + append-ldflags -stdlib=libc++
718 + fi
719 +
720 + if [[ $myarch = amd64 ]] ; then
721 + myconf_gn+=" target_cpu=\"x64\""
722 + ffmpeg_target_arch=x64
723 + elif [[ $myarch = x86 ]] ; then
724 + myconf_gn+=" target_cpu=\"x86\""
725 + ffmpeg_target_arch=ia32
726 +
727 + # This is normally defined by compiler_cpu_abi in
728 + # build/config/compiler/BUILD.gn, but we patch that part out.
729 + append-flags -msse2 -mfpmath=sse -mmmx
730 + elif [[ $myarch = arm64 ]] ; then
731 + myconf_gn+=" target_cpu=\"arm64\""
732 + ffmpeg_target_arch=arm64
733 + elif [[ $myarch = arm ]] ; then
734 + myconf_gn+=" target_cpu=\"arm\""
735 + ffmpeg_target_arch=$(usex cpu_flags_arm_neon arm-neon arm)
736 + elif [[ $myarch = ppc64 ]] ; then
737 + myconf_gn+=" target_cpu=\"ppc64\""
738 + ffmpeg_target_arch=ppc64
739 + else
740 + die "Failed to determine target arch, got '$myarch'."
741 + fi
742 +
743 + # Make sure that -Werror doesn't get added to CFLAGS by the build system.
744 + # Depending on GCC version the warnings are different and we don't want
745 + # the build to fail because of that.
746 + myconf_gn+=" treat_warnings_as_errors=false"
747 +
748 + # Disable fatal linker warnings, bug 506268.
749 + myconf_gn+=" fatal_linker_warnings=false"
750 +
751 + # Bug 491582.
752 + export TMPDIR="${WORKDIR}/temp"
753 + mkdir -p -m 755 "${TMPDIR}" || die
754 +
755 + # https://bugs.gentoo.org/654216
756 + addpredict /dev/dri/ #nowarn
757 +
758 + #if ! use system-ffmpeg; then
759 + if false; then
760 + local build_ffmpeg_args=""
761 + if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
762 + build_ffmpeg_args+=" --disable-asm"
763 + fi
764 +
765 + # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
766 + einfo "Configuring bundled ffmpeg..."
767 + pushd third_party/ffmpeg > /dev/null || die
768 + chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
769 + --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
770 + chromium/scripts/copy_config.sh || die
771 + chromium/scripts/generate_gn.py || die
772 + popd > /dev/null || die
773 + fi
774 +
775 + # Chromium relies on this, but was disabled in >=clang-10, crbug.com/1042470
776 + append-cxxflags $(test-flags-CXX -flax-vector-conversions=all)
777 +
778 + # highway/libjxl relies on this with arm64
779 + if use arm64 && tc-is-gcc; then
780 + append-cxxflags -flax-vector-conversions
781 + fi
782 +
783 + # highway/libjxl fail on ppc64 without extra patches, disable for now.
784 + use ppc64 && myconf_gn+=" enable_jxl_decoder=false"
785 +
786 + # Disable unknown warning message from clang.
787 + tc-is-clang && append-flags -Wno-unknown-warning-option
788 +
789 + # Explicitly disable ICU data file support for system-icu builds.
790 + if use system-icu; then
791 + myconf_gn+=" icu_use_data_file=false"
792 + fi
793 +
794 + # Enable ozone wayland and/or headless support
795 + myconf_gn+=" use_ozone=true ozone_auto_platforms=false"
796 + myconf_gn+=" ozone_platform_headless=true"
797 + if use wayland || use headless; then
798 + if use headless; then
799 + myconf_gn+=" ozone_platform=\"headless\""
800 + myconf_gn+=" use_x11=false"
801 + else
802 + myconf_gn+=" ozone_platform_wayland=true"
803 + myconf_gn+=" use_system_libdrm=true"
804 + myconf_gn+=" use_system_minigbm=true"
805 + myconf_gn+=" use_xkbcommon=true"
806 + myconf_gn+=" ozone_platform=\"wayland\""
807 + fi
808 + fi
809 +
810 + # Enable official builds
811 + myconf_gn+=" is_official_build=$(usex official true false)"
812 + myconf_gn+=" use_thin_lto=false"
813 + if use official; then
814 + # Allow building against system libraries in official builds
815 + sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
816 + tools/generate_shim_headers/generate_shim_headers.py || die
817 + # Disable CFI: unsupported for GCC, requires clang+lto+lld
818 + myconf_gn+=" is_cfi=false"
819 + # Disable PGO, because profile data is only compatible with >=clang-11
820 + myconf_gn+=" chrome_pgo_phase=0"
821 + fi
822 +
823 + einfo "Configuring Chromium..."
824 + set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release
825 + echo "$@"
826 + "$@" || die
827 +}
828 +
829 +src_compile() {
830 + # Final link uses lots of file descriptors.
831 + ulimit -n 2048
832 +
833 + # Calling this here supports resumption via FEATURES=keepwork
834 + python_setup
835 +
836 + # https://bugs.gentoo.org/717456
837 + # don't inherit PYTHONPATH from environment, bug #789021
838 + local -x PYTHONPATH="${WORKDIR}/setuptools-44.1.0"
839 +
840 + #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die
841 +
842 + # Build mksnapshot and pax-mark it.
843 + local x
844 + for x in mksnapshot v8_context_snapshot_generator; do
845 + if tc-is-cross-compiler; then
846 + eninja -C out/Release "host/${x}"
847 + pax-mark m "out/Release/host/${x}"
848 + else
849 + eninja -C out/Release "${x}"
850 + pax-mark m "out/Release/${x}"
851 + fi
852 + done
853 +
854 + # Even though ninja autodetects number of CPUs, we respect
855 + # user's options, for debugging with -j 1 or any other reason.
856 + eninja -C out/Release chrome chromedriver
857 + use suid && eninja -C out/Release chrome_sandbox
858 +
859 + pax-mark m out/Release/chrome
860 +
861 + # Build manpage; bug #684550
862 + sed -e 's|@@PACKAGE@@|chromium-browser|g;
863 + s|@@MENUNAME@@|Chromium|g;' \
864 + chrome/app/resources/manpage.1.in > \
865 + out/Release/chromium-browser.1 || die
866 +
867 + # Build desktop file; bug #706786
868 + sed -e 's|@@MENUNAME@@|Chromium|g;
869 + s|@@USR_BIN_SYMLINK_NAME@@|chromium-browser|g;
870 + s|@@PACKAGE@@|chromium-browser|g;
871 + s|\(^Exec=\)/usr/bin/|\1|g;' \
872 + chrome/installer/linux/common/desktop.template > \
873 + out/Release/chromium-browser-chromium.desktop || die
874 +}
875 +
876 +src_install() {
877 + local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
878 + exeinto "${CHROMIUM_HOME}"
879 + doexe out/Release/chrome
880 +
881 + if use suid; then
882 + newexe out/Release/chrome_sandbox chrome-sandbox
883 + fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
884 + fi
885 +
886 + doexe out/Release/chromedriver
887 +
888 + local sedargs=( -e
889 + "s:/usr/lib/:/usr/$(get_libdir)/:g;
890 + s:@@OZONE_AUTO_SESSION@@:$(usex wayland true false):g;
891 + s:@@FORCE_OZONE_PLATFORM@@:$(usex headless true false):g"
892 + )
893 + sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r6.sh" > chromium-launcher.sh || die
894 + doexe chromium-launcher.sh
895 +
896 + # It is important that we name the target "chromium-browser",
897 + # xdg-utils expect it; bug #355517.
898 + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser
899 + # keep the old symlink around for consistency
900 + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium
901 +
902 + dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver
903 +
904 + # Allow users to override command-line options, bug #357629.
905 + insinto /etc/chromium
906 + newins "${FILESDIR}/chromium.default" "default"
907 +
908 + pushd out/Release/locales > /dev/null || die
909 + chromium_remove_language_paks
910 + popd
911 +
912 + insinto "${CHROMIUM_HOME}"
913 + doins out/Release/*.bin
914 + doins out/Release/*.pak
915 + (
916 + shopt -s nullglob
917 + local files=(out/Release/*.so out/Release/*.so.[0-9])
918 + [[ ${#files[@]} -gt 0 ]] && doins "${files[@]}"
919 + )
920 +
921 + if ! use system-icu; then
922 + doins out/Release/icudtl.dat
923 + fi
924 +
925 + doins -r out/Release/locales
926 + doins -r out/Release/resources
927 +
928 + if [[ -d out/Release/swiftshader ]]; then
929 + insinto "${CHROMIUM_HOME}/swiftshader"
930 + doins out/Release/swiftshader/*.so
931 + fi
932 +
933 + # Install icons
934 + local branding size
935 + for size in 16 24 32 48 64 128 256 ; do
936 + case ${size} in
937 + 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
938 + *) branding="chrome/app/theme/chromium" ;;
939 + esac
940 + newicon -s ${size} "${branding}/product_logo_${size}.png" \
941 + chromium-browser.png
942 + done
943 +
944 + # Install desktop entry
945 + domenu out/Release/chromium-browser-chromium.desktop
946 +
947 + # Install GNOME default application entry (bug #303100).
948 + insinto /usr/share/gnome-control-center/default-apps
949 + newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml
950 +
951 + # Install manpage; bug #684550
952 + doman out/Release/chromium-browser.1
953 + dosym chromium-browser.1 /usr/share/man/man1/chromium.1
954 +
955 + readme.gentoo_create_doc
956 +}
957 +
958 +pkg_postrm() {
959 + xdg_icon_cache_update
960 + xdg_desktop_database_update
961 +}
962 +
963 +pkg_postinst() {
964 + xdg_icon_cache_update
965 + xdg_desktop_database_update
966 + readme.gentoo_print_elog
967 +
968 + if use vaapi; then
969 + elog "VA-API is disabled by default at runtime. You have to enable it"
970 + elog "by adding --enable-features=VaapiVideoDecoder to CHROMIUM_FLAGS"
971 + elog "in /etc/chromium/default."
972 + fi
973 + if use screencast; then
974 + elog "Screencast is disabled by default at runtime. Either enable it"
975 + elog "by navigating to chrome://flags/#enable-webrtc-pipewire-capturer"
976 + elog "inside Chromium or add --enable-webrtc-pipewire-capturer"
977 + elog "to CHROMIUM_FLAGS in /etc/chromium/default."
978 + fi
979 +}