1 |
commit: 0a80fce1e06160885815b51aa22017bbf1732be6 |
2 |
Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 7 21:20:29 2021 +0000 |
4 |
Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 7 21:20:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a80fce1 |
7 |
|
8 |
www-client/chromium: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/828519 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> |
13 |
|
14 |
www-client/chromium/Manifest | 1 - |
15 |
www-client/chromium/chromium-96.0.4664.45.ebuild | 956 --------------------- |
16 |
.../chromium/files/chromium-96-xfce-maximize.patch | 51 -- |
17 |
3 files changed, 1008 deletions(-) |
18 |
|
19 |
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest |
20 |
index 14d8c01c9871..cb9423f163c5 100644 |
21 |
--- a/www-client/chromium/Manifest |
22 |
+++ b/www-client/chromium/Manifest |
23 |
@@ -1,6 +1,5 @@ |
24 |
DIST chromium-96-patchset-4.tar.xz 4812 BLAKE2B 5d82d212b8ec1689be6f4a7a0646256311d06c17e74ee0e5b2035c32125a5235e4b6b7605cefffa367cc53e651be17b75f5e339149b4c80dca50cd959b1623f1 SHA512 a72c1bb2c58e9e2912a641093c153f01ad7239dc971c7c96481ba4164204afe41741f3253e8af03070dab8276179784dc6a11761b39ad7902ed2553016778282 |
25 |
DIST chromium-96-ppc64le-1.tar.xz 29224 BLAKE2B 3369a3b15eb4f42761e01758135995a1f34e40cecbfc0372a4bc17b393d50b276ea5a0813d1c57f73f0dd34cf2a021356d25c2b4dcaa95998ffc082545dc915c SHA512 256d64fbf192e55d77c6580d36766a67dadfbd0f1e34e49bfc6d55114da7f2252d783db0dd09123996a71a01ec4a3d5c70fd1a5c8852db135857b8495f7cfbf1 |
26 |
-DIST chromium-96.0.4664.45.tar.xz 1221965612 BLAKE2B e990a2c3f0ae6d8bc4b6dddbecea2c640bb6491d9b321a301c1f168a35ad37553a23b8290a28dc05d50be005d3ad57fa69af2d3574266b9c83dcd24e65116c35 SHA512 0b1ccaf95697c14cb080dcb22e8584817ddcd98e704d081bc4f35a22dcfc8cca82dcabc4b82ad89ed0cd64752d226f389941bfab33b615e3948e2f778b9d9028 |
27 |
DIST chromium-96.0.4664.93.tar.xz 1209670724 BLAKE2B ebc99f6232fb65874dc73af6157c7175c1b7bf98f800819c343bdb37c42f49369b6af0146a093663a09a2588652eeb196526e9de776098f69e5ba8d75d205e69 SHA512 3441380372014dc338418f494fcd7407dd3888cea07af3415c9e8ff2c3547abbd516ae03eb4b831b89923817046a6d1549fb9558db9aa271aa0ba397e514c0b3 |
28 |
DIST chromium-97-patchset-4.tar.xz 4240 BLAKE2B 450d013b6fd68f7e0bcb21a2b0828d531eda86965e636fe24fc36c2e7e1f74fe93f27f0d4b1d03e67c605797e28db37de4949ff78d5106e07b0362bec4bc5d8a SHA512 181c706c83bdbe07b2e7f02b654922a860aea761ad267e6545fb7d56b66373b003c1c79fae5cd45eeb3be8917782fa45df1c05bbb00e170f0146e7385f4246c4 |
29 |
DIST chromium-97.0.4692.36.tar.xz 1213467240 BLAKE2B 5a21c2b94fce104bef4dba895f170b496167154d0c364631f2f02d62a4ebb3fd0fa9143f570e4aad50d6b84214a6682b297aeef3cf6963fe7948a9b420c777bd SHA512 8aa99149c0bdf740988a0ba2d8e397f29df5b4372c6ab1e6700893e9a5978153c7d9701439ce7925de2ae521da689e5a1116876977e06d0c36350d03e10f8fc0 |
30 |
|
31 |
diff --git a/www-client/chromium/chromium-96.0.4664.45.ebuild b/www-client/chromium/chromium-96.0.4664.45.ebuild |
32 |
deleted file mode 100644 |
33 |
index 5e7bf8cb0468..000000000000 |
34 |
--- a/www-client/chromium/chromium-96.0.4664.45.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,956 +0,0 @@ |
37 |
-# Copyright 2009-2021 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=8 |
41 |
-PYTHON_COMPAT=( python3_{8..10} ) |
42 |
-PYTHON_REQ_USE="xml" |
43 |
- |
44 |
-CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he |
45 |
- 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 |
46 |
- sv sw ta te th tr uk vi zh-CN zh-TW" |
47 |
- |
48 |
-inherit check-reqs chromium-2 desktop flag-o-matic ninja-utils pax-utils python-any-r1 readme.gentoo-r1 toolchain-funcs xdg-utils |
49 |
- |
50 |
-DESCRIPTION="Open-source version of Google Chrome web browser" |
51 |
-HOMEPAGE="https://chromium.org/" |
52 |
-PATCHSET="4" |
53 |
-PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}" |
54 |
-PPC64LE_PATCHSET="1" |
55 |
-SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz |
56 |
- https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz |
57 |
- ppc64? ( https://dev.gentoo.org/~gyakovlev/distfiles/${PN}-$(ver_cut 1)-ppc64le-${PPC64LE_PATCHSET}.tar.xz )" |
58 |
- |
59 |
-LICENSE="BSD" |
60 |
-SLOT="0/stable" |
61 |
-KEYWORDS="amd64 arm64 ~x86" |
62 |
-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 vaapi wayland widevine" |
63 |
-REQUIRED_USE=" |
64 |
- component-build? ( !suid ) |
65 |
- screencast? ( wayland ) |
66 |
-" |
67 |
- |
68 |
-COMMON_X_DEPEND=" |
69 |
- media-libs/mesa:=[gbm(+)] |
70 |
- x11-libs/libX11:= |
71 |
- x11-libs/libXcomposite:= |
72 |
- x11-libs/libXcursor:= |
73 |
- x11-libs/libXdamage:= |
74 |
- x11-libs/libXext:= |
75 |
- x11-libs/libXfixes:= |
76 |
- >=x11-libs/libXi-1.6.0:= |
77 |
- x11-libs/libXrandr:= |
78 |
- x11-libs/libXrender:= |
79 |
- x11-libs/libXtst:= |
80 |
- x11-libs/libxcb:= |
81 |
- x11-libs/libxshmfence:= |
82 |
- vaapi? ( >=x11-libs/libva-2.7:=[X,drm] ) |
83 |
-" |
84 |
- |
85 |
-COMMON_DEPEND=" |
86 |
- app-arch/bzip2:= |
87 |
- cups? ( >=net-print/cups-1.3.11:= ) |
88 |
- dev-libs/expat:= |
89 |
- dev-libs/glib:2 |
90 |
- >=dev-libs/libxml2-2.9.4-r3:=[icu] |
91 |
- dev-libs/nspr:= |
92 |
- >=dev-libs/nss-3.26:= |
93 |
- >=media-libs/alsa-lib-1.0.19:= |
94 |
- media-libs/fontconfig:= |
95 |
- >=media-libs/freetype-2.11.0-r1:= |
96 |
- system-harfbuzz? ( >=media-libs/harfbuzz-2.9.0:0=[icu(-)] ) |
97 |
- media-libs/libjpeg-turbo:= |
98 |
- media-libs/libpng:= |
99 |
- pulseaudio? ( media-sound/pulseaudio:= ) |
100 |
- system-ffmpeg? ( |
101 |
- >=media-video/ffmpeg-4.3:= |
102 |
- || ( |
103 |
- media-video/ffmpeg[-samba] |
104 |
- >=net-fs/samba-4.5.10-r1[-debug(-)] |
105 |
- ) |
106 |
- >=media-libs/opus-1.3.1:= |
107 |
- ) |
108 |
- net-misc/curl[ssl] |
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 |
- $(python_gen_any_dep ' |
146 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
147 |
- ') |
148 |
- >=app-arch/gzip-1.7 |
149 |
- dev-lang/perl |
150 |
- >=dev-util/gn-0.1807 |
151 |
- dev-vcs/git |
152 |
- >=dev-util/gperf-3.0.3 |
153 |
- >=dev-util/ninja-1.7.2 |
154 |
- >=net-libs/nodejs-7.6.0[inspector] |
155 |
- >=sys-devel/bison-2.4.3 |
156 |
- sys-devel/flex |
157 |
- virtual/pkgconfig |
158 |
- js-type-check? ( virtual/jre ) |
159 |
-" |
160 |
- |
161 |
-# These are intended for ebuild maintainer use to force clang if GCC is broken. |
162 |
-: ${CHROMIUM_FORCE_CLANG=no} |
163 |
-: ${CHROMIUM_FORCE_LIBCXX=no} |
164 |
- |
165 |
-if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then |
166 |
- BDEPEND+=" >=sys-devel/clang-12" |
167 |
-fi |
168 |
- |
169 |
-if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
170 |
- RDEPEND+=" >=sys-libs/libcxx-12" |
171 |
- DEPEND+=" >=sys-libs/libcxx-12" |
172 |
-else |
173 |
- COMMON_DEPEND=" |
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 |
-python_check_deps() { |
217 |
- has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]" |
218 |
-} |
219 |
- |
220 |
-pre_build_checks() { |
221 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
222 |
- local -x CPP="$(tc-getCXX) -E" |
223 |
- if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 9.2; then |
224 |
- die "At least gcc 9.2 is required" |
225 |
- fi |
226 |
- if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || tc-is-clang; then |
227 |
- CPP="${CHOST}-clang++ -E" |
228 |
- if ! ver_test "$(clang-major-version)" -ge 12; then |
229 |
- die "At least clang 12 is required" |
230 |
- fi |
231 |
- fi |
232 |
- fi |
233 |
- |
234 |
- # Check build requirements, bug #541816 and bug #471810 . |
235 |
- CHECKREQS_MEMORY="4G" |
236 |
- CHECKREQS_DISK_BUILD="9G" |
237 |
- if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then |
238 |
- if use custom-cflags || use component-build; then |
239 |
- CHECKREQS_DISK_BUILD="25G" |
240 |
- fi |
241 |
- if ! use component-build; then |
242 |
- CHECKREQS_MEMORY="16G" |
243 |
- fi |
244 |
- fi |
245 |
- check-reqs_pkg_setup |
246 |
-} |
247 |
- |
248 |
-pkg_pretend() { |
249 |
- pre_build_checks |
250 |
-} |
251 |
- |
252 |
-pkg_setup() { |
253 |
- pre_build_checks |
254 |
- |
255 |
- chromium_suid_sandbox_check_kernel_config |
256 |
- |
257 |
- # nvidia-drivers does not work correctly with Wayland due to unsupported EGLStreams |
258 |
- if use wayland && ! use headless && has_version "x11-drivers/nvidia-drivers"; then |
259 |
- ewarn "Proprietary nVidia driver does not work with Wayland. You can disable" |
260 |
- ewarn "Wayland by setting DISABLE_OZONE_PLATFORM=true in /etc/chromium/default." |
261 |
- fi |
262 |
-} |
263 |
- |
264 |
-src_prepare() { |
265 |
- # Calling this here supports resumption via FEATURES=keepwork |
266 |
- python_setup |
267 |
- |
268 |
- local PATCHES=( |
269 |
- "${WORKDIR}/patches" |
270 |
- "${FILESDIR}/chromium-93-InkDropHost-crash.patch" |
271 |
- "${FILESDIR}/chromium-96-EnumTable-crash.patch" |
272 |
- "${FILESDIR}/chromium-96-freetype-unbundle.patch" |
273 |
- "${FILESDIR}/chromium-96-xfce-maximize.patch" |
274 |
- "${FILESDIR}/chromium-glibc-2.34.patch" |
275 |
- "${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch" |
276 |
- "${FILESDIR}/chromium-shim_headers.patch" |
277 |
- ) |
278 |
- |
279 |
- use ppc64 && PATCHES+=( "${WORKDIR}/${PN}-ppc64le" ) |
280 |
- |
281 |
- default |
282 |
- |
283 |
- mkdir -p third_party/node/linux/node-linux-x64/bin || die |
284 |
- ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die |
285 |
- |
286 |
- # adjust python interpreter version |
287 |
- sed -i -e "s|\(^script_executable = \).*|\1\"${EPYTHON}\"|g" .gn || die |
288 |
- |
289 |
- local keeplibs=( |
290 |
- base/third_party/cityhash |
291 |
- base/third_party/double_conversion |
292 |
- base/third_party/dynamic_annotations |
293 |
- base/third_party/icu |
294 |
- base/third_party/nspr |
295 |
- base/third_party/superfasthash |
296 |
- base/third_party/symbolize |
297 |
- base/third_party/valgrind |
298 |
- base/third_party/xdg_mime |
299 |
- base/third_party/xdg_user_dirs |
300 |
- buildtools/third_party/libc++ |
301 |
- buildtools/third_party/libc++abi |
302 |
- chrome/third_party/mozilla_security_manager |
303 |
- courgette/third_party |
304 |
- net/third_party/mozilla_security_manager |
305 |
- net/third_party/nss |
306 |
- net/third_party/quic |
307 |
- net/third_party/uri_template |
308 |
- third_party/abseil-cpp |
309 |
- third_party/angle |
310 |
- third_party/angle/src/common/third_party/base |
311 |
- third_party/angle/src/common/third_party/smhasher |
312 |
- third_party/angle/src/common/third_party/xxhash |
313 |
- third_party/angle/src/third_party/libXNVCtrl |
314 |
- third_party/angle/src/third_party/trace_event |
315 |
- third_party/angle/src/third_party/volk |
316 |
- third_party/apple_apsl |
317 |
- third_party/axe-core |
318 |
- third_party/blink |
319 |
- third_party/boringssl |
320 |
- third_party/boringssl/src/third_party/fiat |
321 |
- third_party/breakpad |
322 |
- third_party/breakpad/breakpad/src/third_party/curl |
323 |
- third_party/brotli |
324 |
- third_party/catapult |
325 |
- third_party/catapult/common/py_vulcanize/third_party/rcssmin |
326 |
- third_party/catapult/common/py_vulcanize/third_party/rjsmin |
327 |
- third_party/catapult/third_party/beautifulsoup4-4.9.3 |
328 |
- third_party/catapult/third_party/html5lib-1.1 |
329 |
- third_party/catapult/third_party/polymer |
330 |
- third_party/catapult/third_party/six |
331 |
- third_party/catapult/tracing/third_party/d3 |
332 |
- third_party/catapult/tracing/third_party/gl-matrix |
333 |
- third_party/catapult/tracing/third_party/jpeg-js |
334 |
- third_party/catapult/tracing/third_party/jszip |
335 |
- third_party/catapult/tracing/third_party/mannwhitneyu |
336 |
- third_party/catapult/tracing/third_party/oboe |
337 |
- third_party/catapult/tracing/third_party/pako |
338 |
- third_party/ced |
339 |
- third_party/cld_3 |
340 |
- third_party/closure_compiler |
341 |
- third_party/crashpad |
342 |
- third_party/crashpad/crashpad/third_party/lss |
343 |
- third_party/crashpad/crashpad/third_party/zlib |
344 |
- third_party/crc32c |
345 |
- third_party/cros_system_api |
346 |
- third_party/dav1d |
347 |
- third_party/dawn |
348 |
- third_party/dawn/third_party/khronos |
349 |
- third_party/dawn/third_party/tint |
350 |
- third_party/depot_tools |
351 |
- third_party/devscripts |
352 |
- third_party/devtools-frontend |
353 |
- third_party/devtools-frontend/src/front_end/third_party/acorn |
354 |
- third_party/devtools-frontend/src/front_end/third_party/axe-core |
355 |
- third_party/devtools-frontend/src/front_end/third_party/chromium |
356 |
- third_party/devtools-frontend/src/front_end/third_party/codemirror |
357 |
- third_party/devtools-frontend/src/front_end/third_party/diff |
358 |
- third_party/devtools-frontend/src/front_end/third_party/i18n |
359 |
- third_party/devtools-frontend/src/front_end/third_party/intl-messageformat |
360 |
- third_party/devtools-frontend/src/front_end/third_party/lighthouse |
361 |
- third_party/devtools-frontend/src/front_end/third_party/lit-html |
362 |
- third_party/devtools-frontend/src/front_end/third_party/lodash-isequal |
363 |
- third_party/devtools-frontend/src/front_end/third_party/marked |
364 |
- third_party/devtools-frontend/src/front_end/third_party/puppeteer |
365 |
- third_party/devtools-frontend/src/front_end/third_party/wasmparser |
366 |
- third_party/devtools-frontend/src/test/unittests/front_end/third_party/i18n |
367 |
- third_party/devtools-frontend/src/third_party |
368 |
- third_party/distributed_point_functions |
369 |
- third_party/dom_distiller_js |
370 |
- third_party/eigen3 |
371 |
- third_party/emoji-segmenter |
372 |
- third_party/farmhash |
373 |
- third_party/fdlibm |
374 |
- third_party/fft2d |
375 |
- third_party/flatbuffers |
376 |
- third_party/freetype |
377 |
- third_party/fusejs |
378 |
- third_party/highway |
379 |
- third_party/libgifcodec |
380 |
- third_party/liburlpattern |
381 |
- third_party/libzip |
382 |
- third_party/gemmlowp |
383 |
- third_party/google_input_tools |
384 |
- third_party/google_input_tools/third_party/closure_library |
385 |
- third_party/google_input_tools/third_party/closure_library/third_party/closure |
386 |
- third_party/googletest |
387 |
- third_party/hunspell |
388 |
- third_party/iccjpeg |
389 |
- third_party/inspector_protocol |
390 |
- third_party/jinja2 |
391 |
- third_party/jsoncpp |
392 |
- third_party/jstemplate |
393 |
- third_party/khronos |
394 |
- third_party/leveldatabase |
395 |
- third_party/libXNVCtrl |
396 |
- third_party/libaddressinput |
397 |
- third_party/libaom |
398 |
- third_party/libaom/source/libaom/third_party/fastfeat |
399 |
- third_party/libaom/source/libaom/third_party/vector |
400 |
- third_party/libaom/source/libaom/third_party/x86inc |
401 |
- third_party/libavif |
402 |
- third_party/libgav1 |
403 |
- third_party/libjingle |
404 |
- third_party/libjxl |
405 |
- third_party/libphonenumber |
406 |
- third_party/libsecret |
407 |
- third_party/libsrtp |
408 |
- third_party/libsync |
409 |
- third_party/libudev |
410 |
- third_party/libva_protected_content |
411 |
- third_party/libvpx |
412 |
- third_party/libvpx/source/libvpx/third_party/x86inc |
413 |
- third_party/libwebm |
414 |
- third_party/libx11 |
415 |
- third_party/libxcb-keysyms |
416 |
- third_party/libxml/chromium |
417 |
- third_party/libyuv |
418 |
- third_party/llvm |
419 |
- third_party/lottie |
420 |
- third_party/lss |
421 |
- third_party/lzma_sdk |
422 |
- third_party/mako |
423 |
- third_party/maldoca |
424 |
- third_party/maldoca/src/third_party/tensorflow_protos |
425 |
- third_party/maldoca/src/third_party/zlibwrapper |
426 |
- third_party/markupsafe |
427 |
- third_party/mesa |
428 |
- third_party/metrics_proto |
429 |
- third_party/minigbm |
430 |
- third_party/modp_b64 |
431 |
- third_party/nasm |
432 |
- third_party/nearby |
433 |
- third_party/neon_2_sse |
434 |
- third_party/node |
435 |
- third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 |
436 |
- third_party/one_euro_filter |
437 |
- third_party/opencv |
438 |
- third_party/openscreen |
439 |
- third_party/openscreen/src/third_party/mozilla |
440 |
- third_party/openscreen/src/third_party/tinycbor/src/src |
441 |
- third_party/ots |
442 |
- third_party/pdfium |
443 |
- third_party/pdfium/third_party/agg23 |
444 |
- third_party/pdfium/third_party/base |
445 |
- third_party/pdfium/third_party/bigint |
446 |
- third_party/pdfium/third_party/freetype |
447 |
- third_party/pdfium/third_party/lcms |
448 |
- third_party/pdfium/third_party/libopenjpeg20 |
449 |
- third_party/pdfium/third_party/libpng16 |
450 |
- third_party/pdfium/third_party/libtiff |
451 |
- third_party/pdfium/third_party/skia_shared |
452 |
- third_party/perfetto |
453 |
- third_party/perfetto/protos/third_party/chromium |
454 |
- third_party/pffft |
455 |
- third_party/ply |
456 |
- third_party/polymer |
457 |
- third_party/private-join-and-compute |
458 |
- third_party/private_membership |
459 |
- third_party/protobuf |
460 |
- third_party/protobuf/third_party/six |
461 |
- third_party/pyjson5 |
462 |
- third_party/qcms |
463 |
- third_party/rnnoise |
464 |
- third_party/s2cellid |
465 |
- third_party/securemessage |
466 |
- third_party/shell-encryption |
467 |
- third_party/simplejson |
468 |
- third_party/skia |
469 |
- third_party/skia/include/third_party/skcms |
470 |
- third_party/skia/include/third_party/vulkan |
471 |
- third_party/skia/third_party/skcms |
472 |
- third_party/skia/third_party/vulkan |
473 |
- third_party/smhasher |
474 |
- third_party/snappy |
475 |
- third_party/sqlite |
476 |
- third_party/swiftshader |
477 |
- third_party/swiftshader/third_party/astc-encoder |
478 |
- third_party/swiftshader/third_party/llvm-subzero |
479 |
- third_party/swiftshader/third_party/marl |
480 |
- third_party/swiftshader/third_party/subzero |
481 |
- third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1 |
482 |
- third_party/tcmalloc |
483 |
- third_party/tensorflow-text |
484 |
- third_party/tflite |
485 |
- third_party/tflite/src/third_party/eigen3 |
486 |
- third_party/tflite/src/third_party/fft2d |
487 |
- third_party/ruy |
488 |
- third_party/six |
489 |
- third_party/ukey2 |
490 |
- third_party/unrar |
491 |
- third_party/usrsctp |
492 |
- third_party/utf |
493 |
- third_party/vulkan |
494 |
- third_party/web-animations-js |
495 |
- third_party/webdriver |
496 |
- third_party/webgpu-cts |
497 |
- third_party/webrtc |
498 |
- third_party/webrtc/common_audio/third_party/ooura |
499 |
- third_party/webrtc/common_audio/third_party/spl_sqrt_floor |
500 |
- third_party/webrtc/modules/third_party/fft |
501 |
- third_party/webrtc/modules/third_party/g711 |
502 |
- third_party/webrtc/modules/third_party/g722 |
503 |
- third_party/webrtc/rtc_base/third_party/base64 |
504 |
- third_party/webrtc/rtc_base/third_party/sigslot |
505 |
- third_party/widevine |
506 |
- third_party/woff2 |
507 |
- third_party/wuffs |
508 |
- third_party/x11proto |
509 |
- third_party/xcbproto |
510 |
- third_party/zxcvbn-cpp |
511 |
- third_party/zlib/google |
512 |
- url/third_party/mozilla |
513 |
- v8/src/third_party/siphash |
514 |
- v8/src/third_party/valgrind |
515 |
- v8/src/third_party/utf8-decoder |
516 |
- v8/third_party/inspector_protocol |
517 |
- v8/third_party/v8 |
518 |
- |
519 |
- # gyp -> gn leftovers |
520 |
- base/third_party/libevent |
521 |
- third_party/speech-dispatcher |
522 |
- third_party/usb_ids |
523 |
- third_party/xdg-utils |
524 |
- ) |
525 |
- if ! use system-ffmpeg; then |
526 |
- keeplibs+=( third_party/ffmpeg third_party/opus ) |
527 |
- fi |
528 |
- if ! use system-icu; then |
529 |
- keeplibs+=( third_party/icu ) |
530 |
- fi |
531 |
- if use system-harfbuzz; then |
532 |
- keeplibs+=( third_party/harfbuzz-ng/utils ) |
533 |
- else |
534 |
- keeplibs+=( third_party/harfbuzz-ng ) |
535 |
- fi |
536 |
- if use wayland && ! use headless ; then |
537 |
- keeplibs+=( third_party/wayland ) |
538 |
- fi |
539 |
- if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
540 |
- keeplibs+=( third_party/libxml ) |
541 |
- keeplibs+=( third_party/libxslt ) |
542 |
- keeplibs+=( third_party/openh264 ) |
543 |
- keeplibs+=( third_party/re2 ) |
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 |
- # bundled eu-strip is for amd64 only and we don't want to pre-stripped binaries |
568 |
- mkdir -p buildtools/third_party/eu-strip/bin || die |
569 |
- ln -s "${EPREFIX}"/bin/true buildtools/third_party/eu-strip/bin/eu-strip || die |
570 |
-} |
571 |
- |
572 |
-src_configure() { |
573 |
- # Calling this here supports resumption via FEATURES=keepwork |
574 |
- python_setup |
575 |
- |
576 |
- local myconf_gn="" |
577 |
- |
578 |
- # Make sure the build system will use the right tools, bug #340795. |
579 |
- tc-export AR CC CXX NM |
580 |
- |
581 |
- if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then |
582 |
- # Force clang since gcc is pretty broken at the moment. |
583 |
- CC=${CHOST}-clang |
584 |
- CXX=${CHOST}-clang++ |
585 |
- strip-unsupported-flags |
586 |
- fi |
587 |
- |
588 |
- if tc-is-clang; then |
589 |
- myconf_gn+=" is_clang=true clang_use_chrome_plugins=false" |
590 |
- else |
591 |
- if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
592 |
- die "Compiling with sys-libs/libcxx requires clang." |
593 |
- fi |
594 |
- myconf_gn+=" is_clang=false" |
595 |
- fi |
596 |
- |
597 |
- # Define a custom toolchain for GN |
598 |
- myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
599 |
- |
600 |
- if tc-is-cross-compiler; then |
601 |
- tc-export BUILD_{AR,CC,CXX,NM} |
602 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
603 |
- myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
604 |
- else |
605 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
606 |
- fi |
607 |
- |
608 |
- # GN needs explicit config for Debug/Release as opposed to inferring it from build directory. |
609 |
- myconf_gn+=" is_debug=false" |
610 |
- |
611 |
- # enable DCHECK with USE=debug only, increases chrome binary size by 30%, bug #811138. |
612 |
- # DCHECK is fatal by default, make it configurable at runtime, #bug 807881. |
613 |
- myconf_gn+=" dcheck_always_on=$(usex debug true false)" |
614 |
- myconf_gn+=" dcheck_is_configurable=$(usex debug true false)" |
615 |
- |
616 |
- # Component build isn't generally intended for use by end users. It's mostly useful |
617 |
- # for development and debugging. |
618 |
- myconf_gn+=" is_component_build=$(usex component-build true false)" |
619 |
- |
620 |
- # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
621 |
- myconf_gn+=" enable_nacl=false" |
622 |
- |
623 |
- # Use system-provided libraries. |
624 |
- # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). |
625 |
- # TODO: use_system_hunspell (upstream changes needed). |
626 |
- # TODO: use_system_protobuf (bug #525560). |
627 |
- # TODO: use_system_sqlite (http://crbug.com/22208). |
628 |
- |
629 |
- # libevent: https://bugs.gentoo.org/593458 |
630 |
- local gn_system_libraries=( |
631 |
- flac |
632 |
- fontconfig |
633 |
- freetype |
634 |
- # Need harfbuzz_from_pkgconfig target |
635 |
- #harfbuzz-ng |
636 |
- libdrm |
637 |
- libjpeg |
638 |
- libpng |
639 |
- libwebp |
640 |
- zlib |
641 |
- ) |
642 |
- if use system-ffmpeg; then |
643 |
- gn_system_libraries+=( ffmpeg opus ) |
644 |
- fi |
645 |
- if use system-icu; then |
646 |
- gn_system_libraries+=( icu ) |
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 |
- # Chromium relies on this, but was disabled in >=clang-10, crbug.com/1042470 |
786 |
- append-cxxflags $(test-flags-CXX -flax-vector-conversions=all) |
787 |
- |
788 |
- # highway/libjxl fail on ppc64 without extra patches, disable for now. |
789 |
- use ppc64 && myconf_gn+=" enable_jxl_decoder=false" |
790 |
- |
791 |
- # Disable unknown warning message from clang. |
792 |
- tc-is-clang && append-flags -Wno-unknown-warning-option |
793 |
- |
794 |
- # Explicitly disable ICU data file support for system-icu builds. |
795 |
- if use system-icu; then |
796 |
- myconf_gn+=" icu_use_data_file=false" |
797 |
- fi |
798 |
- |
799 |
- # Enable ozone wayland and/or headless support |
800 |
- myconf_gn+=" use_ozone=true ozone_auto_platforms=false" |
801 |
- myconf_gn+=" ozone_platform_headless=true" |
802 |
- myconf_gn+=" ozone_platform_x11=$(usex headless false true)" |
803 |
- if use wayland || use headless; then |
804 |
- if use headless; then |
805 |
- myconf_gn+=" ozone_platform=\"headless\"" |
806 |
- myconf_gn+=" use_x11=false" |
807 |
- else |
808 |
- myconf_gn+=" ozone_platform_wayland=true" |
809 |
- myconf_gn+=" use_system_libdrm=true" |
810 |
- myconf_gn+=" use_system_minigbm=true" |
811 |
- myconf_gn+=" use_xkbcommon=true" |
812 |
- myconf_gn+=" ozone_platform=\"wayland\"" |
813 |
- fi |
814 |
- else |
815 |
- myconf_gn+=" ozone_platform=\"x11\"" |
816 |
- fi |
817 |
- |
818 |
- # Enable official builds |
819 |
- myconf_gn+=" is_official_build=$(usex official true false)" |
820 |
- myconf_gn+=" use_thin_lto=false" |
821 |
- if use official; then |
822 |
- # Allow building against system libraries in official builds |
823 |
- sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \ |
824 |
- tools/generate_shim_headers/generate_shim_headers.py || die |
825 |
- # Disable CFI: unsupported for GCC, requires clang+lto+lld |
826 |
- myconf_gn+=" is_cfi=false" |
827 |
- # Disable PGO, because profile data is only compatible with >=clang-11 |
828 |
- myconf_gn+=" chrome_pgo_phase=0" |
829 |
- fi |
830 |
- |
831 |
- einfo "Configuring Chromium..." |
832 |
- set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release |
833 |
- echo "$@" |
834 |
- "$@" || die |
835 |
-} |
836 |
- |
837 |
-src_compile() { |
838 |
- # Final link uses lots of file descriptors. |
839 |
- ulimit -n 2048 |
840 |
- |
841 |
- # Calling this here supports resumption via FEATURES=keepwork |
842 |
- python_setup |
843 |
- |
844 |
- # Don't inherit PYTHONPATH from environment, bug #789021, #812689 |
845 |
- local -x PYTHONPATH= |
846 |
- |
847 |
- #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die |
848 |
- |
849 |
- # Build mksnapshot and pax-mark it. |
850 |
- local x |
851 |
- for x in mksnapshot v8_context_snapshot_generator; do |
852 |
- if tc-is-cross-compiler; then |
853 |
- eninja -C out/Release "host/${x}" |
854 |
- pax-mark m "out/Release/host/${x}" |
855 |
- else |
856 |
- eninja -C out/Release "${x}" |
857 |
- pax-mark m "out/Release/${x}" |
858 |
- fi |
859 |
- done |
860 |
- |
861 |
- # Even though ninja autodetects number of CPUs, we respect |
862 |
- # user's options, for debugging with -j 1 or any other reason. |
863 |
- eninja -C out/Release chrome chromedriver |
864 |
- use suid && eninja -C out/Release chrome_sandbox |
865 |
- |
866 |
- pax-mark m out/Release/chrome |
867 |
- |
868 |
- mv out/Release/chromedriver{.unstripped,} || die |
869 |
- |
870 |
- # Build manpage; bug #684550 |
871 |
- sed -e 's|@@PACKAGE@@|chromium-browser|g; |
872 |
- s|@@MENUNAME@@|Chromium|g;' \ |
873 |
- chrome/app/resources/manpage.1.in > \ |
874 |
- out/Release/chromium-browser.1 || die |
875 |
- |
876 |
- # Build desktop file; bug #706786 |
877 |
- sed -e 's|@@MENUNAME@@|Chromium|g; |
878 |
- s|@@USR_BIN_SYMLINK_NAME@@|chromium-browser|g; |
879 |
- s|@@PACKAGE@@|chromium-browser|g; |
880 |
- s|\(^Exec=\)/usr/bin/|\1|g;' \ |
881 |
- chrome/installer/linux/common/desktop.template > \ |
882 |
- out/Release/chromium-browser-chromium.desktop || die |
883 |
-} |
884 |
- |
885 |
-src_install() { |
886 |
- local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
887 |
- exeinto "${CHROMIUM_HOME}" |
888 |
- doexe out/Release/chrome |
889 |
- |
890 |
- if use suid; then |
891 |
- newexe out/Release/chrome_sandbox chrome-sandbox |
892 |
- fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
893 |
- fi |
894 |
- |
895 |
- doexe out/Release/chromedriver |
896 |
- doexe out/Release/chrome_crashpad_handler |
897 |
- |
898 |
- ozone_auto_session () { |
899 |
- use wayland && ! use headless && echo true || echo false |
900 |
- } |
901 |
- local sedargs=( -e |
902 |
- "s:/usr/lib/:/usr/$(get_libdir)/:g; |
903 |
- s:@@OZONE_AUTO_SESSION@@:$(ozone_auto_session):g" |
904 |
- ) |
905 |
- sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r7.sh" > chromium-launcher.sh || die |
906 |
- doexe chromium-launcher.sh |
907 |
- |
908 |
- # It is important that we name the target "chromium-browser", |
909 |
- # xdg-utils expect it; bug #355517. |
910 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser |
911 |
- # keep the old symlink around for consistency |
912 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium |
913 |
- |
914 |
- dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver |
915 |
- |
916 |
- # Allow users to override command-line options, bug #357629. |
917 |
- insinto /etc/chromium |
918 |
- newins "${FILESDIR}/chromium.default" "default" |
919 |
- |
920 |
- pushd out/Release/locales > /dev/null || die |
921 |
- chromium_remove_language_paks |
922 |
- popd |
923 |
- |
924 |
- insinto "${CHROMIUM_HOME}" |
925 |
- doins out/Release/*.bin |
926 |
- doins out/Release/*.pak |
927 |
- ( |
928 |
- shopt -s nullglob |
929 |
- local files=(out/Release/*.so out/Release/*.so.[0-9]) |
930 |
- [[ ${#files[@]} -gt 0 ]] && doins "${files[@]}" |
931 |
- ) |
932 |
- |
933 |
- if ! use system-icu; then |
934 |
- doins out/Release/icudtl.dat |
935 |
- fi |
936 |
- |
937 |
- doins -r out/Release/locales |
938 |
- doins -r out/Release/resources |
939 |
- doins -r out/Release/MEIPreload |
940 |
- |
941 |
- if [[ -d out/Release/swiftshader ]]; then |
942 |
- insinto "${CHROMIUM_HOME}/swiftshader" |
943 |
- doins out/Release/swiftshader/*.so |
944 |
- fi |
945 |
- |
946 |
- # Install icons |
947 |
- local branding size |
948 |
- for size in 16 24 32 48 64 128 256 ; do |
949 |
- case ${size} in |
950 |
- 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
951 |
- *) branding="chrome/app/theme/chromium" ;; |
952 |
- esac |
953 |
- newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
954 |
- chromium-browser.png |
955 |
- done |
956 |
- |
957 |
- # Install desktop entry |
958 |
- domenu out/Release/chromium-browser-chromium.desktop |
959 |
- |
960 |
- # Install GNOME default application entry (bug #303100). |
961 |
- insinto /usr/share/gnome-control-center/default-apps |
962 |
- newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml |
963 |
- |
964 |
- # Install manpage; bug #684550 |
965 |
- doman out/Release/chromium-browser.1 |
966 |
- dosym chromium-browser.1 /usr/share/man/man1/chromium.1 |
967 |
- |
968 |
- readme.gentoo_create_doc |
969 |
-} |
970 |
- |
971 |
-pkg_postrm() { |
972 |
- xdg_icon_cache_update |
973 |
- xdg_desktop_database_update |
974 |
-} |
975 |
- |
976 |
-pkg_postinst() { |
977 |
- xdg_icon_cache_update |
978 |
- xdg_desktop_database_update |
979 |
- readme.gentoo_print_elog |
980 |
- |
981 |
- if use vaapi; then |
982 |
- elog "VA-API is disabled by default at runtime. You have to enable it" |
983 |
- elog "by adding --enable-features=VaapiVideoDecoder to CHROMIUM_FLAGS" |
984 |
- elog "in /etc/chromium/default." |
985 |
- fi |
986 |
- if use screencast; then |
987 |
- elog "Screencast is disabled by default at runtime. Either enable it" |
988 |
- elog "by navigating to chrome://flags/#enable-webrtc-pipewire-capturer" |
989 |
- elog "inside Chromium or add --enable-webrtc-pipewire-capturer" |
990 |
- elog "to CHROMIUM_FLAGS in /etc/chromium/default." |
991 |
- fi |
992 |
-} |
993 |
|
994 |
diff --git a/www-client/chromium/files/chromium-96-xfce-maximize.patch b/www-client/chromium/files/chromium-96-xfce-maximize.patch |
995 |
deleted file mode 100644 |
996 |
index 77cf410cfe95..000000000000 |
997 |
--- a/www-client/chromium/files/chromium-96-xfce-maximize.patch |
998 |
+++ /dev/null |
999 |
@@ -1,51 +0,0 @@ |
1000 |
-From 245e71ae8de3f4b5f3478739be819981bb12dfab Mon Sep 17 00:00:00 2001 |
1001 |
-From: Alexander Dunaev <adunaev@××××××.com> |
1002 |
-Date: Sat, 13 Nov 2021 06:35:35 +0000 |
1003 |
-Subject: [PATCH] [linux/xfce] Introduced a hack for Xfwm. |
1004 |
- |
1005 |
-This proposes an alternative to [1]. Either this patch or that one |
1006 |
-should be landed, but not both. See the linked crbug for the details. |
1007 |
- |
1008 |
-Setting the frame extents via the _GTK_FRAME_EXTENTS property turned out |
1009 |
-to be problematic at Xfwm. While the issue is agreed to be a bug in the |
1010 |
-window manager, for now we disable setting the frame extents on that WM. |
1011 |
- |
1012 |
-This patch introduces a logic that disables setting the window property |
1013 |
-on Xfwm. |
1014 |
- |
1015 |
-[1] https://chromium-review.googlesource.com/c/chromium/src/+/3275653 |
1016 |
- |
1017 |
-Bug: 1260821 |
1018 |
-Change-Id: I4b734ac0dc2b97d7ed6b1842564a33ec6e4b4035 |
1019 |
-Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3275272 |
1020 |
-Reviewed-by: Thomas Anderson <thomasanderson@××××××××.org> |
1021 |
-Commit-Queue: Alexander Dunaev <adunaev@××××××.com> |
1022 |
-Cr-Commit-Position: refs/heads/main@{#941444} |
1023 |
---- |
1024 |
- |
1025 |
-diff --git a/ui/platform_window/x11/x11_window.cc b/ui/platform_window/x11/x11_window.cc |
1026 |
-index 2b20835..4fa2992 100644 |
1027 |
---- a/ui/platform_window/x11/x11_window.cc |
1028 |
-+++ b/ui/platform_window/x11/x11_window.cc |
1029 |
-@@ -1016,6 +1016,21 @@ |
1030 |
- } |
1031 |
- |
1032 |
- bool X11Window::CanSetDecorationInsets() const { |
1033 |
-+ // Xfwm handles _GTK_FRAME_EXTENTS a bit unexpected way. That is a known bug |
1034 |
-+ // that will be eventually fixed, but for now we have to disable the function |
1035 |
-+ // for Xfce. The block below should be removed when Xfwm is updated with the |
1036 |
-+ // fix and is known to work properly. |
1037 |
-+ // See https://crbug.com/1260821. |
1038 |
-+ { |
1039 |
-+ static WindowManagerName wm_name = WM_OTHER; |
1040 |
-+ static bool checked_for_wm = false; |
1041 |
-+ if (!checked_for_wm) { |
1042 |
-+ wm_name = GuessWindowManager(); |
1043 |
-+ checked_for_wm = true; |
1044 |
-+ } |
1045 |
-+ if (wm_name == WM_XFWM4) |
1046 |
-+ return false; |
1047 |
-+ } |
1048 |
- return ui::WmSupportsHint(x11::GetAtom("_GTK_FRAME_EXTENTS")); |
1049 |
- } |
1050 |
- |