1 |
commit: 4a826d9bc6c0cbde8da87ab712e276c4a8c5f211 |
2 |
Author: Stephan Hartmann <stha09 <AT> googlemail <DOT> com> |
3 |
AuthorDate: Sun Jun 28 16:25:17 2020 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 28 21:02:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a826d9b |
7 |
|
8 |
www-client/chromium: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/729310 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Stephan Hartmann <stha09 <AT> googlemail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/16475 |
14 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
15 |
|
16 |
www-client/chromium/Manifest | 1 - |
17 |
www-client/chromium/chromium-83.0.4103.106.ebuild | 820 ---------------------- |
18 |
2 files changed, 821 deletions(-) |
19 |
|
20 |
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest |
21 |
index 39875559fb8..d738c1693e3 100644 |
22 |
--- a/www-client/chromium/Manifest |
23 |
+++ b/www-client/chromium/Manifest |
24 |
@@ -1,4 +1,3 @@ |
25 |
-DIST chromium-83.0.4103.106.tar.xz 802630620 BLAKE2B b145fd04347ef252778c99931d2e6aebc4cb9c3b4340db13ede074ac0631fef3c530b6b8c348ad33576a1da828817a590339206cf941729ee01444350bec1683 SHA512 37d0298ec6794f753bc280352c9ea45d57dd5050240d468fd2a7465b2021ebb598cdc6c4538050dd1d626bcd4a146af87fb837619e08766d38d21821605bd3a8 |
26 |
DIST chromium-83.0.4103.116.tar.xz 802626772 BLAKE2B 6890d8f4a4a9b12ab56a63e037129f6b77f03f95a841494505fdbbe212b0dd756e5558bddd7ee186669929c6069568c76b70b179fe4a58ccad465f2d4677d6e5 SHA512 dbd92fb04183ec1402401388f70b18b95040083c9ea8bf2ea6b1692fddc375b090968b13afb010ebf412b480b34747eb2c82709adbeb386cccf60b972f23254f |
27 |
DIST chromium-84-patchset-3.tar.xz 20148 BLAKE2B d910570b43f63bcf4ead90ca4e4005a08d7c85b5b4e7af2a70ec4bc18265cbe8b075523878710075cfee4e0631eb3374e1e6d06251f4bf03377954807b1951e9 SHA512 316db8b0359b10a988242a0d665475d912fa9b610a547478d8c39b337afc02780a54d7024e231eb4fd402063cf439f6e2b4bb92a4968c8e0c3e69d84a2ae1664 |
28 |
DIST chromium-84.0.4147.68.tar.xz 845188784 BLAKE2B a0185a5aacc1297f6240e2d887e980c69ba1219267714fb82c87e2ec31e4a3bee24ea9c059fc4f56dcc5c3e576d0baf5b59ec3576fc266daac583cf2b2917b56 SHA512 c5304dfa76ec9bf1d7e96116b6560b77d636eaa226acf7be46798f4b161c6aba90c54bec797dfbf1e48ece46d4e52e44737ed68457f9b10bbc11658a9020bffd |
29 |
|
30 |
diff --git a/www-client/chromium/chromium-83.0.4103.106.ebuild b/www-client/chromium/chromium-83.0.4103.106.ebuild |
31 |
deleted file mode 100644 |
32 |
index 2a4c9b76532..00000000000 |
33 |
--- a/www-client/chromium/chromium-83.0.4103.106.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,820 +0,0 @@ |
36 |
-# Copyright 2009-2020 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
-PYTHON_COMPAT=( python2_7 ) |
41 |
- |
42 |
-CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he |
43 |
- hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr |
44 |
- sv sw ta te th tr uk vi zh-CN zh-TW" |
45 |
- |
46 |
-inherit check-reqs chromium-2 desktop flag-o-matic multilib ninja-utils pax-utils portability python-any-r1 readme.gentoo-r1 toolchain-funcs xdg-utils |
47 |
- |
48 |
-DESCRIPTION="Open-source version of Google Chrome web browser" |
49 |
-HOMEPAGE="https://chromium.org/" |
50 |
-SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz |
51 |
- https://files.pythonhosted.org/packages/ed/7b/bbf89ca71e722b7f9464ebffe4b5ee20a9e5c9a555a56e2d3914bb9119a6/setuptools-44.1.0.zip" |
52 |
- |
53 |
-LICENSE="BSD" |
54 |
-SLOT="0" |
55 |
-KEYWORDS="amd64 ~arm64 ~x86" |
56 |
-IUSE="+closure-compile component-build cups cpu_flags_arm_neon +hangouts kerberos pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine" |
57 |
-RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" |
58 |
-REQUIRED_USE="component-build? ( !suid )" |
59 |
- |
60 |
-COMMON_DEPEND=" |
61 |
- >=app-accessibility/at-spi2-atk-2.26:2 |
62 |
- app-arch/bzip2:= |
63 |
- cups? ( >=net-print/cups-1.3.11:= ) |
64 |
- >=dev-libs/atk-2.26 |
65 |
- dev-libs/expat:= |
66 |
- dev-libs/glib:2 |
67 |
- >=dev-libs/libxml2-2.9.4-r3:=[icu] |
68 |
- dev-libs/nspr:= |
69 |
- >=dev-libs/nss-3.26:= |
70 |
- >=media-libs/alsa-lib-1.0.19:= |
71 |
- media-libs/fontconfig:= |
72 |
- media-libs/freetype:= |
73 |
- >=media-libs/harfbuzz-2.4.0:0=[icu(-)] |
74 |
- media-libs/libjpeg-turbo:= |
75 |
- media-libs/libpng:= |
76 |
- media-libs/mesa:=[gbm] |
77 |
- system-libvpx? ( >=media-libs/libvpx-1.8.2:=[postproc,svc] ) |
78 |
- pulseaudio? ( media-sound/pulseaudio:= ) |
79 |
- system-ffmpeg? ( |
80 |
- >=media-video/ffmpeg-4:= |
81 |
- || ( |
82 |
- media-video/ffmpeg[-samba] |
83 |
- >=net-fs/samba-4.5.10-r1[-debug(-)] |
84 |
- ) |
85 |
- >=media-libs/opus-1.3.1:= |
86 |
- ) |
87 |
- sys-apps/dbus:= |
88 |
- sys-apps/pciutils:= |
89 |
- virtual/udev |
90 |
- x11-libs/cairo:= |
91 |
- x11-libs/gdk-pixbuf:2 |
92 |
- x11-libs/gtk+:3[X] |
93 |
- x11-libs/libX11:= |
94 |
- x11-libs/libXcomposite:= |
95 |
- x11-libs/libXcursor:= |
96 |
- x11-libs/libXdamage:= |
97 |
- x11-libs/libXext:= |
98 |
- x11-libs/libXfixes:= |
99 |
- >=x11-libs/libXi-1.6.0:= |
100 |
- x11-libs/libXrandr:= |
101 |
- x11-libs/libXrender:= |
102 |
- x11-libs/libXScrnSaver:= |
103 |
- x11-libs/libXtst:= |
104 |
- x11-libs/pango:= |
105 |
- media-libs/flac:= |
106 |
- >=media-libs/libwebp-0.4.0:= |
107 |
- sys-libs/zlib:=[minizip] |
108 |
- kerberos? ( virtual/krb5 ) |
109 |
-" |
110 |
-# For nvidia-drivers blocker, see bug #413637 . |
111 |
-RDEPEND="${COMMON_DEPEND} |
112 |
- x11-misc/xdg-utils |
113 |
- virtual/opengl |
114 |
- virtual/ttf-fonts |
115 |
- selinux? ( sec-policy/selinux-chromium ) |
116 |
- tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 ) |
117 |
-" |
118 |
-DEPEND="${COMMON_DEPEND} |
119 |
-" |
120 |
-# dev-vcs/git - https://bugs.gentoo.org/593476 |
121 |
-BDEPEND=" |
122 |
- ${PYTHON_DEPS} |
123 |
- >=app-arch/gzip-1.7 |
124 |
- app-arch/unzip |
125 |
- dev-lang/perl |
126 |
- >=dev-util/gn-0.1726 |
127 |
- dev-vcs/git |
128 |
- >=dev-util/gperf-3.0.3 |
129 |
- >=dev-util/ninja-1.7.2 |
130 |
- >=net-libs/nodejs-7.6.0[inspector] |
131 |
- sys-apps/hwids[usb(+)] |
132 |
- >=sys-devel/bison-2.4.3 |
133 |
- sys-devel/flex |
134 |
- virtual/pkgconfig |
135 |
- closure-compile? ( virtual/jre ) |
136 |
- !system-libvpx? ( |
137 |
- amd64? ( dev-lang/yasm ) |
138 |
- x86? ( dev-lang/yasm ) |
139 |
- ) |
140 |
-" |
141 |
- |
142 |
-: ${CHROMIUM_FORCE_CLANG=no} |
143 |
-: ${CHROMIUM_FORCE_LIBCXX=no} |
144 |
- |
145 |
-if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then |
146 |
- BDEPEND+=" >=sys-devel/clang-9" |
147 |
-fi |
148 |
- |
149 |
-if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
150 |
- RDEPEND+=" >=sys-libs/libcxx-9" |
151 |
- DEPEND+=" >=sys-libs/libcxx-9" |
152 |
- BDEPEND+=" |
153 |
- amd64? ( dev-lang/yasm ) |
154 |
- x86? ( dev-lang/yasm ) |
155 |
- " |
156 |
-else |
157 |
- COMMON_DEPEND=" |
158 |
- app-arch/snappy:= |
159 |
- dev-libs/libxslt:= |
160 |
- >=dev-libs/re2-0.2019.08.01:= |
161 |
- >=media-libs/openh264-1.6.0:= |
162 |
- system-icu? ( >=dev-libs/icu-67.1:= ) |
163 |
- " |
164 |
- RDEPEND+="${COMMON_DEPEND}" |
165 |
- DEPEND+="${COMMON_DEPEND}" |
166 |
-fi |
167 |
- |
168 |
-if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
169 |
- EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
170 |
-fi |
171 |
- |
172 |
-DISABLE_AUTOFORMATTING="yes" |
173 |
-DOC_CONTENTS=" |
174 |
-Some web pages may require additional fonts to display properly. |
175 |
-Try installing some of the following packages if some characters |
176 |
-are not displayed properly: |
177 |
-- media-fonts/arphicfonts |
178 |
-- media-fonts/droid |
179 |
-- media-fonts/ipamonafont |
180 |
-- media-fonts/noto |
181 |
-- media-fonts/ja-ipafonts |
182 |
-- media-fonts/takao-fonts |
183 |
-- media-fonts/wqy-microhei |
184 |
-- media-fonts/wqy-zenhei |
185 |
- |
186 |
-To fix broken icons on the Downloads page, you should install an icon |
187 |
-theme that covers the appropriate MIME types, and configure this as your |
188 |
-GTK+ icon theme. |
189 |
- |
190 |
-For native file dialogs in KDE, install kde-apps/kdialog. |
191 |
- |
192 |
-To make password storage work with your desktop environment you may |
193 |
-have install one of the supported credentials management applications: |
194 |
-- app-crypt/libsecret (GNOME) |
195 |
-- kde-frameworks/kwallet (KDE) |
196 |
-If you have one of above packages installed, but don't want to use |
197 |
-them in Chromium, then add --password-store=basic to CHROMIUM_FLAGS |
198 |
-in /etc/chromium/default. |
199 |
-" |
200 |
- |
201 |
-PATCHES=( |
202 |
- "${FILESDIR}/chromium-compiler-r12.patch" |
203 |
- "${FILESDIR}/chromium-fix-char_traits.patch" |
204 |
- "${FILESDIR}/chromium-blink-style_format.patch" |
205 |
- "${FILESDIR}/chromium-78-protobuf-export.patch" |
206 |
- "${FILESDIR}/chromium-79-gcc-alignas.patch" |
207 |
- "${FILESDIR}/chromium-80-gcc-quiche.patch" |
208 |
- "${FILESDIR}/chromium-82-gcc-noexcept.patch" |
209 |
- "${FILESDIR}/chromium-82-gcc-incomplete-type.patch" |
210 |
- "${FILESDIR}/chromium-82-gcc-template.patch" |
211 |
- "${FILESDIR}/chromium-82-gcc-iterator.patch" |
212 |
- "${FILESDIR}/chromium-83-gcc-template.patch" |
213 |
- "${FILESDIR}/chromium-83-gcc-include.patch" |
214 |
- "${FILESDIR}/chromium-83-gcc-permissive.patch" |
215 |
- "${FILESDIR}/chromium-83-gcc-iterator.patch" |
216 |
- "${FILESDIR}/chromium-83-gcc-serviceworker.patch" |
217 |
- "${FILESDIR}/chromium-83-gcc-compatibility.patch" |
218 |
- "${FILESDIR}/chromium-83-gcc-10.patch" |
219 |
- "${FILESDIR}/chromium-83-icu67.patch" |
220 |
- "${FILESDIR}/chromium-81-re2-0.2020.05.01.patch" |
221 |
-) |
222 |
- |
223 |
-pre_build_checks() { |
224 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
225 |
- local -x CPP="$(tc-getCXX) -E" |
226 |
- if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 8.0; then |
227 |
- die "At least gcc 8.0 is required" |
228 |
- fi |
229 |
- # component build hangs with tcmalloc enabled due to sandbox issue, bug #695976. |
230 |
- if has usersandbox ${FEATURES} && use tcmalloc && use component-build; then |
231 |
- die "Component build with tcmalloc requires FEATURES=-usersandbox." |
232 |
- fi |
233 |
- if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || tc-is-clang; then |
234 |
- if use component-build; then |
235 |
- die "Component build with clang requires fuzzer headers." |
236 |
- fi |
237 |
- fi |
238 |
- fi |
239 |
- |
240 |
- # Check build requirements, bug #541816 and bug #471810 . |
241 |
- CHECKREQS_MEMORY="3G" |
242 |
- CHECKREQS_DISK_BUILD="7G" |
243 |
- if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then |
244 |
- if use custom-cflags || use component-build; then |
245 |
- CHECKREQS_DISK_BUILD="25G" |
246 |
- fi |
247 |
- if ! use component-build; then |
248 |
- CHECKREQS_MEMORY="16G" |
249 |
- fi |
250 |
- fi |
251 |
- check-reqs_pkg_setup |
252 |
-} |
253 |
- |
254 |
-pkg_pretend() { |
255 |
- pre_build_checks |
256 |
-} |
257 |
- |
258 |
-pkg_setup() { |
259 |
- pre_build_checks |
260 |
- |
261 |
- chromium_suid_sandbox_check_kernel_config |
262 |
-} |
263 |
- |
264 |
-src_prepare() { |
265 |
- # Calling this here supports resumption via FEATURES=keepwork |
266 |
- python_setup |
267 |
- |
268 |
- default |
269 |
- |
270 |
- mkdir -p third_party/node/linux/node-linux-x64/bin || die |
271 |
- ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die |
272 |
- |
273 |
- local keeplibs=( |
274 |
- base/third_party/cityhash |
275 |
- base/third_party/double_conversion |
276 |
- base/third_party/dynamic_annotations |
277 |
- base/third_party/icu |
278 |
- base/third_party/nspr |
279 |
- base/third_party/superfasthash |
280 |
- base/third_party/symbolize |
281 |
- base/third_party/valgrind |
282 |
- base/third_party/xdg_mime |
283 |
- base/third_party/xdg_user_dirs |
284 |
- buildtools/third_party/libc++ |
285 |
- buildtools/third_party/libc++abi |
286 |
- chrome/third_party/mozilla_security_manager |
287 |
- courgette/third_party |
288 |
- net/third_party/mozilla_security_manager |
289 |
- net/third_party/nss |
290 |
- net/third_party/quic |
291 |
- net/third_party/uri_template |
292 |
- third_party/abseil-cpp |
293 |
- third_party/angle |
294 |
- third_party/angle/src/common/third_party/base |
295 |
- third_party/angle/src/common/third_party/smhasher |
296 |
- third_party/angle/src/common/third_party/xxhash |
297 |
- third_party/angle/src/third_party/compiler |
298 |
- third_party/angle/src/third_party/libXNVCtrl |
299 |
- third_party/angle/src/third_party/trace_event |
300 |
- third_party/angle/src/third_party/volk |
301 |
- third_party/angle/third_party/glslang |
302 |
- third_party/angle/third_party/spirv-headers |
303 |
- third_party/angle/third_party/spirv-tools |
304 |
- third_party/angle/third_party/vulkan-headers |
305 |
- third_party/angle/third_party/vulkan-loader |
306 |
- third_party/angle/third_party/vulkan-tools |
307 |
- third_party/angle/third_party/vulkan-validation-layers |
308 |
- third_party/apple_apsl |
309 |
- third_party/axe-core |
310 |
- third_party/blink |
311 |
- third_party/boringssl |
312 |
- third_party/boringssl/src/third_party/fiat |
313 |
- third_party/breakpad |
314 |
- third_party/breakpad/breakpad/src/third_party/curl |
315 |
- third_party/brotli |
316 |
- third_party/cacheinvalidation |
317 |
- third_party/catapult |
318 |
- third_party/catapult/common/py_vulcanize/third_party/rcssmin |
319 |
- third_party/catapult/common/py_vulcanize/third_party/rjsmin |
320 |
- third_party/catapult/third_party/beautifulsoup4 |
321 |
- third_party/catapult/third_party/html5lib-python |
322 |
- third_party/catapult/third_party/polymer |
323 |
- third_party/catapult/third_party/six |
324 |
- third_party/catapult/tracing/third_party/d3 |
325 |
- third_party/catapult/tracing/third_party/gl-matrix |
326 |
- third_party/catapult/tracing/third_party/jpeg-js |
327 |
- third_party/catapult/tracing/third_party/jszip |
328 |
- third_party/catapult/tracing/third_party/mannwhitneyu |
329 |
- third_party/catapult/tracing/third_party/oboe |
330 |
- third_party/catapult/tracing/third_party/pako |
331 |
- third_party/ced |
332 |
- third_party/cld_3 |
333 |
- third_party/closure_compiler |
334 |
- third_party/crashpad |
335 |
- third_party/crashpad/crashpad/third_party/lss |
336 |
- third_party/crashpad/crashpad/third_party/zlib |
337 |
- third_party/crc32c |
338 |
- third_party/cros_system_api |
339 |
- third_party/dav1d |
340 |
- third_party/dawn |
341 |
- third_party/depot_tools |
342 |
- third_party/devscripts |
343 |
- third_party/devtools-frontend |
344 |
- third_party/devtools-frontend/src/front_end/third_party/fabricjs |
345 |
- third_party/devtools-frontend/src/front_end/third_party/lighthouse |
346 |
- third_party/devtools-frontend/src/front_end/third_party/wasmparser |
347 |
- third_party/devtools-frontend/src/third_party |
348 |
- third_party/dom_distiller_js |
349 |
- third_party/emoji-segmenter |
350 |
- third_party/flatbuffers |
351 |
- third_party/freetype |
352 |
- third_party/libgifcodec |
353 |
- third_party/glslang |
354 |
- third_party/google_input_tools |
355 |
- third_party/google_input_tools/third_party/closure_library |
356 |
- third_party/google_input_tools/third_party/closure_library/third_party/closure |
357 |
- third_party/googletest |
358 |
- third_party/harfbuzz-ng/utils |
359 |
- third_party/hunspell |
360 |
- third_party/iccjpeg |
361 |
- third_party/inspector_protocol |
362 |
- third_party/jinja2 |
363 |
- third_party/jsoncpp |
364 |
- third_party/jstemplate |
365 |
- third_party/khronos |
366 |
- third_party/leveldatabase |
367 |
- third_party/libXNVCtrl |
368 |
- third_party/libaddressinput |
369 |
- third_party/libaom |
370 |
- third_party/libaom/source/libaom/third_party/vector |
371 |
- third_party/libaom/source/libaom/third_party/x86inc |
372 |
- third_party/libjingle |
373 |
- third_party/libphonenumber |
374 |
- third_party/libsecret |
375 |
- third_party/libsrtp |
376 |
- third_party/libsync |
377 |
- third_party/libudev |
378 |
- third_party/libwebm |
379 |
- third_party/libxml/chromium |
380 |
- third_party/libyuv |
381 |
- third_party/llvm |
382 |
- third_party/lss |
383 |
- third_party/lzma_sdk |
384 |
- third_party/mako |
385 |
- third_party/markupsafe |
386 |
- third_party/mesa |
387 |
- third_party/metrics_proto |
388 |
- third_party/modp_b64 |
389 |
- third_party/nasm |
390 |
- third_party/node |
391 |
- third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 |
392 |
- third_party/one_euro_filter |
393 |
- third_party/openscreen |
394 |
- third_party/openscreen/src/third_party/tinycbor/src/src |
395 |
- third_party/ots |
396 |
- third_party/pdfium |
397 |
- third_party/pdfium/third_party/agg23 |
398 |
- third_party/pdfium/third_party/base |
399 |
- third_party/pdfium/third_party/bigint |
400 |
- third_party/pdfium/third_party/freetype |
401 |
- third_party/pdfium/third_party/lcms |
402 |
- third_party/pdfium/third_party/libopenjpeg20 |
403 |
- third_party/pdfium/third_party/libpng16 |
404 |
- third_party/pdfium/third_party/libtiff |
405 |
- third_party/pdfium/third_party/skia_shared |
406 |
- third_party/perfetto |
407 |
- third_party/pffft |
408 |
- third_party/ply |
409 |
- third_party/polymer |
410 |
- third_party/private-join-and-compute |
411 |
- third_party/protobuf |
412 |
- third_party/protobuf/third_party/six |
413 |
- third_party/pyjson5 |
414 |
- third_party/qcms |
415 |
- third_party/rnnoise |
416 |
- third_party/s2cellid |
417 |
- third_party/schema_org |
418 |
- third_party/simplejson |
419 |
- third_party/skia |
420 |
- third_party/skia/include/third_party/skcms |
421 |
- third_party/skia/include/third_party/vulkan |
422 |
- third_party/skia/third_party/skcms |
423 |
- third_party/skia/third_party/vulkan |
424 |
- third_party/smhasher |
425 |
- third_party/spirv-headers |
426 |
- third_party/SPIRV-Tools |
427 |
- third_party/sqlite |
428 |
- third_party/swiftshader |
429 |
- third_party/swiftshader/third_party/astc-encoder |
430 |
- third_party/swiftshader/third_party/llvm-7.0 |
431 |
- third_party/swiftshader/third_party/llvm-subzero |
432 |
- third_party/swiftshader/third_party/marl |
433 |
- third_party/swiftshader/third_party/subzero |
434 |
- third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1 |
435 |
- third_party/unrar |
436 |
- third_party/usrsctp |
437 |
- third_party/vulkan |
438 |
- third_party/web-animations-js |
439 |
- third_party/webdriver |
440 |
- third_party/webrtc |
441 |
- third_party/webrtc/common_audio/third_party/fft4g |
442 |
- third_party/webrtc/common_audio/third_party/spl_sqrt_floor |
443 |
- third_party/webrtc/modules/third_party/fft |
444 |
- third_party/webrtc/modules/third_party/g711 |
445 |
- third_party/webrtc/modules/third_party/g722 |
446 |
- third_party/webrtc/rtc_base/third_party/base64 |
447 |
- third_party/webrtc/rtc_base/third_party/sigslot |
448 |
- third_party/widevine |
449 |
- third_party/woff2 |
450 |
- third_party/wuffs |
451 |
- third_party/zlib/google |
452 |
- tools/grit/third_party/six |
453 |
- url/third_party/mozilla |
454 |
- v8/src/third_party/siphash |
455 |
- v8/src/third_party/valgrind |
456 |
- v8/src/third_party/utf8-decoder |
457 |
- v8/third_party/inspector_protocol |
458 |
- v8/third_party/v8 |
459 |
- |
460 |
- # gyp -> gn leftovers |
461 |
- base/third_party/libevent |
462 |
- third_party/adobe |
463 |
- third_party/speech-dispatcher |
464 |
- third_party/usb_ids |
465 |
- third_party/xdg-utils |
466 |
- third_party/yasm/run_yasm.py |
467 |
- ) |
468 |
- if ! use system-ffmpeg; then |
469 |
- keeplibs+=( third_party/ffmpeg third_party/opus ) |
470 |
- fi |
471 |
- if ! use system-icu; then |
472 |
- keeplibs+=( third_party/icu ) |
473 |
- fi |
474 |
- if ! use system-libvpx; then |
475 |
- keeplibs+=( third_party/libvpx ) |
476 |
- keeplibs+=( third_party/libvpx/source/libvpx/third_party/x86inc ) |
477 |
- |
478 |
- # we need to generate ppc64 stuff because upstream does not ship it yet |
479 |
- # it has to be done before unbundling. |
480 |
- if use ppc64; then |
481 |
- pushd third_party/libvpx >/dev/null || die |
482 |
- mkdir -p source/config/linux/ppc64 || die |
483 |
- ./generate_gni.sh || die |
484 |
- popd >/dev/null || die |
485 |
- fi |
486 |
- fi |
487 |
- if use tcmalloc; then |
488 |
- keeplibs+=( third_party/tcmalloc ) |
489 |
- fi |
490 |
- if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
491 |
- keeplibs+=( third_party/libxml ) |
492 |
- keeplibs+=( third_party/libxslt ) |
493 |
- keeplibs+=( third_party/openh264 ) |
494 |
- keeplibs+=( third_party/re2 ) |
495 |
- keeplibs+=( third_party/snappy ) |
496 |
- if use system-icu; then |
497 |
- keeplibs+=( third_party/icu ) |
498 |
- fi |
499 |
- fi |
500 |
- # Remove most bundled libraries. Some are still needed. |
501 |
- build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die |
502 |
-} |
503 |
- |
504 |
-src_configure() { |
505 |
- # Calling this here supports resumption via FEATURES=keepwork |
506 |
- python_setup |
507 |
- |
508 |
- local myconf_gn="" |
509 |
- |
510 |
- # Make sure the build system will use the right tools, bug #340795. |
511 |
- tc-export AR CC CXX NM |
512 |
- |
513 |
- if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then |
514 |
- # Force clang since gcc is pretty broken at the moment. |
515 |
- CC=${CHOST}-clang |
516 |
- CXX=${CHOST}-clang++ |
517 |
- strip-unsupported-flags |
518 |
- fi |
519 |
- |
520 |
- if tc-is-clang; then |
521 |
- myconf_gn+=" is_clang=true clang_use_chrome_plugins=false" |
522 |
- else |
523 |
- if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
524 |
- die "Compiling with sys-libs/libcxx requires clang." |
525 |
- fi |
526 |
- myconf_gn+=" is_clang=false" |
527 |
- fi |
528 |
- |
529 |
- # Define a custom toolchain for GN |
530 |
- myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
531 |
- |
532 |
- if tc-is-cross-compiler; then |
533 |
- tc-export BUILD_{AR,CC,CXX,NM} |
534 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
535 |
- myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
536 |
- else |
537 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
538 |
- fi |
539 |
- |
540 |
- # GN needs explicit config for Debug/Release as opposed to inferring it from build directory. |
541 |
- myconf_gn+=" is_debug=false" |
542 |
- |
543 |
- # Component build isn't generally intended for use by end users. It's mostly useful |
544 |
- # for development and debugging. |
545 |
- myconf_gn+=" is_component_build=$(usex component-build true false)" |
546 |
- |
547 |
- myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")" |
548 |
- |
549 |
- # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
550 |
- myconf_gn+=" enable_nacl=false" |
551 |
- |
552 |
- # Use system-provided libraries. |
553 |
- # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). |
554 |
- # TODO: use_system_hunspell (upstream changes needed). |
555 |
- # TODO: use_system_libsrtp (bug #459932). |
556 |
- # TODO: use_system_protobuf (bug #525560). |
557 |
- # TODO: use_system_ssl (http://crbug.com/58087). |
558 |
- # TODO: use_system_sqlite (http://crbug.com/22208). |
559 |
- |
560 |
- # libevent: https://bugs.gentoo.org/593458 |
561 |
- local gn_system_libraries=( |
562 |
- flac |
563 |
- fontconfig |
564 |
- freetype |
565 |
- # Need harfbuzz_from_pkgconfig target |
566 |
- #harfbuzz-ng |
567 |
- libdrm |
568 |
- libjpeg |
569 |
- libpng |
570 |
- libwebp |
571 |
- yasm |
572 |
- zlib |
573 |
- ) |
574 |
- if use system-ffmpeg; then |
575 |
- gn_system_libraries+=( ffmpeg opus ) |
576 |
- fi |
577 |
- if use system-icu; then |
578 |
- gn_system_libraries+=( icu ) |
579 |
- fi |
580 |
- if use system-libvpx; then |
581 |
- gn_system_libraries+=( libvpx ) |
582 |
- fi |
583 |
- if [[ ${CHROMIUM_FORCE_LIBCXX} != yes ]]; then |
584 |
- # unbundle only without libc++, because libc++ is not fully ABI compatible with libstdc++ |
585 |
- gn_system_libraries+=( libxml ) |
586 |
- gn_system_libraries+=( libxslt ) |
587 |
- gn_system_libraries+=( openh264 ) |
588 |
- gn_system_libraries+=( re2 ) |
589 |
- gn_system_libraries+=( snappy ) |
590 |
- fi |
591 |
- build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die |
592 |
- |
593 |
- # See dependency logic in third_party/BUILD.gn |
594 |
- myconf_gn+=" use_system_harfbuzz=true" |
595 |
- |
596 |
- # Disable deprecated libgnome-keyring dependency, bug #713012 |
597 |
- myconf_gn+=" use_gnome_keyring=false" |
598 |
- |
599 |
- # Optional dependencies. |
600 |
- myconf_gn+=" closure_compile=$(usex closure-compile true false)" |
601 |
- myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)" |
602 |
- myconf_gn+=" enable_widevine=$(usex widevine true false)" |
603 |
- myconf_gn+=" use_cups=$(usex cups true false)" |
604 |
- myconf_gn+=" use_kerberos=$(usex kerberos true false)" |
605 |
- myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)" |
606 |
- |
607 |
- # TODO: link_pulseaudio=true for GN. |
608 |
- |
609 |
- myconf_gn+=" fieldtrial_testing_like_official_build=true" |
610 |
- |
611 |
- # Never use bundled gold binary. Disable gold linker flags for now. |
612 |
- # Do not use bundled clang. |
613 |
- # Trying to use gold results in linker crash. |
614 |
- myconf_gn+=" use_gold=false use_sysroot=false linux_use_bundled_binutils=false use_custom_libcxx=false" |
615 |
- |
616 |
- # Disable forced lld, bug 641556 |
617 |
- myconf_gn+=" use_lld=false" |
618 |
- |
619 |
- ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)" |
620 |
- myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)" |
621 |
- myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\"" |
622 |
- |
623 |
- # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
624 |
- # Note: these are for Gentoo use ONLY. For your own distribution, |
625 |
- # please get your own set of keys. Feel free to contact chromium@g.o |
626 |
- # for more info. |
627 |
- local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" |
628 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
629 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
630 |
- myconf_gn+=" google_api_key=\"${google_api_key}\"" |
631 |
- myconf_gn+=" google_default_client_id=\"${google_default_client_id}\"" |
632 |
- myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\"" |
633 |
- local myarch="$(tc-arch)" |
634 |
- |
635 |
- # Avoid CFLAGS problems, bug #352457, bug #390147. |
636 |
- if ! use custom-cflags; then |
637 |
- replace-flags "-Os" "-O2" |
638 |
- strip-flags |
639 |
- |
640 |
- # Debug info section overflows without component build |
641 |
- # Prevent linker from running out of address space, bug #471810 . |
642 |
- if ! use component-build || use x86; then |
643 |
- filter-flags "-g*" |
644 |
- fi |
645 |
- |
646 |
- # Prevent libvpx build failures. Bug 530248, 544702, 546984. |
647 |
- if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then |
648 |
- filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 -mno-fma -mno-fma4 |
649 |
- fi |
650 |
- fi |
651 |
- |
652 |
- if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
653 |
- append-flags -stdlib=libc++ |
654 |
- append-ldflags -stdlib=libc++ |
655 |
- fi |
656 |
- |
657 |
- if [[ $myarch = amd64 ]] ; then |
658 |
- myconf_gn+=" target_cpu=\"x64\"" |
659 |
- ffmpeg_target_arch=x64 |
660 |
- elif [[ $myarch = x86 ]] ; then |
661 |
- myconf_gn+=" target_cpu=\"x86\"" |
662 |
- ffmpeg_target_arch=ia32 |
663 |
- |
664 |
- # This is normally defined by compiler_cpu_abi in |
665 |
- # build/config/compiler/BUILD.gn, but we patch that part out. |
666 |
- append-flags -msse2 -mfpmath=sse -mmmx |
667 |
- elif [[ $myarch = arm64 ]] ; then |
668 |
- myconf_gn+=" target_cpu=\"arm64\"" |
669 |
- ffmpeg_target_arch=arm64 |
670 |
- elif [[ $myarch = arm ]] ; then |
671 |
- myconf_gn+=" target_cpu=\"arm\"" |
672 |
- ffmpeg_target_arch=$(usex cpu_flags_arm_neon arm-neon arm) |
673 |
- elif [[ $myarch = ppc64 ]] ; then |
674 |
- myconf_gn+=" target_cpu=\"ppc64\"" |
675 |
- ffmpeg_target_arch=ppc64 |
676 |
- else |
677 |
- die "Failed to determine target arch, got '$myarch'." |
678 |
- fi |
679 |
- |
680 |
- # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
681 |
- # Depending on GCC version the warnings are different and we don't want |
682 |
- # the build to fail because of that. |
683 |
- myconf_gn+=" treat_warnings_as_errors=false" |
684 |
- |
685 |
- # Disable fatal linker warnings, bug 506268. |
686 |
- myconf_gn+=" fatal_linker_warnings=false" |
687 |
- |
688 |
- # Bug 491582. |
689 |
- export TMPDIR="${WORKDIR}/temp" |
690 |
- mkdir -p -m 755 "${TMPDIR}" || die |
691 |
- |
692 |
- # https://bugs.gentoo.org/654216 |
693 |
- addpredict /dev/dri/ #nowarn |
694 |
- |
695 |
- #if ! use system-ffmpeg; then |
696 |
- if false; then |
697 |
- local build_ffmpeg_args="" |
698 |
- if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
699 |
- build_ffmpeg_args+=" --disable-asm" |
700 |
- fi |
701 |
- |
702 |
- # Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
703 |
- einfo "Configuring bundled ffmpeg..." |
704 |
- pushd third_party/ffmpeg > /dev/null || die |
705 |
- chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ |
706 |
- --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die |
707 |
- chromium/scripts/copy_config.sh || die |
708 |
- chromium/scripts/generate_gn.py || die |
709 |
- popd > /dev/null || die |
710 |
- fi |
711 |
- |
712 |
- # Chromium relies on this, but was disabled in >=clang-10, crbug.com/1042470 |
713 |
- append-cxxflags $(test-flags-CXX -flax-vector-conversions=all) |
714 |
- |
715 |
- # Explicitly disable ICU data file support for system-icu builds. |
716 |
- if use system-icu; then |
717 |
- myconf_gn+=" icu_use_data_file=false" |
718 |
- fi |
719 |
- |
720 |
- einfo "Configuring Chromium..." |
721 |
- set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release |
722 |
- echo "$@" |
723 |
- "$@" || die |
724 |
-} |
725 |
- |
726 |
-src_compile() { |
727 |
- # Final link uses lots of file descriptors. |
728 |
- ulimit -n 2048 |
729 |
- |
730 |
- # Calling this here supports resumption via FEATURES=keepwork |
731 |
- python_setup |
732 |
- |
733 |
- # https://bugs.gentoo.org/717456 |
734 |
- local -x PYTHONPATH="${WORKDIR}/setuptools-44.1.0${PYTHONPATH+:}${PYTHONPATH}" |
735 |
- |
736 |
- #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die |
737 |
- |
738 |
- # Build mksnapshot and pax-mark it. |
739 |
- local x |
740 |
- for x in mksnapshot v8_context_snapshot_generator; do |
741 |
- if tc-is-cross-compiler; then |
742 |
- eninja -C out/Release "host/${x}" |
743 |
- pax-mark m "out/Release/host/${x}" |
744 |
- else |
745 |
- eninja -C out/Release "${x}" |
746 |
- pax-mark m "out/Release/${x}" |
747 |
- fi |
748 |
- done |
749 |
- |
750 |
- # Even though ninja autodetects number of CPUs, we respect |
751 |
- # user's options, for debugging with -j 1 or any other reason. |
752 |
- eninja -C out/Release chrome chromedriver |
753 |
- use suid && eninja -C out/Release chrome_sandbox |
754 |
- |
755 |
- pax-mark m out/Release/chrome |
756 |
- |
757 |
- # Build manpage; bug #684550 |
758 |
- sed -e 's|@@PACKAGE@@|chromium-browser|g; |
759 |
- s|@@MENUNAME@@|Chromium|g;' \ |
760 |
- chrome/app/resources/manpage.1.in > \ |
761 |
- out/Release/chromium-browser.1 || die |
762 |
- |
763 |
- # Build desktop file; bug #706786 |
764 |
- sed -e 's|@@MENUNAME@@|Chromium|g; |
765 |
- s|@@USR_BIN_SYMLINK_NAME@@|chromium-browser|g; |
766 |
- s|@@PACKAGE@@|chromium-browser|g; |
767 |
- s|\(^Exec=\)/usr/bin/|\1|g;' \ |
768 |
- chrome/installer/linux/common/desktop.template > \ |
769 |
- out/Release/chromium-browser-chromium.desktop || die |
770 |
-} |
771 |
- |
772 |
-src_install() { |
773 |
- local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
774 |
- exeinto "${CHROMIUM_HOME}" |
775 |
- doexe out/Release/chrome |
776 |
- |
777 |
- if use suid; then |
778 |
- newexe out/Release/chrome_sandbox chrome-sandbox |
779 |
- fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
780 |
- fi |
781 |
- |
782 |
- doexe out/Release/chromedriver |
783 |
- |
784 |
- local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) |
785 |
- sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die |
786 |
- doexe chromium-launcher.sh |
787 |
- |
788 |
- # It is important that we name the target "chromium-browser", |
789 |
- # xdg-utils expect it; bug #355517. |
790 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser |
791 |
- # keep the old symlink around for consistency |
792 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium |
793 |
- |
794 |
- dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver |
795 |
- |
796 |
- # Allow users to override command-line options, bug #357629. |
797 |
- insinto /etc/chromium |
798 |
- newins "${FILESDIR}/chromium.default" "default" |
799 |
- |
800 |
- pushd out/Release/locales > /dev/null || die |
801 |
- chromium_remove_language_paks |
802 |
- popd |
803 |
- |
804 |
- insinto "${CHROMIUM_HOME}" |
805 |
- doins out/Release/*.bin |
806 |
- doins out/Release/*.pak |
807 |
- doins out/Release/*.so |
808 |
- |
809 |
- if ! use system-icu; then |
810 |
- doins out/Release/icudtl.dat |
811 |
- fi |
812 |
- |
813 |
- doins -r out/Release/locales |
814 |
- doins -r out/Release/resources |
815 |
- |
816 |
- if [[ -d out/Release/swiftshader ]]; then |
817 |
- insinto "${CHROMIUM_HOME}/swiftshader" |
818 |
- doins out/Release/swiftshader/*.so |
819 |
- fi |
820 |
- |
821 |
- # Install icons |
822 |
- local branding size |
823 |
- for size in 16 24 32 48 64 128 256 ; do |
824 |
- case ${size} in |
825 |
- 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
826 |
- *) branding="chrome/app/theme/chromium" ;; |
827 |
- esac |
828 |
- newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
829 |
- chromium-browser.png |
830 |
- done |
831 |
- |
832 |
- # Install desktop entry |
833 |
- domenu out/Release/chromium-browser-chromium.desktop |
834 |
- |
835 |
- # Install GNOME default application entry (bug #303100). |
836 |
- insinto /usr/share/gnome-control-center/default-apps |
837 |
- newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml |
838 |
- |
839 |
- # Install manpage; bug #684550 |
840 |
- doman out/Release/chromium-browser.1 |
841 |
- dosym chromium-browser.1 /usr/share/man/man1/chromium.1 |
842 |
- |
843 |
- readme.gentoo_create_doc |
844 |
-} |
845 |
- |
846 |
-pkg_postrm() { |
847 |
- xdg_icon_cache_update |
848 |
- xdg_desktop_database_update |
849 |
-} |
850 |
- |
851 |
-pkg_postinst() { |
852 |
- xdg_icon_cache_update |
853 |
- xdg_desktop_database_update |
854 |
- readme.gentoo_print_elog |
855 |
-} |