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