Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/webkit-gtk/
Date: Tue, 19 Feb 2019 20:48:13
Message-Id: 1550609223.e58365e2688ff60fd66aef89de876a18f5b70a38.leio@gentoo
1 commit: e58365e2688ff60fd66aef89de876a18f5b70a38
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 19 20:47:03 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 19 20:47:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e58365e2
7
8 net-libs/webkit-gtk: security cleanup
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 net-libs/webkit-gtk/Manifest | 1 -
14 net-libs/webkit-gtk/webkit-gtk-2.22.5.ebuild | 287 ---------------------------
15 2 files changed, 288 deletions(-)
16
17 diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest
18 index 01501d651c6..9899d30d68f 100644
19 --- a/net-libs/webkit-gtk/Manifest
20 +++ b/net-libs/webkit-gtk/Manifest
21 @@ -1,2 +1 @@
22 -DIST webkitgtk-2.22.5.tar.xz 16774560 BLAKE2B fb022febf72727d59a1ca9490c8de48ade5a07ff3688b6962481608b9e0d27319282c842eb214783021745c1beb893b8842036c62542874e011f2ab60d275f17 SHA512 fcea9fab3d71869cc10e322b1b63864a9594624f6aa3e29efd8b47e5ca639145f8c2cdb299ecb51eadf3ac1238dac06b4b7ebe94969b2f61a21cea8b609007bc
23 DIST webkitgtk-2.22.6.tar.xz 16773696 BLAKE2B 06ef81168f2c5c6a10362d7ebe0270c863e7eccc02a6b1f1486a01c3e583295d12f7ba5aa0ccc1ffa36f7e1c884b144ccc4203cf00f3096afa74957bc6875d71 SHA512 18f4a4c145b524bebf1eaae58057e1e6cb74ba5a162c5195f072ba25c4399e7749c74fe6f8e9351bb9f2630a2c43f59935943e5bb318a5c4977f727a68602709
24
25 diff --git a/net-libs/webkit-gtk/webkit-gtk-2.22.5.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.22.5.ebuild
26 deleted file mode 100644
27 index 24f6c402a5b..00000000000
28 --- a/net-libs/webkit-gtk/webkit-gtk-2.22.5.ebuild
29 +++ /dev/null
30 @@ -1,287 +0,0 @@
31 -# Copyright 1999-2019 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -CMAKE_MAKEFILE_GENERATOR="ninja"
36 -PYTHON_COMPAT=( python2_7 )
37 -USE_RUBY="ruby23 ruby24 ruby25"
38 -
39 -inherit check-reqs cmake-utils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx
40 -
41 -MY_P="webkitgtk-${PV}"
42 -DESCRIPTION="Open source web browser engine"
43 -HOMEPAGE="https://www.webkitgtk.org"
44 -SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz"
45 -
46 -LICENSE="LGPL-2+ BSD"
47 -SLOT="4/37" # soname version of libwebkit2gtk-4.0
48 -KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x86-macos"
49 -
50 -IUSE="aqua coverage doc +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jit libnotify nsplugin +opengl spell wayland +webgl +X"
51 -
52 -# webgl needs gstreamer, bug #560612
53 -# gstreamer with opengl/gles2 needs egl
54 -# non-GL builds are (temporarily?) broken - https://bugs.webkit.org/show_bug.cgi?id=193380
55 -REQUIRED_USE="
56 - ^^ ( opengl gles2 )
57 - geolocation? ( introspection )
58 - gles2? ( egl !opengl )
59 - gstreamer? ( opengl? ( egl ) )
60 - nsplugin? ( X )
61 - webgl? ( gstreamer
62 - || ( gles2 opengl ) )
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 OpenWebRTC checks and conditionals, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF)
75 -# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE)
76 -RDEPEND="
77 - >=x11-libs/cairo-1.10.2:=[X?]
78 - >=media-libs/fontconfig-2.8.0:1.0
79 - >=media-libs/freetype-2.4.2:2
80 - >=dev-libs/libgcrypt-1.6.0:0=
81 - >=x11-libs/gtk+-3.22:3[aqua?,introspection?,wayland?,X?]
82 - >=media-libs/harfbuzz-1.3.3:=[icu(+)]
83 - >=dev-libs/icu-3.8.1-r1:=
84 - virtual/jpeg:0=
85 - >=net-libs/libsoup-2.48:2.4[introspection?]
86 - >=dev-libs/libxml2-2.8.0:2
87 - >=media-libs/libpng-1.4:0=
88 - dev-db/sqlite:3=
89 - sys-libs/zlib:0
90 - >=dev-libs/atk-2.8.0
91 - media-libs/libwebp:=
92 -
93 - >=dev-libs/glib-2.40:2
94 - >=dev-libs/libxslt-1.1.7
95 - media-libs/woff2
96 - gnome-keyring? ( app-crypt/libsecret )
97 - geolocation? ( >=app-misc/geoclue-2.1.5:2.0 )
98 - introspection? ( >=dev-libs/gobject-introspection-1.32.0:= )
99 - dev-libs/libtasn1:=
100 - >=dev-libs/libgcrypt-1.7.0:0=
101 - nsplugin? ( >=x11-libs/gtk+-2.24.10:2 )
102 - spell? ( >=app-text/enchant-0.22:= )
103 - gstreamer? (
104 - >=media-libs/gstreamer-1.14:1.0
105 - >=media-libs/gst-plugins-base-1.14:1.0[egl?,gles2?,opengl?]
106 - >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0
107 - >=media-libs/gst-plugins-bad-1.14:1.0 )
108 -
109 - X? (
110 - x11-libs/libX11
111 - x11-libs/libXcomposite
112 - x11-libs/libXdamage
113 - x11-libs/libXrender
114 - x11-libs/libXt )
115 -
116 - libnotify? ( x11-libs/libnotify )
117 - dev-libs/hyphen
118 -
119 - egl? ( media-libs/mesa[egl] )
120 - gles2? ( media-libs/mesa[gles2] )
121 - opengl? ( virtual/opengl )
122 - webgl? (
123 - x11-libs/libXcomposite
124 - x11-libs/libXdamage )
125 -"
126 -
127 -# paxctl needed for bug #407085
128 -# Need real bison, not yacc
129 -DEPEND="${RDEPEND}
130 - ${PYTHON_DEPS}
131 - ${RUBY_DEPS}
132 - >=app-accessibility/at-spi2-core-2.5.3
133 - >=dev-lang/perl-5.10
134 - dev-util/glib-utils
135 - >=dev-util/gtk-doc-am-1.10
136 - >=dev-util/gperf-3.0.1
137 - >=sys-devel/bison-2.4.3
138 - || ( >=sys-devel/gcc-6.0 >=sys-devel/clang-3.3 )
139 - sys-devel/gettext
140 - virtual/pkgconfig
141 -
142 - dev-lang/perl
143 - virtual/perl-Data-Dumper
144 - virtual/perl-Carp
145 - virtual/perl-JSON-PP
146 -
147 - doc? ( >=dev-util/gtk-doc-1.10 )
148 - geolocation? ( dev-util/gdbus-codegen )
149 - introspection? ( jit? ( sys-apps/paxctl ) )
150 -"
151 -# test? (
152 -# dev-python/pygobject:3[python_targets_python2_7]
153 -# x11-themes/hicolor-icon-theme
154 -# jit? ( sys-apps/paxctl ) )
155 -
156 -S="${WORKDIR}/${MY_P}"
157 -
158 -CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
159 -
160 -pkg_pretend() {
161 - if [[ ${MERGE_TYPE} != "binary" ]] ; then
162 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
163 - einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
164 - check-reqs_pkg_pretend
165 - fi
166 -
167 - if ! test-flag-CXX -std=c++11 ; then
168 - die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags"
169 - fi
170 -
171 - if tc-is-gcc && [[ $(gcc-version) < 4.9 ]] ; then
172 - die 'The active compiler needs to be gcc 4.9 (or newer)'
173 - fi
174 - fi
175 -
176 - if ! use opengl && ! use gles2; then
177 - ewarn
178 - ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles) completely."
179 - ewarn "This is an unsupported configuration meant for very specific embedded"
180 - ewarn "use cases, where there truly is no GL possible (and even that use case"
181 - ewarn "is very unlikely to come by). If you have GL (even software-only), you"
182 - ewarn "really really should be enabling OpenGL!"
183 - ewarn
184 - fi
185 -}
186 -
187 -pkg_setup() {
188 - if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
189 - check-reqs_pkg_setup
190 - fi
191 -
192 - python-any-r1_pkg_setup
193 -}
194 -
195 -src_prepare() {
196 - cmake-utils_src_prepare
197 - gnome2_src_prepare
198 -}
199 -
200 -src_configure() {
201 - # Respect CC, otherwise fails on prefix #395875
202 - tc-export CC
203 -
204 - # Arches without JIT support also need this to really disable it in all places
205 - use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
206 -
207 - # It does not compile on alpha without this in LDFLAGS
208 - # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
209 - use alpha && append-ldflags "-Wl,--no-relax"
210 -
211 - # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504
212 - use ia64 && append-ldflags "-Wl,--no-as-needed"
213 -
214 - # Sigbuses on SPARC with mcpu and co., bug #???
215 - use sparc && filter-flags "-mvis"
216 -
217 - # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
218 - use ppc64 && append-flags "-mminimal-toc"
219 -
220 - # Try to use less memory, bug #469942 (see Fedora .spec for reference)
221 - # --no-keep-memory doesn't work on ia64, bug #502492
222 - if ! use ia64; then
223 - append-ldflags "-Wl,--no-keep-memory"
224 - fi
225 -
226 - # We try to use gold when possible for this package
227 -# if ! tc-ld-is-gold ; then
228 -# append-ldflags "-Wl,--reduce-memory-overheads"
229 -# fi
230 -
231 - # Multiple rendering bugs on youtube, github, etc without this, bug #547224
232 - append-flags $(test-flags -fno-strict-aliasing)
233 -
234 - # Ruby situation is a bit complicated. See bug 513888
235 - local rubyimpl
236 - local ruby_interpreter=""
237 - for rubyimpl in ${USE_RUBY}; do
238 - if has_version "virtual/rubygems[ruby_targets_${rubyimpl}]"; then
239 - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})"
240 - fi
241 - done
242 - # This will rarely occur. Only a couple of corner cases could lead us to
243 - # that failure. See bug 513888
244 - [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found"
245 -
246 - # TODO: Check Web Audio support
247 - # should somehow let user select between them?
248 - #
249 - # FTL_JIT requires llvm
250 - #
251 - # opengl needs to be explicetly handled, bug #576634
252 -
253 - local opengl_enabled
254 - if use opengl || use gles2; then
255 - opengl_enabled=ON
256 - else
257 - opengl_enabled=OFF
258 - fi
259 -
260 - local mycmakeargs=(
261 - -DENABLE_QUARTZ_TARGET=$(usex aqua)
262 - -DENABLE_API_TESTS=$(usex test)
263 - -DENABLE_GTKDOC=$(usex doc)
264 - -DENABLE_GEOLOCATION=$(usex geolocation)
265 - $(cmake-utils_use_find_package gles2 OpenGLES2)
266 - -DENABLE_GLES2=$(usex gles2)
267 - -DENABLE_VIDEO=$(usex gstreamer)
268 - -DENABLE_WEB_AUDIO=$(usex gstreamer)
269 - -DENABLE_INTROSPECTION=$(usex introspection)
270 - -DENABLE_JIT=$(usex jit)
271 - -DUSE_LIBNOTIFY=$(usex libnotify)
272 - -DUSE_LIBSECRET=$(usex gnome-keyring)
273 - -DUSE_WOFF2=ON
274 - -DENABLE_PLUGIN_PROCESS_GTK2=$(usex nsplugin)
275 - -DENABLE_SPELLCHECK=$(usex spell)
276 - -DENABLE_WAYLAND_TARGET=$(usex wayland)
277 - -DENABLE_WEBGL=$(usex webgl)
278 - $(cmake-utils_use_find_package egl EGL)
279 - $(cmake-utils_use_find_package opengl OpenGL)
280 - -DENABLE_X11_TARGET=$(usex X)
281 - -DENABLE_OPENGL=${opengl_enabled}
282 - -DCMAKE_BUILD_TYPE=Release
283 - -DPORT=GTK
284 - ${ruby_interpreter}
285 - )
286 -
287 - # Allow it to use GOLD when possible as it has all the magic to
288 - # detect when to use it and using gold for this concrete package has
289 - # multiple advantages and is also the upstream default, bug #585788
290 -# if tc-ld-is-gold ; then
291 -# mycmakeargs+=( -DUSE_LD_GOLD=ON )
292 -# else
293 -# mycmakeargs+=( -DUSE_LD_GOLD=OFF )
294 -# fi
295 -
296 - cmake-utils_src_configure
297 -}
298 -
299 -src_compile() {
300 - cmake-utils_src_compile
301 -}
302 -
303 -src_test() {
304 - # Prevents test failures on PaX systems
305 - use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
306 -
307 - cmake-utils_src_test
308 -}
309 -
310 -src_install() {
311 - cmake-utils_src_install
312 -
313 - # Prevents crashes on PaX systems, bug #522808
314 - use jit && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess"
315 - pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"
316 - use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2
317 -}