1 |
commit: fb2dcb0fecee802258e1501ef657f6de2a4c99a0 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 14 22:14:37 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 14 22:14:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb2dcb0f |
7 |
|
8 |
net-libs/webkit-gtk: security bump to 2.26.4 |
9 |
|
10 |
-r0 is for fast security stabling, -r1 is the enchant:2 ensuring |
11 |
revision. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/709612 |
14 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
15 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
16 |
|
17 |
net-libs/webkit-gtk/Manifest | 1 + |
18 |
net-libs/webkit-gtk/webkit-gtk-2.26.4-r1.ebuild | 286 ++++++++++++++++++++++++ |
19 |
net-libs/webkit-gtk/webkit-gtk-2.26.4.ebuild | 286 ++++++++++++++++++++++++ |
20 |
3 files changed, 573 insertions(+) |
21 |
|
22 |
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest |
23 |
index d7bccd3000a..963bb2a94ad 100644 |
24 |
--- a/net-libs/webkit-gtk/Manifest |
25 |
+++ b/net-libs/webkit-gtk/Manifest |
26 |
@@ -1,2 +1,3 @@ |
27 |
DIST webkitgtk-2.24.4.tar.xz 17575784 BLAKE2B c30683ea365a50d7def572305b49278343d67739f9bd3cfd78cb08b5cc87b5453504df9b09752f8d6483b18b9b812f3d3cddc084762cfa8990fcc651660b89c2 SHA512 1d713955a735ae2e2229beea7bda7f518a6247c6aa7f5753aeb5b5c6395339d451d0d146f7188e7ba65cb82ea5a74a5e73e956fe59d5f5f97659a44af33df112 |
28 |
DIST webkitgtk-2.26.3.tar.xz 19331900 BLAKE2B 14c31b0f640b0f859a3c1eeda542f176f6c7981270c5be3225556eb4a1027a2511039cf0f33682faa93846c4ca5ed64158574a9b8a662a4a200b97cad28d5ed0 SHA512 9575c86ab5752c09841878cf55134e7de9a87200e55017859cd02affb1cadd58031a7b6f67a580e87a1dfe4fc830fed9774ba289e7244d3ead9eb9328e76d7c9 |
29 |
+DIST webkitgtk-2.26.4.tar.xz 19329636 BLAKE2B 9dc88bf9e2bec4f3ccc316f4967e991595fa17151ad74781ea514e72700f2bd1f3ed32c5ee662eb1d04fa023e7c33ad1215078415b67c939ee0d4f6d55358d4a SHA512 b4d96672d0a41fb7591dd312254fc1b7a85e632923bf2d954d79d395306db96d5a6b4f85e24ea4ba0a447e45e29a41882249c26f6b2d6d572225abefcf28a474 |
30 |
|
31 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.26.4-r1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.26.4-r1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..98448644402 |
34 |
--- /dev/null |
35 |
+++ b/net-libs/webkit-gtk/webkit-gtk-2.26.4-r1.ebuild |
36 |
@@ -0,0 +1,286 @@ |
37 |
+# Copyright 1999-2020 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+CMAKE_MAKEFILE_GENERATOR="ninja" |
42 |
+PYTHON_COMPAT=( python{3_6,3_7} ) |
43 |
+USE_RUBY="ruby24 ruby25 ruby26 ruby27" |
44 |
+CMAKE_MIN_VERSION=3.10 |
45 |
+ |
46 |
+inherit check-reqs cmake-utils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx |
47 |
+ |
48 |
+MY_P="webkitgtk-${PV}" |
49 |
+DESCRIPTION="Open source web browser engine" |
50 |
+HOMEPAGE="https://www.webkitgtk.org" |
51 |
+SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
52 |
+ |
53 |
+LICENSE="LGPL-2+ BSD" |
54 |
+SLOT="4/37" # soname version of libwebkit2gtk-4.0 |
55 |
+KEYWORDS="~amd64 ~ia64 ~ppc64 ~sparc ~x86" |
56 |
+ |
57 |
+IUSE="aqua coverage +egl +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify +opengl seccomp spell wayland +X" |
58 |
+ |
59 |
+# gstreamer with opengl/gles2 needs egl |
60 |
+REQUIRED_USE=" |
61 |
+ gles2-only? ( egl !opengl ) |
62 |
+ gstreamer? ( opengl? ( egl ) ) |
63 |
+ wayland? ( egl ) |
64 |
+ || ( aqua wayland X ) |
65 |
+" |
66 |
+ |
67 |
+# Tests fail to link for inexplicable reasons |
68 |
+# https://bugs.webkit.org/show_bug.cgi?id=148210 |
69 |
+RESTRICT="test" |
70 |
+ |
71 |
+# Aqua support in gtk3 is untested |
72 |
+# Dependencies found at Source/cmake/OptionsGTK.cmake |
73 |
+# Various compile-time optionals for gtk+-3.22.0 - ensure it |
74 |
+# Missing WebRTC support, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) and shouldn't be used yet in 2.26 |
75 |
+# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE) |
76 |
+wpe_depend=" |
77 |
+ >=gui-libs/libwpe-1.3.0:1.0 |
78 |
+ >=gui-libs/wpebackend-fdo-1.3.1:1.0 |
79 |
+" |
80 |
+RDEPEND=" |
81 |
+ >=x11-libs/cairo-1.16.0:=[X?] |
82 |
+ >=media-libs/fontconfig-2.13.0:1.0 |
83 |
+ >=media-libs/freetype-2.9.0:2 |
84 |
+ >=dev-libs/libgcrypt-1.7.0:0= |
85 |
+ >=x11-libs/gtk+-3.22.0:3[aqua?,introspection?,wayland?,X?] |
86 |
+ >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
87 |
+ >=dev-libs/icu-3.8.1-r1:= |
88 |
+ virtual/jpeg:0= |
89 |
+ >=net-libs/libsoup-2.54:2.4[introspection?] |
90 |
+ >=dev-libs/libxml2-2.8.0:2 |
91 |
+ >=media-libs/libpng-1.4:0= |
92 |
+ dev-db/sqlite:3= |
93 |
+ sys-libs/zlib:0 |
94 |
+ >=dev-libs/atk-2.16.0 |
95 |
+ media-libs/libwebp:= |
96 |
+ |
97 |
+ >=dev-libs/glib-2.44.0:2 |
98 |
+ >=dev-libs/libxslt-1.1.7 |
99 |
+ media-libs/woff2 |
100 |
+ gnome-keyring? ( app-crypt/libsecret ) |
101 |
+ introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
102 |
+ dev-libs/libtasn1:= |
103 |
+ spell? ( >=app-text/enchant-0.22:2 ) |
104 |
+ gstreamer? ( |
105 |
+ >=media-libs/gstreamer-1.14:1.0 |
106 |
+ >=media-libs/gst-plugins-base-1.14:1.0[egl?,opengl?] |
107 |
+ gles2-only? ( media-libs/gst-plugins-base:1.0[gles2] ) |
108 |
+ >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0 |
109 |
+ >=media-libs/gst-plugins-bad-1.14:1.0 ) |
110 |
+ |
111 |
+ X? ( |
112 |
+ x11-libs/libX11 |
113 |
+ x11-libs/libXcomposite |
114 |
+ x11-libs/libXdamage |
115 |
+ x11-libs/libXrender |
116 |
+ x11-libs/libXt ) |
117 |
+ |
118 |
+ libnotify? ( x11-libs/libnotify ) |
119 |
+ dev-libs/hyphen |
120 |
+ jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= ) |
121 |
+ |
122 |
+ egl? ( media-libs/mesa[egl] ) |
123 |
+ gles2-only? ( media-libs/mesa[gles2] ) |
124 |
+ opengl? ( virtual/opengl ) |
125 |
+ wayland? ( |
126 |
+ opengl? ( ${wpe_depend} ) |
127 |
+ gles2-only? ( ${wpe_depend} ) |
128 |
+ ) |
129 |
+ |
130 |
+ seccomp? ( |
131 |
+ >=sys-apps/bubblewrap-0.3.1 |
132 |
+ sys-libs/libseccomp |
133 |
+ sys-apps/xdg-dbus-proxy |
134 |
+ ) |
135 |
+" |
136 |
+unset wpe_depend |
137 |
+# paxctl needed for bug #407085 |
138 |
+# Need real bison, not yacc |
139 |
+DEPEND="${RDEPEND} |
140 |
+ ${PYTHON_DEPS} |
141 |
+ ${RUBY_DEPS} |
142 |
+ >=app-accessibility/at-spi2-core-2.5.3 |
143 |
+ dev-util/glib-utils |
144 |
+ >=dev-util/gperf-3.0.1 |
145 |
+ >=sys-devel/bison-2.4.3 |
146 |
+ || ( >=sys-devel/gcc-7.3 >=sys-devel/clang-5 ) |
147 |
+ sys-devel/gettext |
148 |
+ virtual/pkgconfig |
149 |
+ |
150 |
+ >=dev-lang/perl-5.10 |
151 |
+ virtual/perl-Data-Dumper |
152 |
+ virtual/perl-Carp |
153 |
+ virtual/perl-JSON-PP |
154 |
+ |
155 |
+ gtk-doc? ( >=dev-util/gtk-doc-1.10 ) |
156 |
+ geolocation? ( dev-util/gdbus-codegen ) |
157 |
+" |
158 |
+# test? ( |
159 |
+# dev-python/pygobject:3[python_targets_python2_7] |
160 |
+# x11-themes/hicolor-icon-theme |
161 |
+# jit? ( sys-apps/paxctl ) ) |
162 |
+RDEPEND="${RDEPEND} |
163 |
+ geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
164 |
+" |
165 |
+ |
166 |
+S="${WORKDIR}/${MY_P}" |
167 |
+ |
168 |
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
169 |
+ |
170 |
+pkg_pretend() { |
171 |
+ if [[ ${MERGE_TYPE} != "binary" ]] ; then |
172 |
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
173 |
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
174 |
+ check-reqs_pkg_pretend |
175 |
+ fi |
176 |
+ |
177 |
+ if ! test-flag-CXX -std=c++17 ; then |
178 |
+ die "You need at least GCC 7.3.x or Clang >= 5 for C++17-specific compiler flags" |
179 |
+ fi |
180 |
+ fi |
181 |
+ |
182 |
+ if ! use opengl && ! use gles2-only; then |
183 |
+ ewarn |
184 |
+ ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles-only) completely." |
185 |
+ ewarn "This is an unsupported configuration meant for very specific embedded" |
186 |
+ ewarn "use cases, where there truly is no GL possible (and even that use case" |
187 |
+ ewarn "is very unlikely to come by). If you have GL (even software-only), you" |
188 |
+ ewarn "really really should be enabling OpenGL!" |
189 |
+ ewarn |
190 |
+ fi |
191 |
+} |
192 |
+ |
193 |
+pkg_setup() { |
194 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
195 |
+ check-reqs_pkg_setup |
196 |
+ fi |
197 |
+ |
198 |
+ python-any-r1_pkg_setup |
199 |
+} |
200 |
+ |
201 |
+src_prepare() { |
202 |
+ eapply "${FILESDIR}/${PN}-2.24.4-eglmesaext-include.patch" # bug 699054 # https://bugs.webkit.org/show_bug.cgi?id=204108 |
203 |
+ eapply "${FILESDIR}"/2.26.2-fix-arm-non-unified-build.patch # bug 704194 |
204 |
+ eapply "${FILESDIR}"/2.26.3-fix-gtk-doc.patch # bug 704550 - retest without it once we can depend on >=gtk-doc-1.32 |
205 |
+ cmake-utils_src_prepare |
206 |
+ gnome2_src_prepare |
207 |
+} |
208 |
+ |
209 |
+src_configure() { |
210 |
+ # Respect CC, otherwise fails on prefix #395875 |
211 |
+ tc-export CC |
212 |
+ |
213 |
+ # It does not compile on alpha without this in LDFLAGS |
214 |
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
215 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
216 |
+ |
217 |
+ # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504 |
218 |
+ use ia64 && append-ldflags "-Wl,--no-as-needed" |
219 |
+ |
220 |
+ # Sigbuses on SPARC with mcpu and co., bug #??? |
221 |
+ use sparc && filter-flags "-mvis" |
222 |
+ |
223 |
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
224 |
+ use ppc64 && append-flags "-mminimal-toc" |
225 |
+ |
226 |
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
227 |
+ # --no-keep-memory doesn't work on ia64, bug #502492 |
228 |
+ if ! use ia64; then |
229 |
+ append-ldflags "-Wl,--no-keep-memory" |
230 |
+ fi |
231 |
+ |
232 |
+ # We try to use gold when possible for this package |
233 |
+# if ! tc-ld-is-gold ; then |
234 |
+# append-ldflags "-Wl,--reduce-memory-overheads" |
235 |
+# fi |
236 |
+ |
237 |
+ # Ruby situation is a bit complicated. See bug 513888 |
238 |
+ local rubyimpl |
239 |
+ local ruby_interpreter="" |
240 |
+ for rubyimpl in ${USE_RUBY}; do |
241 |
+ if has_version --host-root "virtual/rubygems[ruby_targets_${rubyimpl}]"; then |
242 |
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" |
243 |
+ fi |
244 |
+ done |
245 |
+ # This will rarely occur. Only a couple of corner cases could lead us to |
246 |
+ # that failure. See bug 513888 |
247 |
+ [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" |
248 |
+ |
249 |
+ # TODO: Check Web Audio support |
250 |
+ # should somehow let user select between them? |
251 |
+ # |
252 |
+ # opengl needs to be explicetly handled, bug #576634 |
253 |
+ |
254 |
+ local use_wpe_renderer=OFF |
255 |
+ local opengl_enabled |
256 |
+ if use opengl || use gles2-only; then |
257 |
+ opengl_enabled=ON |
258 |
+ use wayland && use_wpe_renderer=ON |
259 |
+ else |
260 |
+ opengl_enabled=OFF |
261 |
+ fi |
262 |
+ |
263 |
+ local mycmakeargs=( |
264 |
+ -DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) |
265 |
+ -DENABLE_QUARTZ_TARGET=$(usex aqua) |
266 |
+ -DENABLE_API_TESTS=$(usex test) |
267 |
+ -DENABLE_GTKDOC=$(usex gtk-doc) |
268 |
+ -DENABLE_GEOLOCATION=$(usex geolocation) # Runtime optional (talks over dbus service) |
269 |
+ $(cmake-utils_use_find_package gles2-only OpenGLES2) |
270 |
+ -DENABLE_GLES2=$(usex gles2-only) |
271 |
+ -DENABLE_VIDEO=$(usex gstreamer) |
272 |
+ -DENABLE_WEB_AUDIO=$(usex gstreamer) |
273 |
+ -DENABLE_INTROSPECTION=$(usex introspection) |
274 |
+ -DUSE_LIBNOTIFY=$(usex libnotify) |
275 |
+ -DUSE_LIBSECRET=$(usex gnome-keyring) |
276 |
+ -DUSE_OPENJPEG=$(usex jpeg2k) |
277 |
+ -DUSE_WOFF2=ON |
278 |
+ -DENABLE_SPELLCHECK=$(usex spell) |
279 |
+ -DENABLE_WAYLAND_TARGET=$(usex wayland) |
280 |
+ -DUSE_WPE_RENDERER=${use_wpe_renderer} # WPE renderer is used to implement accelerated compositing under wayland |
281 |
+ $(cmake-utils_use_find_package egl EGL) |
282 |
+ $(cmake-utils_use_find_package opengl OpenGL) |
283 |
+ -DENABLE_X11_TARGET=$(usex X) |
284 |
+ -DENABLE_OPENGL=${opengl_enabled} |
285 |
+ -DENABLE_WEBGL=${opengl_enabled} |
286 |
+ -DENABLE_BUBBLEWRAP_SANDBOX=$(usex seccomp) |
287 |
+ -DBWRAP_EXECUTABLE="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that |
288 |
+ -DCMAKE_BUILD_TYPE=Release |
289 |
+ -DPORT=GTK |
290 |
+ ${ruby_interpreter} |
291 |
+ ) |
292 |
+ |
293 |
+ # Allow it to use GOLD when possible as it has all the magic to |
294 |
+ # detect when to use it and using gold for this concrete package has |
295 |
+ # multiple advantages and is also the upstream default, bug #585788 |
296 |
+# if tc-ld-is-gold ; then |
297 |
+# mycmakeargs+=( -DUSE_LD_GOLD=ON ) |
298 |
+# else |
299 |
+# mycmakeargs+=( -DUSE_LD_GOLD=OFF ) |
300 |
+# fi |
301 |
+ |
302 |
+ cmake-utils_src_configure |
303 |
+} |
304 |
+ |
305 |
+src_compile() { |
306 |
+ cmake-utils_src_compile |
307 |
+} |
308 |
+ |
309 |
+src_test() { |
310 |
+ # Prevents test failures on PaX systems |
311 |
+ pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
312 |
+ |
313 |
+ cmake-utils_src_test |
314 |
+} |
315 |
+ |
316 |
+src_install() { |
317 |
+ cmake-utils_src_install |
318 |
+ |
319 |
+ # Prevents crashes on PaX systems, bug #522808 |
320 |
+ pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess" |
321 |
+ pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess" |
322 |
+} |
323 |
|
324 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.26.4.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.26.4.ebuild |
325 |
new file mode 100644 |
326 |
index 00000000000..4a639c00493 |
327 |
--- /dev/null |
328 |
+++ b/net-libs/webkit-gtk/webkit-gtk-2.26.4.ebuild |
329 |
@@ -0,0 +1,286 @@ |
330 |
+# Copyright 1999-2020 Gentoo Authors |
331 |
+# Distributed under the terms of the GNU General Public License v2 |
332 |
+ |
333 |
+EAPI=6 |
334 |
+CMAKE_MAKEFILE_GENERATOR="ninja" |
335 |
+PYTHON_COMPAT=( python{3_6,3_7} ) |
336 |
+USE_RUBY="ruby24 ruby25 ruby26 ruby27" |
337 |
+CMAKE_MIN_VERSION=3.10 |
338 |
+ |
339 |
+inherit check-reqs cmake-utils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx |
340 |
+ |
341 |
+MY_P="webkitgtk-${PV}" |
342 |
+DESCRIPTION="Open source web browser engine" |
343 |
+HOMEPAGE="https://www.webkitgtk.org" |
344 |
+SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
345 |
+ |
346 |
+LICENSE="LGPL-2+ BSD" |
347 |
+SLOT="4/37" # soname version of libwebkit2gtk-4.0 |
348 |
+KEYWORDS="~amd64 ~ia64 ~ppc64 ~sparc ~x86" |
349 |
+ |
350 |
+IUSE="aqua coverage +egl +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build libnotify +opengl seccomp spell wayland +X" |
351 |
+ |
352 |
+# gstreamer with opengl/gles2 needs egl |
353 |
+REQUIRED_USE=" |
354 |
+ gles2-only? ( egl !opengl ) |
355 |
+ gstreamer? ( opengl? ( egl ) ) |
356 |
+ wayland? ( egl ) |
357 |
+ || ( aqua wayland X ) |
358 |
+" |
359 |
+ |
360 |
+# Tests fail to link for inexplicable reasons |
361 |
+# https://bugs.webkit.org/show_bug.cgi?id=148210 |
362 |
+RESTRICT="test" |
363 |
+ |
364 |
+# Aqua support in gtk3 is untested |
365 |
+# Dependencies found at Source/cmake/OptionsGTK.cmake |
366 |
+# Various compile-time optionals for gtk+-3.22.0 - ensure it |
367 |
+# Missing WebRTC support, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) and shouldn't be used yet in 2.26 |
368 |
+# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE) |
369 |
+wpe_depend=" |
370 |
+ >=gui-libs/libwpe-1.3.0:1.0 |
371 |
+ >=gui-libs/wpebackend-fdo-1.3.1:1.0 |
372 |
+" |
373 |
+RDEPEND=" |
374 |
+ >=x11-libs/cairo-1.16.0:=[X?] |
375 |
+ >=media-libs/fontconfig-2.13.0:1.0 |
376 |
+ >=media-libs/freetype-2.9.0:2 |
377 |
+ >=dev-libs/libgcrypt-1.7.0:0= |
378 |
+ >=x11-libs/gtk+-3.22.0:3[aqua?,introspection?,wayland?,X?] |
379 |
+ >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
380 |
+ >=dev-libs/icu-3.8.1-r1:= |
381 |
+ virtual/jpeg:0= |
382 |
+ >=net-libs/libsoup-2.54:2.4[introspection?] |
383 |
+ >=dev-libs/libxml2-2.8.0:2 |
384 |
+ >=media-libs/libpng-1.4:0= |
385 |
+ dev-db/sqlite:3= |
386 |
+ sys-libs/zlib:0 |
387 |
+ >=dev-libs/atk-2.16.0 |
388 |
+ media-libs/libwebp:= |
389 |
+ |
390 |
+ >=dev-libs/glib-2.44.0:2 |
391 |
+ >=dev-libs/libxslt-1.1.7 |
392 |
+ media-libs/woff2 |
393 |
+ gnome-keyring? ( app-crypt/libsecret ) |
394 |
+ introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
395 |
+ dev-libs/libtasn1:= |
396 |
+ spell? ( >=app-text/enchant-0.22:= ) |
397 |
+ gstreamer? ( |
398 |
+ >=media-libs/gstreamer-1.14:1.0 |
399 |
+ >=media-libs/gst-plugins-base-1.14:1.0[egl?,opengl?] |
400 |
+ gles2-only? ( media-libs/gst-plugins-base:1.0[gles2] ) |
401 |
+ >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0 |
402 |
+ >=media-libs/gst-plugins-bad-1.14:1.0 ) |
403 |
+ |
404 |
+ X? ( |
405 |
+ x11-libs/libX11 |
406 |
+ x11-libs/libXcomposite |
407 |
+ x11-libs/libXdamage |
408 |
+ x11-libs/libXrender |
409 |
+ x11-libs/libXt ) |
410 |
+ |
411 |
+ libnotify? ( x11-libs/libnotify ) |
412 |
+ dev-libs/hyphen |
413 |
+ jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= ) |
414 |
+ |
415 |
+ egl? ( media-libs/mesa[egl] ) |
416 |
+ gles2-only? ( media-libs/mesa[gles2] ) |
417 |
+ opengl? ( virtual/opengl ) |
418 |
+ wayland? ( |
419 |
+ opengl? ( ${wpe_depend} ) |
420 |
+ gles2-only? ( ${wpe_depend} ) |
421 |
+ ) |
422 |
+ |
423 |
+ seccomp? ( |
424 |
+ >=sys-apps/bubblewrap-0.3.1 |
425 |
+ sys-libs/libseccomp |
426 |
+ sys-apps/xdg-dbus-proxy |
427 |
+ ) |
428 |
+" |
429 |
+unset wpe_depend |
430 |
+# paxctl needed for bug #407085 |
431 |
+# Need real bison, not yacc |
432 |
+DEPEND="${RDEPEND} |
433 |
+ ${PYTHON_DEPS} |
434 |
+ ${RUBY_DEPS} |
435 |
+ >=app-accessibility/at-spi2-core-2.5.3 |
436 |
+ dev-util/glib-utils |
437 |
+ >=dev-util/gperf-3.0.1 |
438 |
+ >=sys-devel/bison-2.4.3 |
439 |
+ || ( >=sys-devel/gcc-7.3 >=sys-devel/clang-5 ) |
440 |
+ sys-devel/gettext |
441 |
+ virtual/pkgconfig |
442 |
+ |
443 |
+ >=dev-lang/perl-5.10 |
444 |
+ virtual/perl-Data-Dumper |
445 |
+ virtual/perl-Carp |
446 |
+ virtual/perl-JSON-PP |
447 |
+ |
448 |
+ gtk-doc? ( >=dev-util/gtk-doc-1.10 ) |
449 |
+ geolocation? ( dev-util/gdbus-codegen ) |
450 |
+" |
451 |
+# test? ( |
452 |
+# dev-python/pygobject:3[python_targets_python2_7] |
453 |
+# x11-themes/hicolor-icon-theme |
454 |
+# jit? ( sys-apps/paxctl ) ) |
455 |
+RDEPEND="${RDEPEND} |
456 |
+ geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
457 |
+" |
458 |
+ |
459 |
+S="${WORKDIR}/${MY_P}" |
460 |
+ |
461 |
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
462 |
+ |
463 |
+pkg_pretend() { |
464 |
+ if [[ ${MERGE_TYPE} != "binary" ]] ; then |
465 |
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
466 |
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
467 |
+ check-reqs_pkg_pretend |
468 |
+ fi |
469 |
+ |
470 |
+ if ! test-flag-CXX -std=c++17 ; then |
471 |
+ die "You need at least GCC 7.3.x or Clang >= 5 for C++17-specific compiler flags" |
472 |
+ fi |
473 |
+ fi |
474 |
+ |
475 |
+ if ! use opengl && ! use gles2-only; then |
476 |
+ ewarn |
477 |
+ ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles-only) completely." |
478 |
+ ewarn "This is an unsupported configuration meant for very specific embedded" |
479 |
+ ewarn "use cases, where there truly is no GL possible (and even that use case" |
480 |
+ ewarn "is very unlikely to come by). If you have GL (even software-only), you" |
481 |
+ ewarn "really really should be enabling OpenGL!" |
482 |
+ ewarn |
483 |
+ fi |
484 |
+} |
485 |
+ |
486 |
+pkg_setup() { |
487 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
488 |
+ check-reqs_pkg_setup |
489 |
+ fi |
490 |
+ |
491 |
+ python-any-r1_pkg_setup |
492 |
+} |
493 |
+ |
494 |
+src_prepare() { |
495 |
+ eapply "${FILESDIR}/${PN}-2.24.4-eglmesaext-include.patch" # bug 699054 # https://bugs.webkit.org/show_bug.cgi?id=204108 |
496 |
+ eapply "${FILESDIR}"/2.26.2-fix-arm-non-unified-build.patch # bug 704194 |
497 |
+ eapply "${FILESDIR}"/2.26.3-fix-gtk-doc.patch # bug 704550 - retest without it once we can depend on >=gtk-doc-1.32 |
498 |
+ cmake-utils_src_prepare |
499 |
+ gnome2_src_prepare |
500 |
+} |
501 |
+ |
502 |
+src_configure() { |
503 |
+ # Respect CC, otherwise fails on prefix #395875 |
504 |
+ tc-export CC |
505 |
+ |
506 |
+ # It does not compile on alpha without this in LDFLAGS |
507 |
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
508 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
509 |
+ |
510 |
+ # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504 |
511 |
+ use ia64 && append-ldflags "-Wl,--no-as-needed" |
512 |
+ |
513 |
+ # Sigbuses on SPARC with mcpu and co., bug #??? |
514 |
+ use sparc && filter-flags "-mvis" |
515 |
+ |
516 |
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
517 |
+ use ppc64 && append-flags "-mminimal-toc" |
518 |
+ |
519 |
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
520 |
+ # --no-keep-memory doesn't work on ia64, bug #502492 |
521 |
+ if ! use ia64; then |
522 |
+ append-ldflags "-Wl,--no-keep-memory" |
523 |
+ fi |
524 |
+ |
525 |
+ # We try to use gold when possible for this package |
526 |
+# if ! tc-ld-is-gold ; then |
527 |
+# append-ldflags "-Wl,--reduce-memory-overheads" |
528 |
+# fi |
529 |
+ |
530 |
+ # Ruby situation is a bit complicated. See bug 513888 |
531 |
+ local rubyimpl |
532 |
+ local ruby_interpreter="" |
533 |
+ for rubyimpl in ${USE_RUBY}; do |
534 |
+ if has_version --host-root "virtual/rubygems[ruby_targets_${rubyimpl}]"; then |
535 |
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" |
536 |
+ fi |
537 |
+ done |
538 |
+ # This will rarely occur. Only a couple of corner cases could lead us to |
539 |
+ # that failure. See bug 513888 |
540 |
+ [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" |
541 |
+ |
542 |
+ # TODO: Check Web Audio support |
543 |
+ # should somehow let user select between them? |
544 |
+ # |
545 |
+ # opengl needs to be explicetly handled, bug #576634 |
546 |
+ |
547 |
+ local use_wpe_renderer=OFF |
548 |
+ local opengl_enabled |
549 |
+ if use opengl || use gles2-only; then |
550 |
+ opengl_enabled=ON |
551 |
+ use wayland && use_wpe_renderer=ON |
552 |
+ else |
553 |
+ opengl_enabled=OFF |
554 |
+ fi |
555 |
+ |
556 |
+ local mycmakeargs=( |
557 |
+ -DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) |
558 |
+ -DENABLE_QUARTZ_TARGET=$(usex aqua) |
559 |
+ -DENABLE_API_TESTS=$(usex test) |
560 |
+ -DENABLE_GTKDOC=$(usex gtk-doc) |
561 |
+ -DENABLE_GEOLOCATION=$(usex geolocation) # Runtime optional (talks over dbus service) |
562 |
+ $(cmake-utils_use_find_package gles2-only OpenGLES2) |
563 |
+ -DENABLE_GLES2=$(usex gles2-only) |
564 |
+ -DENABLE_VIDEO=$(usex gstreamer) |
565 |
+ -DENABLE_WEB_AUDIO=$(usex gstreamer) |
566 |
+ -DENABLE_INTROSPECTION=$(usex introspection) |
567 |
+ -DUSE_LIBNOTIFY=$(usex libnotify) |
568 |
+ -DUSE_LIBSECRET=$(usex gnome-keyring) |
569 |
+ -DUSE_OPENJPEG=$(usex jpeg2k) |
570 |
+ -DUSE_WOFF2=ON |
571 |
+ -DENABLE_SPELLCHECK=$(usex spell) |
572 |
+ -DENABLE_WAYLAND_TARGET=$(usex wayland) |
573 |
+ -DUSE_WPE_RENDERER=${use_wpe_renderer} # WPE renderer is used to implement accelerated compositing under wayland |
574 |
+ $(cmake-utils_use_find_package egl EGL) |
575 |
+ $(cmake-utils_use_find_package opengl OpenGL) |
576 |
+ -DENABLE_X11_TARGET=$(usex X) |
577 |
+ -DENABLE_OPENGL=${opengl_enabled} |
578 |
+ -DENABLE_WEBGL=${opengl_enabled} |
579 |
+ -DENABLE_BUBBLEWRAP_SANDBOX=$(usex seccomp) |
580 |
+ -DBWRAP_EXECUTABLE="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that |
581 |
+ -DCMAKE_BUILD_TYPE=Release |
582 |
+ -DPORT=GTK |
583 |
+ ${ruby_interpreter} |
584 |
+ ) |
585 |
+ |
586 |
+ # Allow it to use GOLD when possible as it has all the magic to |
587 |
+ # detect when to use it and using gold for this concrete package has |
588 |
+ # multiple advantages and is also the upstream default, bug #585788 |
589 |
+# if tc-ld-is-gold ; then |
590 |
+# mycmakeargs+=( -DUSE_LD_GOLD=ON ) |
591 |
+# else |
592 |
+# mycmakeargs+=( -DUSE_LD_GOLD=OFF ) |
593 |
+# fi |
594 |
+ |
595 |
+ cmake-utils_src_configure |
596 |
+} |
597 |
+ |
598 |
+src_compile() { |
599 |
+ cmake-utils_src_compile |
600 |
+} |
601 |
+ |
602 |
+src_test() { |
603 |
+ # Prevents test failures on PaX systems |
604 |
+ pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
605 |
+ |
606 |
+ cmake-utils_src_test |
607 |
+} |
608 |
+ |
609 |
+src_install() { |
610 |
+ cmake-utils_src_install |
611 |
+ |
612 |
+ # Prevents crashes on PaX systems, bug #522808 |
613 |
+ pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess" |
614 |
+ pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess" |
615 |
+} |