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