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