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