1 |
commit: 0abfc525b11efc5a04b2f5ae7f757f1f530a3028 |
2 |
Author: Stephan Hartmann <stha09 <AT> googlemail <DOT> com> |
3 |
AuthorDate: Tue Aug 27 08:24:54 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 27 17:25:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0abfc525 |
7 |
|
8 |
www-client/chromium: stable channel bump to 76.0.3809.132 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/691354 |
11 |
Bug: https://bugs.gentoo.org/692916 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/12800 |
13 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
14 |
Signed-off-by: Stephan Hartmann <stha09 <AT> googlemail.com> |
15 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
16 |
|
17 |
www-client/chromium/Manifest | 1 + |
18 |
www-client/chromium/chromium-76.0.3809.132.ebuild | 720 +++++++++++++++++++++ |
19 |
.../chromium/files/chromium-76-no-cups.patch | 41 ++ |
20 |
3 files changed, 762 insertions(+) |
21 |
|
22 |
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest |
23 |
index 99a63a6b936..b9aa2b08c05 100644 |
24 |
--- a/www-client/chromium/Manifest |
25 |
+++ b/www-client/chromium/Manifest |
26 |
@@ -1,3 +1,4 @@ |
27 |
DIST chromium-76.0.3809.100.tar.xz 728852892 BLAKE2B 1bd80f7fd50f82843f9367bd8d5648bcbe4b763594679cc7f57084390da840cc89d7771ffd844e3d0a3c3248d8f98a1babecabaf4c3104fa7a89efed88eae608 SHA512 63cfb45dc6bb0b1662ba4ffebc6313c24d65dae10a61752575e34a24d8d3d6f80e0422a984b560b259c299d6e493dfa177907201a1c1f785a7e294c9a03bd8a1 |
28 |
+DIST chromium-76.0.3809.132.tar.xz 728899912 BLAKE2B 725513b659f613c5827f5e847dde8c5ea448adb3a3d5561312ad05d54293c72150b010e6c804fb17be22882e4c87f2ebcdd40d08dbd601d78573678fd9d195c9 SHA512 e267d4a975fdcc33125d8fed1597e2dc8ec37a78ee2f9a4e03a1aaf6b83b594b444280b7f2ee68b41d227e7daf31b9de91ab2f998f9146613ebd50651c0d16e8 |
29 |
DIST chromium-77.0.3865.42.tar.xz 733180328 BLAKE2B 6216edc93235ceda6fbe05fab935f028965ad9c363d80012f192d77462f7381f644809a23becc9850780c3a93e6863f8e3263631fe86e0334ecbe65d58008868 SHA512 2b6fa1b637d52d3ac8bc9fded568957332a7f0c7a2fac32c80385c2398ac1ee0546d399960bc5c8fe8df7fceefd2113c0f1be41107da0642294333064870f773 |
30 |
DIST chromium-78.0.3887.7.tar.xz 737057024 BLAKE2B b4754f1fa9a243c29e83d6136494c6db1726a6d3f23013115a4a576428f7ca3c0fcd3f81cf7fe4037f2c3e6901b3fce015aeed7b7b945b4a3e368f2e6fb9afa1 SHA512 9b8eb33c6f19e5b247372e19a61ec1ae6c804bd7b9731222430e2e1b585146fc543a686ccfc9553d6d137999570c544cdb45696db6ce50c38dfead1b0760c1a4 |
31 |
|
32 |
diff --git a/www-client/chromium/chromium-76.0.3809.132.ebuild b/www-client/chromium/chromium-76.0.3809.132.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..8f2e8861c6f |
35 |
--- /dev/null |
36 |
+++ b/www-client/chromium/chromium-76.0.3809.132.ebuild |
37 |
@@ -0,0 +1,720 @@ |
38 |
+# Copyright 1999-2019 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+PYTHON_COMPAT=( python2_7 ) |
43 |
+ |
44 |
+CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he |
45 |
+ hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr |
46 |
+ sv sw ta te th tr uk vi zh-CN zh-TW" |
47 |
+ |
48 |
+inherit check-reqs chromium-2 desktop flag-o-matic multilib ninja-utils pax-utils portability python-any-r1 readme.gentoo-r1 toolchain-funcs xdg-utils |
49 |
+ |
50 |
+DESCRIPTION="Open-source version of Google Chrome web browser" |
51 |
+HOMEPAGE="http://chromium.org/" |
52 |
+SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz" |
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.2.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 |
+ widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] ) |
126 |
+" |
127 |
+DEPEND="${COMMON_DEPEND} |
128 |
+" |
129 |
+# dev-vcs/git - https://bugs.gentoo.org/593476 |
130 |
+BDEPEND=" |
131 |
+ ${PYTHON_DEPS} |
132 |
+ >=app-arch/gzip-1.7 |
133 |
+ !arm? ( |
134 |
+ dev-lang/yasm |
135 |
+ ) |
136 |
+ dev-lang/perl |
137 |
+ <dev-util/gn-0.1583 |
138 |
+ dev-vcs/git |
139 |
+ >=dev-util/gperf-3.0.3 |
140 |
+ >=dev-util/ninja-1.7.2 |
141 |
+ >=net-libs/nodejs-7.6.0[inspector] |
142 |
+ sys-apps/hwids[usb(+)] |
143 |
+ >=sys-devel/bison-2.4.3 |
144 |
+ sys-devel/flex |
145 |
+ closure-compile? ( virtual/jre ) |
146 |
+ virtual/pkgconfig |
147 |
+" |
148 |
+ |
149 |
+: ${CHROMIUM_FORCE_CLANG=no} |
150 |
+ |
151 |
+if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then |
152 |
+ BDEPEND+=" >=sys-devel/clang-7" |
153 |
+fi |
154 |
+ |
155 |
+if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
156 |
+ EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
157 |
+fi |
158 |
+ |
159 |
+DISABLE_AUTOFORMATTING="yes" |
160 |
+DOC_CONTENTS=" |
161 |
+Some web pages may require additional fonts to display properly. |
162 |
+Try installing some of the following packages if some characters |
163 |
+are not displayed properly: |
164 |
+- media-fonts/arphicfonts |
165 |
+- media-fonts/droid |
166 |
+- media-fonts/ipamonafont |
167 |
+- media-fonts/noto |
168 |
+- media-fonts/ja-ipafonts |
169 |
+- media-fonts/takao-fonts |
170 |
+- media-fonts/wqy-microhei |
171 |
+- media-fonts/wqy-zenhei |
172 |
+ |
173 |
+To fix broken icons on the Downloads page, you should install an icon |
174 |
+theme that covers the appropriate MIME types, and configure this as your |
175 |
+GTK+ icon theme. |
176 |
+ |
177 |
+For native file dialogs in KDE, install kde-apps/kdialog. |
178 |
+" |
179 |
+ |
180 |
+PATCHES=( |
181 |
+ "${FILESDIR}/chromium-compiler-r10.patch" |
182 |
+ "${FILESDIR}/chromium-widevine-r4.patch" |
183 |
+ "${FILESDIR}/chromium-fix-char_traits.patch" |
184 |
+ "${FILESDIR}/chromium-angle-inline.patch" |
185 |
+ "${FILESDIR}/chromium-76-arm64-skia.patch" |
186 |
+ "${FILESDIR}/chromium-76-quiche.patch" |
187 |
+ "${FILESDIR}/chromium-76-no-cups.patch" |
188 |
+ "${FILESDIR}/chromium-76-gcc-vulkan.patch" |
189 |
+ "${FILESDIR}/chromium-76-gcc-private.patch" |
190 |
+ "${FILESDIR}/chromium-76-gcc-noexcept.patch" |
191 |
+ "${FILESDIR}/chromium-76-gcc-gl-init.patch" |
192 |
+ "${FILESDIR}/chromium-76-gcc-blink-namespace1.patch" |
193 |
+ "${FILESDIR}/chromium-76-gcc-blink-namespace2.patch" |
194 |
+ "${FILESDIR}/chromium-76-gcc-blink-constexpr.patch" |
195 |
+ "${FILESDIR}/chromium-76-gcc-uint32.patch" |
196 |
+ "${FILESDIR}/chromium-76-gcc-ambiguous-nodestructor.patch" |
197 |
+ "${FILESDIR}/chromium-76-gcc-include.patch" |
198 |
+ "${FILESDIR}/chromium-76-gcc-pure-virtual.patch" |
199 |
+) |
200 |
+ |
201 |
+pre_build_checks() { |
202 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
203 |
+ local -x CPP="$(tc-getCXX) -E" |
204 |
+ if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 8.0; then |
205 |
+ die "At least gcc 8.0 is required" |
206 |
+ fi |
207 |
+ fi |
208 |
+ |
209 |
+ # Check build requirements, bug #541816 and bug #471810 . |
210 |
+ CHECKREQS_MEMORY="3G" |
211 |
+ CHECKREQS_DISK_BUILD="7G" |
212 |
+ if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then |
213 |
+ CHECKREQS_DISK_BUILD="25G" |
214 |
+ if ! use component-build; then |
215 |
+ CHECKREQS_MEMORY="16G" |
216 |
+ fi |
217 |
+ fi |
218 |
+ check-reqs_pkg_setup |
219 |
+} |
220 |
+ |
221 |
+pkg_pretend() { |
222 |
+ pre_build_checks |
223 |
+} |
224 |
+ |
225 |
+pkg_setup() { |
226 |
+ pre_build_checks |
227 |
+ |
228 |
+ chromium_suid_sandbox_check_kernel_config |
229 |
+} |
230 |
+ |
231 |
+src_prepare() { |
232 |
+ # Calling this here supports resumption via FEATURES=keepwork |
233 |
+ python_setup |
234 |
+ |
235 |
+ default |
236 |
+ |
237 |
+ mkdir -p third_party/node/linux/node-linux-x64/bin || die |
238 |
+ ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die |
239 |
+ |
240 |
+ local keeplibs=( |
241 |
+ base/third_party/cityhash |
242 |
+ base/third_party/dmg_fp |
243 |
+ base/third_party/dynamic_annotations |
244 |
+ base/third_party/icu |
245 |
+ base/third_party/nspr |
246 |
+ base/third_party/superfasthash |
247 |
+ base/third_party/symbolize |
248 |
+ base/third_party/valgrind |
249 |
+ base/third_party/xdg_mime |
250 |
+ base/third_party/xdg_user_dirs |
251 |
+ buildtools/third_party/libc++ |
252 |
+ buildtools/third_party/libc++abi |
253 |
+ chrome/third_party/mozilla_security_manager |
254 |
+ courgette/third_party |
255 |
+ net/third_party/mozilla_security_manager |
256 |
+ net/third_party/nss |
257 |
+ net/third_party/quic |
258 |
+ net/third_party/uri_template |
259 |
+ third_party/abseil-cpp |
260 |
+ third_party/angle |
261 |
+ third_party/angle/src/common/third_party/base |
262 |
+ third_party/angle/src/common/third_party/smhasher |
263 |
+ third_party/angle/src/common/third_party/xxhash |
264 |
+ third_party/angle/src/third_party/compiler |
265 |
+ third_party/angle/src/third_party/libXNVCtrl |
266 |
+ third_party/angle/src/third_party/trace_event |
267 |
+ third_party/angle/third_party/glslang |
268 |
+ third_party/angle/third_party/spirv-headers |
269 |
+ third_party/angle/third_party/spirv-tools |
270 |
+ third_party/angle/third_party/vulkan-headers |
271 |
+ third_party/angle/third_party/vulkan-loader |
272 |
+ third_party/angle/third_party/vulkan-tools |
273 |
+ third_party/angle/third_party/vulkan-validation-layers |
274 |
+ third_party/apple_apsl |
275 |
+ third_party/axe-core |
276 |
+ third_party/blink |
277 |
+ third_party/boringssl |
278 |
+ third_party/boringssl/src/third_party/fiat |
279 |
+ third_party/boringssl/src/third_party/sike |
280 |
+ third_party/boringssl/linux-aarch64/crypto/third_party/sike |
281 |
+ third_party/boringssl/linux-x86_64/crypto/third_party/sike |
282 |
+ third_party/breakpad |
283 |
+ third_party/breakpad/breakpad/src/third_party/curl |
284 |
+ third_party/brotli |
285 |
+ third_party/cacheinvalidation |
286 |
+ third_party/catapult |
287 |
+ third_party/catapult/common/py_vulcanize/third_party/rcssmin |
288 |
+ third_party/catapult/common/py_vulcanize/third_party/rjsmin |
289 |
+ third_party/catapult/third_party/beautifulsoup4 |
290 |
+ third_party/catapult/third_party/html5lib-python |
291 |
+ third_party/catapult/third_party/polymer |
292 |
+ third_party/catapult/third_party/six |
293 |
+ third_party/catapult/tracing/third_party/d3 |
294 |
+ third_party/catapult/tracing/third_party/gl-matrix |
295 |
+ third_party/catapult/tracing/third_party/jszip |
296 |
+ third_party/catapult/tracing/third_party/mannwhitneyu |
297 |
+ third_party/catapult/tracing/third_party/oboe |
298 |
+ third_party/catapult/tracing/third_party/pako |
299 |
+ third_party/ced |
300 |
+ third_party/cld_3 |
301 |
+ third_party/closure_compiler |
302 |
+ third_party/crashpad |
303 |
+ third_party/crashpad/crashpad/third_party/lss |
304 |
+ third_party/crashpad/crashpad/third_party/zlib |
305 |
+ third_party/crc32c |
306 |
+ third_party/cros_system_api |
307 |
+ third_party/dav1d |
308 |
+ third_party/dawn |
309 |
+ third_party/devscripts |
310 |
+ third_party/dom_distiller_js |
311 |
+ third_party/emoji-segmenter |
312 |
+ third_party/flatbuffers |
313 |
+ third_party/flot |
314 |
+ third_party/freetype |
315 |
+ third_party/glslang |
316 |
+ third_party/google_input_tools |
317 |
+ third_party/google_input_tools/third_party/closure_library |
318 |
+ third_party/google_input_tools/third_party/closure_library/third_party/closure |
319 |
+ third_party/googletest |
320 |
+ third_party/hunspell |
321 |
+ third_party/iccjpeg |
322 |
+ third_party/inspector_protocol |
323 |
+ third_party/jinja2 |
324 |
+ third_party/jsoncpp |
325 |
+ third_party/jstemplate |
326 |
+ third_party/khronos |
327 |
+ third_party/leveldatabase |
328 |
+ third_party/libXNVCtrl |
329 |
+ third_party/libaddressinput |
330 |
+ third_party/libaom |
331 |
+ third_party/libaom/source/libaom/third_party/vector |
332 |
+ third_party/libaom/source/libaom/third_party/x86inc |
333 |
+ third_party/libjingle |
334 |
+ third_party/libphonenumber |
335 |
+ third_party/libsecret |
336 |
+ third_party/libsrtp |
337 |
+ third_party/libsync |
338 |
+ third_party/libudev |
339 |
+ third_party/libwebm |
340 |
+ third_party/libxml/chromium |
341 |
+ third_party/libyuv |
342 |
+ third_party/llvm |
343 |
+ third_party/lss |
344 |
+ third_party/lzma_sdk |
345 |
+ third_party/markupsafe |
346 |
+ third_party/mesa |
347 |
+ third_party/metrics_proto |
348 |
+ third_party/modp_b64 |
349 |
+ third_party/nasm |
350 |
+ third_party/node |
351 |
+ third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 |
352 |
+ third_party/openscreen |
353 |
+ third_party/ots |
354 |
+ third_party/pdfium |
355 |
+ third_party/pdfium/third_party/agg23 |
356 |
+ third_party/pdfium/third_party/base |
357 |
+ third_party/pdfium/third_party/bigint |
358 |
+ third_party/pdfium/third_party/freetype |
359 |
+ third_party/pdfium/third_party/lcms |
360 |
+ third_party/pdfium/third_party/libopenjpeg20 |
361 |
+ third_party/pdfium/third_party/libpng16 |
362 |
+ third_party/pdfium/third_party/libtiff |
363 |
+ third_party/pdfium/third_party/skia_shared |
364 |
+ third_party/perfetto |
365 |
+ third_party/pffft |
366 |
+ third_party/ply |
367 |
+ third_party/polymer |
368 |
+ third_party/protobuf |
369 |
+ third_party/protobuf/third_party/six |
370 |
+ third_party/pyjson5 |
371 |
+ third_party/qcms |
372 |
+ third_party/rnnoise |
373 |
+ third_party/s2cellid |
374 |
+ third_party/sfntly |
375 |
+ third_party/simplejson |
376 |
+ third_party/skia |
377 |
+ third_party/skia/include/third_party/skcms |
378 |
+ third_party/skia/include/third_party/vulkan |
379 |
+ third_party/skia/third_party/gif |
380 |
+ third_party/skia/third_party/skcms |
381 |
+ third_party/skia/third_party/vulkan |
382 |
+ third_party/smhasher |
383 |
+ third_party/spirv-headers |
384 |
+ third_party/SPIRV-Tools |
385 |
+ third_party/sqlite |
386 |
+ third_party/swiftshader |
387 |
+ third_party/swiftshader/third_party/llvm-7.0 |
388 |
+ third_party/swiftshader/third_party/llvm-subzero |
389 |
+ third_party/swiftshader/third_party/subzero |
390 |
+ third_party/unrar |
391 |
+ third_party/usrsctp |
392 |
+ third_party/vulkan |
393 |
+ third_party/web-animations-js |
394 |
+ third_party/webdriver |
395 |
+ third_party/webrtc |
396 |
+ third_party/webrtc/common_audio/third_party/fft4g |
397 |
+ third_party/webrtc/common_audio/third_party/spl_sqrt_floor |
398 |
+ third_party/webrtc/modules/third_party/fft |
399 |
+ third_party/webrtc/modules/third_party/g711 |
400 |
+ third_party/webrtc/modules/third_party/g722 |
401 |
+ third_party/webrtc/rtc_base/third_party/base64 |
402 |
+ third_party/webrtc/rtc_base/third_party/sigslot |
403 |
+ third_party/widevine |
404 |
+ third_party/woff2 |
405 |
+ third_party/zlib/google |
406 |
+ url/third_party/mozilla |
407 |
+ v8/src/third_party/siphash |
408 |
+ v8/src/third_party/valgrind |
409 |
+ v8/src/third_party/utf8-decoder |
410 |
+ v8/third_party/inspector_protocol |
411 |
+ v8/third_party/v8 |
412 |
+ |
413 |
+ # gyp -> gn leftovers |
414 |
+ base/third_party/libevent |
415 |
+ third_party/adobe |
416 |
+ third_party/speech-dispatcher |
417 |
+ third_party/usb_ids |
418 |
+ third_party/xdg-utils |
419 |
+ third_party/yasm/run_yasm.py |
420 |
+ ) |
421 |
+ if ! use system-ffmpeg; then |
422 |
+ keeplibs+=( third_party/ffmpeg third_party/opus ) |
423 |
+ fi |
424 |
+ if ! use system-icu; then |
425 |
+ keeplibs+=( third_party/icu ) |
426 |
+ fi |
427 |
+ if ! use system-libvpx; then |
428 |
+ keeplibs+=( third_party/libvpx ) |
429 |
+ keeplibs+=( third_party/libvpx/source/libvpx/third_party/x86inc ) |
430 |
+ fi |
431 |
+ if use tcmalloc; then |
432 |
+ keeplibs+=( third_party/tcmalloc ) |
433 |
+ fi |
434 |
+ |
435 |
+ # Remove most bundled libraries. Some are still needed. |
436 |
+ build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die |
437 |
+} |
438 |
+ |
439 |
+src_configure() { |
440 |
+ # Calling this here supports resumption via FEATURES=keepwork |
441 |
+ python_setup |
442 |
+ |
443 |
+ local myconf_gn="" |
444 |
+ |
445 |
+ # Make sure the build system will use the right tools, bug #340795. |
446 |
+ tc-export AR CC CXX NM |
447 |
+ |
448 |
+ if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then |
449 |
+ # Force clang since gcc is pretty broken at the moment. |
450 |
+ CC=${CHOST}-clang |
451 |
+ CXX=${CHOST}-clang++ |
452 |
+ strip-unsupported-flags |
453 |
+ fi |
454 |
+ |
455 |
+ if tc-is-clang; then |
456 |
+ myconf_gn+=" is_clang=true clang_use_chrome_plugins=false" |
457 |
+ else |
458 |
+ myconf_gn+=" is_clang=false" |
459 |
+ fi |
460 |
+ |
461 |
+ # Define a custom toolchain for GN |
462 |
+ myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
463 |
+ |
464 |
+ if tc-is-cross-compiler; then |
465 |
+ tc-export BUILD_{AR,CC,CXX,NM} |
466 |
+ myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
467 |
+ myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
468 |
+ else |
469 |
+ myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
470 |
+ fi |
471 |
+ |
472 |
+ # GN needs explicit config for Debug/Release as opposed to inferring it from build directory. |
473 |
+ myconf_gn+=" is_debug=false" |
474 |
+ |
475 |
+ # Component build isn't generally intended for use by end users. It's mostly useful |
476 |
+ # for development and debugging. |
477 |
+ myconf_gn+=" is_component_build=$(usex component-build true false)" |
478 |
+ |
479 |
+ # https://chromium.googlesource.com/chromium/src/+/lkcr/docs/jumbo.md |
480 |
+ myconf_gn+=" use_jumbo_build=$(usex jumbo-build true false)" |
481 |
+ |
482 |
+ myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")" |
483 |
+ |
484 |
+ # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
485 |
+ myconf_gn+=" enable_nacl=false" |
486 |
+ |
487 |
+ # Use system-provided libraries. |
488 |
+ # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). |
489 |
+ # TODO: use_system_hunspell (upstream changes needed). |
490 |
+ # TODO: use_system_libsrtp (bug #459932). |
491 |
+ # TODO: use_system_protobuf (bug #525560). |
492 |
+ # TODO: use_system_ssl (http://crbug.com/58087). |
493 |
+ # TODO: use_system_sqlite (http://crbug.com/22208). |
494 |
+ |
495 |
+ # libevent: https://bugs.gentoo.org/593458 |
496 |
+ local gn_system_libraries=( |
497 |
+ flac |
498 |
+ fontconfig |
499 |
+ freetype |
500 |
+ # Need harfbuzz_from_pkgconfig target |
501 |
+ #harfbuzz-ng |
502 |
+ libdrm |
503 |
+ libjpeg |
504 |
+ libpng |
505 |
+ libwebp |
506 |
+ libxml |
507 |
+ libxslt |
508 |
+ openh264 |
509 |
+ re2 |
510 |
+ snappy |
511 |
+ yasm |
512 |
+ zlib |
513 |
+ ) |
514 |
+ if use system-ffmpeg; then |
515 |
+ gn_system_libraries+=( ffmpeg opus ) |
516 |
+ fi |
517 |
+ if use system-icu; then |
518 |
+ gn_system_libraries+=( icu ) |
519 |
+ fi |
520 |
+ if use system-libvpx; then |
521 |
+ gn_system_libraries+=( libvpx ) |
522 |
+ fi |
523 |
+ build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die |
524 |
+ |
525 |
+ # See dependency logic in third_party/BUILD.gn |
526 |
+ myconf_gn+=" use_system_harfbuzz=true" |
527 |
+ |
528 |
+ # Optional dependencies. |
529 |
+ myconf_gn+=" closure_compile=$(usex closure-compile true false)" |
530 |
+ myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)" |
531 |
+ myconf_gn+=" enable_widevine=$(usex widevine true false)" |
532 |
+ myconf_gn+=" use_cups=$(usex cups true false)" |
533 |
+ myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)" |
534 |
+ myconf_gn+=" use_kerberos=$(usex kerberos true false)" |
535 |
+ myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)" |
536 |
+ |
537 |
+ # TODO: link_pulseaudio=true for GN. |
538 |
+ |
539 |
+ myconf_gn+=" fieldtrial_testing_like_official_build=true" |
540 |
+ |
541 |
+ # Never use bundled gold binary. Disable gold linker flags for now. |
542 |
+ # Do not use bundled clang. |
543 |
+ # Trying to use gold results in linker crash. |
544 |
+ myconf_gn+=" use_gold=false use_sysroot=false linux_use_bundled_binutils=false use_custom_libcxx=false" |
545 |
+ |
546 |
+ # Disable forced lld, bug 641556 |
547 |
+ myconf_gn+=" use_lld=false" |
548 |
+ |
549 |
+ ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)" |
550 |
+ myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)" |
551 |
+ myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\"" |
552 |
+ |
553 |
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
554 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, |
555 |
+ # please get your own set of keys. Feel free to contact chromium@g.o |
556 |
+ # for more info. |
557 |
+ local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" |
558 |
+ local google_default_client_id="329227923882.apps.googleusercontent.com" |
559 |
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
560 |
+ myconf_gn+=" google_api_key=\"${google_api_key}\"" |
561 |
+ myconf_gn+=" google_default_client_id=\"${google_default_client_id}\"" |
562 |
+ myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\"" |
563 |
+ |
564 |
+ local myarch="$(tc-arch)" |
565 |
+ |
566 |
+ # Avoid CFLAGS problems, bug #352457, bug #390147. |
567 |
+ if ! use custom-cflags; then |
568 |
+ replace-flags "-Os" "-O2" |
569 |
+ strip-flags |
570 |
+ |
571 |
+ # Prevent linker from running out of address space, bug #471810 . |
572 |
+ if use x86; then |
573 |
+ filter-flags "-g*" |
574 |
+ fi |
575 |
+ |
576 |
+ # Prevent libvpx build failures. Bug 530248, 544702, 546984. |
577 |
+ if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then |
578 |
+ filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 |
579 |
+ fi |
580 |
+ fi |
581 |
+ |
582 |
+ if [[ $myarch = amd64 ]] ; then |
583 |
+ myconf_gn+=" target_cpu=\"x64\"" |
584 |
+ ffmpeg_target_arch=x64 |
585 |
+ elif [[ $myarch = x86 ]] ; then |
586 |
+ myconf_gn+=" target_cpu=\"x86\"" |
587 |
+ ffmpeg_target_arch=ia32 |
588 |
+ |
589 |
+ # This is normally defined by compiler_cpu_abi in |
590 |
+ # build/config/compiler/BUILD.gn, but we patch that part out. |
591 |
+ append-flags -msse2 -mfpmath=sse -mmmx |
592 |
+ elif [[ $myarch = arm64 ]] ; then |
593 |
+ myconf_gn+=" target_cpu=\"arm64\"" |
594 |
+ ffmpeg_target_arch=arm64 |
595 |
+ elif [[ $myarch = arm ]] ; then |
596 |
+ myconf_gn+=" target_cpu=\"arm\"" |
597 |
+ ffmpeg_target_arch=$(usex cpu_flags_arm_neon arm-neon arm) |
598 |
+ else |
599 |
+ die "Failed to determine target arch, got '$myarch'." |
600 |
+ fi |
601 |
+ |
602 |
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
603 |
+ # Depending on GCC version the warnings are different and we don't want |
604 |
+ # the build to fail because of that. |
605 |
+ myconf_gn+=" treat_warnings_as_errors=false" |
606 |
+ |
607 |
+ # Disable fatal linker warnings, bug 506268. |
608 |
+ myconf_gn+=" fatal_linker_warnings=false" |
609 |
+ |
610 |
+ # Bug 491582. |
611 |
+ export TMPDIR="${WORKDIR}/temp" |
612 |
+ mkdir -p -m 755 "${TMPDIR}" || die |
613 |
+ |
614 |
+ # https://bugs.gentoo.org/654216 |
615 |
+ addpredict /dev/dri/ #nowarn |
616 |
+ |
617 |
+ #if ! use system-ffmpeg; then |
618 |
+ if false; then |
619 |
+ local build_ffmpeg_args="" |
620 |
+ if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
621 |
+ build_ffmpeg_args+=" --disable-asm" |
622 |
+ fi |
623 |
+ |
624 |
+ # Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
625 |
+ einfo "Configuring bundled ffmpeg..." |
626 |
+ pushd third_party/ffmpeg > /dev/null || die |
627 |
+ chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ |
628 |
+ --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die |
629 |
+ chromium/scripts/copy_config.sh || die |
630 |
+ chromium/scripts/generate_gn.py || die |
631 |
+ popd > /dev/null || die |
632 |
+ fi |
633 |
+ |
634 |
+ einfo "Configuring Chromium..." |
635 |
+ set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release |
636 |
+ echo "$@" |
637 |
+ "$@" || die |
638 |
+} |
639 |
+ |
640 |
+src_compile() { |
641 |
+ # Final link uses lots of file descriptors. |
642 |
+ ulimit -n 2048 |
643 |
+ |
644 |
+ # Calling this here supports resumption via FEATURES=keepwork |
645 |
+ python_setup |
646 |
+ |
647 |
+ #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die |
648 |
+ |
649 |
+ # Build mksnapshot and pax-mark it. |
650 |
+ local x |
651 |
+ for x in mksnapshot v8_context_snapshot_generator; do |
652 |
+ if tc-is-cross-compiler; then |
653 |
+ eninja -C out/Release "host/${x}" |
654 |
+ pax-mark m "out/Release/host/${x}" |
655 |
+ else |
656 |
+ eninja -C out/Release "${x}" |
657 |
+ pax-mark m "out/Release/${x}" |
658 |
+ fi |
659 |
+ done |
660 |
+ |
661 |
+ # Even though ninja autodetects number of CPUs, we respect |
662 |
+ # user's options, for debugging with -j 1 or any other reason. |
663 |
+ eninja -C out/Release chrome chromedriver |
664 |
+ use suid && eninja -C out/Release chrome_sandbox |
665 |
+ |
666 |
+ pax-mark m out/Release/chrome |
667 |
+} |
668 |
+ |
669 |
+src_install() { |
670 |
+ local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
671 |
+ exeinto "${CHROMIUM_HOME}" |
672 |
+ doexe out/Release/chrome |
673 |
+ |
674 |
+ if use suid; then |
675 |
+ newexe out/Release/chrome_sandbox chrome-sandbox |
676 |
+ fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
677 |
+ fi |
678 |
+ |
679 |
+ doexe out/Release/chromedriver |
680 |
+ |
681 |
+ local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) |
682 |
+ sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die |
683 |
+ doexe chromium-launcher.sh |
684 |
+ |
685 |
+ # It is important that we name the target "chromium-browser", |
686 |
+ # xdg-utils expect it; bug #355517. |
687 |
+ dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser |
688 |
+ # keep the old symlink around for consistency |
689 |
+ dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium |
690 |
+ |
691 |
+ dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver |
692 |
+ |
693 |
+ # Allow users to override command-line options, bug #357629. |
694 |
+ insinto /etc/chromium |
695 |
+ newins "${FILESDIR}/chromium.default" "default" |
696 |
+ |
697 |
+ pushd out/Release/locales > /dev/null || die |
698 |
+ chromium_remove_language_paks |
699 |
+ popd |
700 |
+ |
701 |
+ insinto "${CHROMIUM_HOME}" |
702 |
+ doins out/Release/*.bin |
703 |
+ doins out/Release/*.pak |
704 |
+ doins out/Release/*.so |
705 |
+ |
706 |
+ if ! use system-icu; then |
707 |
+ doins out/Release/icudtl.dat |
708 |
+ fi |
709 |
+ |
710 |
+ doins -r out/Release/locales |
711 |
+ doins -r out/Release/resources |
712 |
+ |
713 |
+ if [[ -d out/Release/swiftshader ]]; then |
714 |
+ insinto "${CHROMIUM_HOME}/swiftshader" |
715 |
+ doins out/Release/swiftshader/*.so |
716 |
+ fi |
717 |
+ |
718 |
+ # Install icons and desktop entry. |
719 |
+ local branding size |
720 |
+ for size in 16 22 24 32 48 64 128 256 ; do |
721 |
+ case ${size} in |
722 |
+ 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
723 |
+ *) branding="chrome/app/theme/chromium" ;; |
724 |
+ esac |
725 |
+ newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
726 |
+ chromium-browser.png |
727 |
+ done |
728 |
+ |
729 |
+ local mime_types="text/html;text/xml;application/xhtml+xml;" |
730 |
+ mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
731 |
+ mime_types+="x-scheme-handler/ftp;" # bug #412185 |
732 |
+ mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 |
733 |
+ make_desktop_entry \ |
734 |
+ chromium-browser \ |
735 |
+ "Chromium" \ |
736 |
+ chromium-browser \ |
737 |
+ "Network;WebBrowser" \ |
738 |
+ "MimeType=${mime_types}\nStartupWMClass=chromium-browser" |
739 |
+ sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die |
740 |
+ |
741 |
+ # Install GNOME default application entry (bug #303100). |
742 |
+ insinto /usr/share/gnome-control-center/default-apps |
743 |
+ newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml |
744 |
+ |
745 |
+ readme.gentoo_create_doc |
746 |
+} |
747 |
+ |
748 |
+pkg_postrm() { |
749 |
+ xdg_icon_cache_update |
750 |
+ xdg_desktop_database_update |
751 |
+} |
752 |
+ |
753 |
+pkg_postinst() { |
754 |
+ xdg_icon_cache_update |
755 |
+ xdg_desktop_database_update |
756 |
+ readme.gentoo_print_elog |
757 |
+} |
758 |
|
759 |
diff --git a/www-client/chromium/files/chromium-76-no-cups.patch b/www-client/chromium/files/chromium-76-no-cups.patch |
760 |
new file mode 100644 |
761 |
index 00000000000..28732c2b431 |
762 |
--- /dev/null |
763 |
+++ b/www-client/chromium/files/chromium-76-no-cups.patch |
764 |
@@ -0,0 +1,41 @@ |
765 |
+From f768afdd3104e7da663aa82e1e8f969aea3f85c3 Mon Sep 17 00:00:00 2001 |
766 |
+From: Lei Zhang <thestig@××××××××.org> |
767 |
+Date: Thu, 22 Aug 2019 11:44:27 -0700 |
768 |
+Subject: [PATCH] Handle unsupported configs in CreatePrinterHandlerTaskRunner(). |
769 |
+ |
770 |
+CreatePrinterHandlerTaskRunner(), which was added in |
771 |
+https://crrev.com/658397, used ifdefs to only handle the supported build |
772 |
+configs. Add a #else case as a catch-all to conservatively handle the |
773 |
+unsupported configs. Since it is only a couple lines of trivial code, |
774 |
+doing this does not create much of a maintenance burden. |
775 |
+ |
776 |
+(backported to chromium-76) |
777 |
+ |
778 |
+Bug: 990727 |
779 |
+Change-Id: I07bd21abaeffc8223e88b519c3891185d5d2be12 |
780 |
+--- |
781 |
+ |
782 |
+diff --git a/chrome/browser/ui/webui/print_preview/local_printer_handler_default.cc b/chrome/browser/ui/webui/print_preview/local_printer_handler_default.cc |
783 |
+index 03bd08a..e9c6996 100644 |
784 |
+--- a/chrome/browser/ui/webui/print_preview/local_printer_handler_default.cc |
785 |
++++ b/chrome/browser/ui/webui/print_preview/local_printer_handler_default.cc |
786 |
+@@ -33,12 +33,15 @@ scoped_refptr<base::TaskRunner> CreatePrinterHandlerTaskRunner() { |
787 |
+ static constexpr base::TaskTraits kTraits = { |
788 |
+ base::MayBlock(), base::TaskPriority::USER_VISIBLE}; |
789 |
+ |
790 |
+-#if defined(OS_WIN) |
791 |
+- // Windows drivers are likely not thread-safe. |
792 |
+- return base::CreateSingleThreadTaskRunnerWithTraits(kTraits); |
793 |
+-#elif defined(USE_CUPS) |
794 |
++#if defined(USE_CUPS) |
795 |
+ // CUPS is thread safe. |
796 |
+ return base::CreateTaskRunnerWithTraits(kTraits); |
797 |
++#elif defined(OS_WIN) |
798 |
++ // Windows drivers are likely not thread-safe. |
799 |
++ return base::CreateSingleThreadTaskRunnerWithTraits(kTraits); |
800 |
++#else |
801 |
++ // Be conservative on unsupported platforms. |
802 |
++ return base::CreateSingleThreadTaskRunnerWithTraits(kTraits); |
803 |
+ #endif |
804 |
+ } |
805 |
+ |