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