1 |
commit: c99899dde7c6c94f8ad09a1b4972f4da0d9dfdc2 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 25 19:04:12 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 25 19:05:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c99899dd |
7 |
|
8 |
net-libs/webkit-gtk: Remove security vulnerable SLOT=2 and SLOT=3 |
9 |
|
10 |
These slots are years old, unmaintained and vulnerable to hundreds of |
11 |
bugs with a CVE assigned. Additionally there are some known unfixed |
12 |
issues building against newer ICU. No interest in continued maintenance |
13 |
of known hugely security vulnerable versions, thus with no consumers |
14 |
remaining in main tree, this is going away now. Sorry. |
15 |
If you need this, please think seriously ten times before you make it |
16 |
available to yourself via an overlay, or use any software that requires |
17 |
this security riddled version still. |
18 |
|
19 |
Closes: https://bugs.gentoo.org/577068 |
20 |
|
21 |
net-libs/webkit-gtk/Manifest | 1 - |
22 |
.../files/webkit-gtk-1.11.90-gtk-docize-fix.patch | 10 - |
23 |
.../files/webkit-gtk-1.6.1-darwin-quartz.patch | 67 ----- |
24 |
.../files/webkit-gtk-2.2.5-hppa-platform.patch | 20 -- |
25 |
.../files/webkit-gtk-2.2.5-ia64-platform.patch | 12 - |
26 |
.../files/webkit-gtk-2.4.1-ia64-malloc.patch | 20 -- |
27 |
.../files/webkit-gtk-2.4.11-video-web-audio.patch | 11 - |
28 |
.../files/webkit-gtk-2.4.4-atomic-ppc.patch | 32 --- |
29 |
.../files/webkit-gtk-2.4.4-jpeg-9a.patch | 30 --- |
30 |
.../files/webkit-gtk-2.4.7-disable-webgl.patch | 11 - |
31 |
.../webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch | 29 --- |
32 |
net-libs/webkit-gtk/metadata.xml | 1 - |
33 |
net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild | 275 --------------------- |
34 |
net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild | 262 -------------------- |
35 |
profiles/package.mask | 3 +- |
36 |
15 files changed, 1 insertion(+), 783 deletions(-) |
37 |
|
38 |
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest |
39 |
index 8c34d62d55d..06548c5f961 100644 |
40 |
--- a/net-libs/webkit-gtk/Manifest |
41 |
+++ b/net-libs/webkit-gtk/Manifest |
42 |
@@ -1,2 +1 @@ |
43 |
DIST webkitgtk-2.18.6.tar.xz 14829316 BLAKE2B 4c0140c17d513f064efe09aaefff434e3cbf2a88691c7916ed393bf9bd25a3cb5a1d4ea8699eb7e0d678d807293b66c4629e46df9088df9b4d122c554b280ead SHA512 375907d4c84e27aaa4b5df9a71424488c1b2ba0cf1d63e107d678c0f55f677996a80e9d9a9d4a412b40d1d0dde77b88464c54246cbafe70751042ec8a7bbe029 |
44 |
-DIST webkitgtk-2.4.11.tar.xz 9869100 BLAKE2B 9b1351976dc753025e6aba86a40f97fdf58821a6a7af109140a18adc7a0e1d8c140711b48bceeb3c4c189e7d52f258520623c7d971c46b6f2572c0e1de0d0100 SHA512 2e2cf01a52b8593765a0a3c2d7f0ad306121660019eb402226bd2826c7d4666dab4e91ca6ccbd29abe0ad3993549f256ed1ab88de22e9c8516d5f40a4edd6bfb |
45 |
|
46 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.11.90-gtk-docize-fix.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.11.90-gtk-docize-fix.patch |
47 |
deleted file mode 100644 |
48 |
index c94f545356e..00000000000 |
49 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-1.11.90-gtk-docize-fix.patch |
50 |
+++ /dev/null |
51 |
@@ -1,10 +0,0 @@ |
52 |
---- a/configure.ac.old 2013-03-02 09:22:53.791750644 +0200 |
53 |
-+++ b/configure.ac 2013-03-02 09:24:56.725213764 +0200 |
54 |
-@@ -24,6 +24,7 @@ |
55 |
- m4_include([Source/autotools/SetupLibtool.m4]) |
56 |
- m4_include([Source/autotools/ReadCommandLineArguments.m4]) |
57 |
- m4_include([Source/autotools/FindDependencies.m4]) |
58 |
-+GTK_DOC_CHECK([1.10]) |
59 |
- m4_include([Source/autotools/SetupCompilerFlags.m4]) |
60 |
- m4_include([Source/autotools/SetupAutoconfHeader.m4]) |
61 |
- |
62 |
|
63 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.6.1-darwin-quartz.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.6.1-darwin-quartz.patch |
64 |
deleted file mode 100644 |
65 |
index 5ad357e9eee..00000000000 |
66 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-1.6.1-darwin-quartz.patch |
67 |
+++ /dev/null |
68 |
@@ -1,67 +0,0 @@ |
69 |
-Original from: |
70 |
-http://trac.macports.org/browser/trunk/dports/www/webkit-gtk/files/patch-quartz-WebCore-plugins-gtk-gtkxtbin.c.diff?format=txt |
71 |
-http://trac.macports.org/browser/trunk/dports/www/webkit-gtk/files/patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff?format=txt |
72 |
- |
73 |
-Adapted for 1.6.1 |
74 |
- |
75 |
---- Source/WebCore/plugins/gtk/PluginViewGtk.cpp |
76 |
-+++ Source/WebCore/plugins/gtk/PluginViewGtk.cpp |
77 |
-@@ -70,6 +70,8 @@ |
78 |
- #endif |
79 |
- #include <gtk/gtk.h> |
80 |
- |
81 |
-+#undef XP_UNIX |
82 |
-+ |
83 |
- #if defined(XP_UNIX) |
84 |
- #include "RefPtrCairo.h" |
85 |
- #include "gtk2xtbin.h" |
86 |
-@@ -439,9 +441,9 @@ |
87 |
- event->setDefaultHandled(); |
88 |
- } |
89 |
- |
90 |
--#if defined(XP_UNIX) |
91 |
- void PluginView::handleFocusInEvent() |
92 |
- { |
93 |
-+#if defined(XP_UNIX) |
94 |
- if (!m_isStarted || m_status != PluginStatusLoadedSuccessfully) |
95 |
- return; |
96 |
- |
97 |
-@@ -454,10 +456,12 @@ |
98 |
- event.detail = NotifyDetailNone; |
99 |
- |
100 |
- dispatchNPEvent(npEvent); |
101 |
-+#endif |
102 |
- } |
103 |
- |
104 |
- void PluginView::handleFocusOutEvent() |
105 |
- { |
106 |
-+#if defined(XP_UNIX) |
107 |
- if (!m_isStarted || m_status != PluginStatusLoadedSuccessfully) |
108 |
- return; |
109 |
- |
110 |
-@@ -470,8 +474,8 @@ |
111 |
- event.detail = NotifyDetailNone; |
112 |
- |
113 |
- dispatchNPEvent(npEvent); |
114 |
--} |
115 |
- #endif |
116 |
-+} |
117 |
- |
118 |
- void PluginView::setParent(ScrollView* parent) |
119 |
- { |
120 |
---- Source/WebCore/plugins/gtk/gtk2xtbin.c |
121 |
-+++ Source/WebCore/plugins/gtk/gtk2xtbin.c |
122 |
-@@ -41,7 +41,7 @@ |
123 |
- * The GtkXtBin widget allows for Xt toolkit code to be used |
124 |
- * inside a GTK application. |
125 |
- */ |
126 |
-- |
127 |
-+#if 0 |
128 |
- #include "GtkVersioning.h" |
129 |
- #include "xembed.h" |
130 |
- #include "gtk2xtbin.h" |
131 |
-@@ -966,3 +966,4 @@ |
132 |
- |
133 |
- return; |
134 |
- } |
135 |
-+#endif |
136 |
|
137 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-hppa-platform.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-hppa-platform.patch |
138 |
deleted file mode 100644 |
139 |
index 8aee778c1bb..00000000000 |
140 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-hppa-platform.patch |
141 |
+++ /dev/null |
142 |
@@ -1,20 +0,0 @@ |
143 |
-Index: webkitgtk/Source/WTF/wtf/Platform.h |
144 |
-=================================================================== |
145 |
---- webkitgtk.orig/Source/WTF/wtf/Platform.h |
146 |
-+++ webkitgtk/Source/WTF/wtf/Platform.h |
147 |
-@@ -72,6 +72,15 @@ |
148 |
- #define WTF_CPU_BIG_ENDIAN 1 |
149 |
- #endif |
150 |
- |
151 |
-+/* CPU(HPPA) - HP PARISC */ |
152 |
-+#if defined(__hppa__) |
153 |
-+#define WTF_CPU_HPPA 1 |
154 |
-+#define WTF_CPU_BIG_ENDIAN 1 |
155 |
-+#define ENABLE_JIT 0 |
156 |
-+#define ENABLE_YARR_JIT 0 |
157 |
-+#define ENABLE_ASSEMBLER 0 |
158 |
-+#endif |
159 |
-+ |
160 |
- /* CPU(IA64) - Itanium / IA-64 */ |
161 |
- #if defined(__ia64__) |
162 |
- #define WTF_CPU_IA64 1 |
163 |
|
164 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-ia64-platform.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-ia64-platform.patch |
165 |
deleted file mode 100644 |
166 |
index a63e9e82e31..00000000000 |
167 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.2.5-ia64-platform.patch |
168 |
+++ /dev/null |
169 |
@@ -1,12 +0,0 @@ |
170 |
---- a/Source/WTF/wtf/Platform.h 2014-02-25 00:33:16.561606810 +0100 |
171 |
-+++ b/Source/WTF/wtf/Platform.h 2014-02-25 00:49:52.895512955 +0100 |
172 |
-@@ -79,6 +79,9 @@ |
173 |
- #if !defined(__LP64__) |
174 |
- #define WTF_CPU_IA64_32 1 |
175 |
- #endif |
176 |
-+#define ENABLE_JIT 0 |
177 |
-+#define ENABLE_YARR_JIT 0 |
178 |
-+#define ENABLE_ASSEMBLER 0 |
179 |
- #endif |
180 |
- |
181 |
- /* CPU(MIPS) - MIPS 32-bit */ |
182 |
|
183 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.1-ia64-malloc.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.1-ia64-malloc.patch |
184 |
deleted file mode 100644 |
185 |
index 8c387ffecb6..00000000000 |
186 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.4.1-ia64-malloc.patch |
187 |
+++ /dev/null |
188 |
@@ -1,20 +0,0 @@ |
189 |
-Description: Fix wide pointer issues on ia64 (closes: #642750). |
190 |
-Author: Stephan Schreiber <info@×××××××××.org> |
191 |
-Index: webkitgtk/Source/WTF/wtf/Platform.h |
192 |
-=================================================================== |
193 |
---- webkitgtk.orig/Source/WTF/wtf/Platform.h |
194 |
-+++ webkitgtk/Source/WTF/wtf/Platform.h |
195 |
-@@ -705,6 +705,13 @@ |
196 |
- #define ENABLE_JIT 1 |
197 |
- #endif |
198 |
- |
199 |
-+/* FIXME: The fast malloc implementation is broken on Itanium / IA64 because |
200 |
-+ some memory barriers are missing in the thread-unsafe code around the |
201 |
-+ pagemap_cache_ object. */ |
202 |
-+#if CPU(IA64) || CPU(IA64_32) |
203 |
-+#define USE_SYSTEM_MALLOC 1 |
204 |
-+#endif |
205 |
-+ |
206 |
- /* The JIT is enabled by default on all x86, x86-64, ARM & MIPS platforms except Win64. */ |
207 |
- #if !defined(ENABLE_JIT) \ |
208 |
- && (CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(MIPS)) \ |
209 |
|
210 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.11-video-web-audio.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.11-video-web-audio.patch |
211 |
deleted file mode 100644 |
212 |
index ead696c7856..00000000000 |
213 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.4.11-video-web-audio.patch |
214 |
+++ /dev/null |
215 |
@@ -1,11 +0,0 @@ |
216 |
-diff -purN a/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp b/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp |
217 |
---- a/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp 2016-03-14 08:09:01.000000000 +0100 |
218 |
-+++ b/Source/WebCore/platform/gtk/RenderThemeGtk2.cpp 2016-04-10 19:43:00.215345381 +0200 |
219 |
-@@ -40,6 +40,7 @@ |
220 |
- #include "PaintInfo.h" |
221 |
- #include "PlatformContextCairo.h" |
222 |
- #include "RenderElement.h" |
223 |
-+#include "RenderBox.h" |
224 |
- #include "TextDirection.h" |
225 |
- #include "UserAgentStyleSheets.h" |
226 |
- #include "WidgetRenderingContext.h" |
227 |
|
228 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-atomic-ppc.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-atomic-ppc.patch |
229 |
deleted file mode 100644 |
230 |
index c160376fc60..00000000000 |
231 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-atomic-ppc.patch |
232 |
+++ /dev/null |
233 |
@@ -1,32 +0,0 @@ |
234 |
-$OpenBSD: patch-Source_WebKit2_Platform_IPC_Connection_h,v 1.2 2014/07/14 21:13:31 ajacoutot Exp $ |
235 |
-https://bugs.webkit.org/show_bug.cgi?id=130837 |
236 |
---- a/Source/WebKit2/Platform/IPC/Connection.h.orig Fri Jul 4 11:06:55 2014 |
237 |
-+++ b/Source/WebKit2/Platform/IPC/Connection.h Mon Jul 14 19:31:35 2014 |
238 |
-@@ -216,7 +216,11 @@ class Connection : public ThreadSafeRefCounted<Connect |
239 |
- |
240 |
- Client* m_client; |
241 |
- bool m_isServer; |
242 |
-+#if CPU(PPC) |
243 |
-+ uint64_t m_syncRequestID; |
244 |
-+#else |
245 |
- std::atomic<uint64_t> m_syncRequestID; |
246 |
-+#endif |
247 |
- |
248 |
- bool m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage; |
249 |
- bool m_shouldExitOnSyncMessageSendFailure; |
250 |
-$OpenBSD: patch-Source_WebKit2_UIProcess_StatisticsRequest_cpp,v 1.3 2014/03/27 22:03:48 landry Exp $ |
251 |
-https://bugs.webkit.org/show_bug.cgi?id=130837 |
252 |
---- a/Source/WebKit2/UIProcess/StatisticsRequest.cpp.orig Thu Mar 27 21:13:49 2014 |
253 |
-+++ b/Source/WebKit2/UIProcess/StatisticsRequest.cpp Thu Mar 27 21:14:23 2014 |
254 |
-@@ -44,7 +44,11 @@ StatisticsRequest::~StatisticsRequest() |
255 |
- |
256 |
- uint64_t StatisticsRequest::addOutstandingRequest() |
257 |
- { |
258 |
-+#if CPU(PPC) |
259 |
-+ static int64_t uniqueRequestID; |
260 |
-+#else |
261 |
- static std::atomic<int64_t> uniqueRequestID; |
262 |
-+#endif |
263 |
- |
264 |
- uint64_t requestID = ++uniqueRequestID; |
265 |
- m_outstandingRequests.add(requestID); |
266 |
|
267 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-jpeg-9a.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-jpeg-9a.patch |
268 |
deleted file mode 100644 |
269 |
index cded605f54f..00000000000 |
270 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.4.4-jpeg-9a.patch |
271 |
+++ /dev/null |
272 |
@@ -1,30 +0,0 @@ |
273 |
-http://bugs.gentoo.org/481688 |
274 |
-http://trac.webkit.org/changeset/166490/trunk/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp |
275 |
- |
276 |
---- a/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp |
277 |
-+++ b/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp |
278 |
-@@ -334,5 +334,5 @@ |
279 |
- case JPEG_HEADER: |
280 |
- // Read file parameters with jpeg_read_header(). |
281 |
-- if (jpeg_read_header(&m_info, true) == JPEG_SUSPENDED) |
282 |
-+ if (jpeg_read_header(&m_info, TRUE) == JPEG_SUSPENDED) |
283 |
- return false; // I/O suspension. |
284 |
- |
285 |
-@@ -420,7 +420,7 @@ |
286 |
- m_info.dct_method = dctMethod(); |
287 |
- m_info.dither_mode = ditherMode(); |
288 |
-- m_info.do_fancy_upsampling = doFancyUpsampling(); |
289 |
-- m_info.enable_2pass_quant = false; |
290 |
-- m_info.do_block_smoothing = true; |
291 |
-+ m_info.do_fancy_upsampling = doFancyUpsampling() ? TRUE : FALSE; |
292 |
-+ m_info.enable_2pass_quant = FALSE; |
293 |
-+ m_info.do_block_smoothing = TRUE; |
294 |
- |
295 |
- // Start decompressor. |
296 |
-@@ -573,5 +573,5 @@ |
297 |
- // called, then we have hit the end of the buffer. A return value of false |
298 |
- // indicates that we have no data to supply yet. |
299 |
-- return false; |
300 |
-+ return FALSE; |
301 |
- } |
302 |
- |
303 |
|
304 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.7-disable-webgl.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.7-disable-webgl.patch |
305 |
deleted file mode 100644 |
306 |
index 67760e2878b..00000000000 |
307 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.4.7-disable-webgl.patch |
308 |
+++ /dev/null |
309 |
@@ -1,11 +0,0 @@ |
310 |
---- webkitgtk-2.4.6.orig/Source/WebCore/platform/graphics/OpenGLShims.cpp 2014-09-26 11:40:44.000000000 +0400 |
311 |
-+++ webkitgtk-2.4.6.orig/Source/WebCore/platform/graphics/OpenGLShims.cpp 2014-10-13 15:38:38.496444600 +0400 |
312 |
-@@ -17,7 +17,7 @@ |
313 |
- */ |
314 |
- |
315 |
- #include "config.h" |
316 |
--#if USE(3D_GRAPHICS) || defined(QT_OPENGL_SHIMS) |
317 |
-+#if USE(3D_GRAPHICS) || defined(QT_OPENGL_SHIMS) || USE(EGL) || USE(GLX) |
318 |
- |
319 |
- #define DISABLE_SHIMS |
320 |
- #include "OpenGLShims.h" |
321 |
|
322 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch |
323 |
deleted file mode 100644 |
324 |
index bd8507cdb01..00000000000 |
325 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch |
326 |
+++ /dev/null |
327 |
@@ -1,29 +0,0 @@ |
328 |
-Fedora patch fixes build failure for gcc-6 (abs/fabs ambifuity) |
329 |
-https://bugs.webkit.org/show_bug.cgi?id=159124#c1 |
330 |
-https://bugs.gentoo.org/show_bug.cgi?id=592048 |
331 |
-diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp |
332 |
---- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600 |
333 |
-+++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700 |
334 |
-@@ -85,8 +85,8 @@ |
335 |
- guint32 eventTime = getEventTime(event); |
336 |
- |
337 |
- if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) |
338 |
-- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) |
339 |
-- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) |
340 |
-+ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) |
341 |
-+ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) |
342 |
- && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime)) |
343 |
- && (buttonEvent->button == m_previousClickButton))) |
344 |
- m_currentClickCount++; |
345 |
-diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp |
346 |
---- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600 |
347 |
-+++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700 |
348 |
-@@ -659,7 +659,7 @@ |
349 |
- if (!std::isfinite(time)) |
350 |
- return String::fromUTF8(_("indefinite time")); |
351 |
- |
352 |
-- int seconds = static_cast<int>(abs(time)); |
353 |
-+ int seconds = static_cast<int>(fabs(time)); |
354 |
- int days = seconds / (60 * 60 * 24); |
355 |
- int hours = seconds / (60 * 60); |
356 |
- int minutes = (seconds / 60) % 60; |
357 |
|
358 |
diff --git a/net-libs/webkit-gtk/metadata.xml b/net-libs/webkit-gtk/metadata.xml |
359 |
index 9a96619fdf3..0d69dc72c24 100644 |
360 |
--- a/net-libs/webkit-gtk/metadata.xml |
361 |
+++ b/net-libs/webkit-gtk/metadata.xml |
362 |
@@ -8,7 +8,6 @@ |
363 |
<use> |
364 |
<flag name="coverage">Enable code coverage support</flag> |
365 |
<flag name="egl">Enable EGL support</flag> |
366 |
- <flag name="geoloc">Enable geolocation support through <pkg>app-misc/geoclue</pkg></flag> |
367 |
<flag name="geolocation">Enable geolocation support through <pkg>app-misc/geoclue</pkg></flag> |
368 |
<flag name="gles2">Enable GLESv2 support</flag> |
369 |
<flag name="nsplugin">Enable full nsplugin support (GTK2 plugins)</flag> |
370 |
|
371 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild |
372 |
deleted file mode 100644 |
373 |
index 7e418d82454..00000000000 |
374 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild |
375 |
+++ /dev/null |
376 |
@@ -1,275 +0,0 @@ |
377 |
-# Copyright 1999-2017 Gentoo Foundation |
378 |
-# Distributed under the terms of the GNU General Public License v2 |
379 |
- |
380 |
-EAPI="6" |
381 |
-PYTHON_COMPAT=( python2_7 ) |
382 |
-USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
383 |
- |
384 |
-inherit autotools check-reqs flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx |
385 |
- |
386 |
-MY_P="webkitgtk-${PV}" |
387 |
-DESCRIPTION="Open source web browser engine" |
388 |
-HOMEPAGE="http://www.webkitgtk.org/" |
389 |
-SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
390 |
- |
391 |
-LICENSE="LGPL-2+ BSD" |
392 |
-SLOT="3/25" # soname version of libwebkit2gtk-3.0 |
393 |
-KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
394 |
- |
395 |
-IUSE="aqua coverage debug +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jit +opengl spell wayland +webgl +X" |
396 |
-# bugs 372493, 416331 |
397 |
-REQUIRED_USE=" |
398 |
- geolocation? ( introspection ) |
399 |
- gles2? ( egl ) |
400 |
- introspection? ( gstreamer ) |
401 |
- webgl? ( ^^ ( gles2 opengl ) ) |
402 |
- !webgl? ( ?? ( gles2 opengl ) ) |
403 |
- || ( aqua wayland X ) |
404 |
-" |
405 |
- |
406 |
-# use sqlite, svg by default |
407 |
-# Aqua support in gtk3 is untested |
408 |
-# gtk2 is needed for plugin process support |
409 |
-# gtk3-3.10 required for wayland |
410 |
-# gtk3-3.20 is needed to ensure we get fixed theming: |
411 |
-# https://bugzilla.gnome.org/show_bug.cgi?id=757503 |
412 |
-RDEPEND=" |
413 |
- dev-db/sqlite:3= |
414 |
- >=dev-libs/glib-2.36:2 |
415 |
- >=dev-libs/icu-3.8.1-r1:= |
416 |
- >=dev-libs/libxml2-2.6:2 |
417 |
- >=dev-libs/libxslt-1.1.7 |
418 |
- >=media-libs/fontconfig-2.5:1.0 |
419 |
- >=media-libs/freetype-2.4.2:2 |
420 |
- >=media-libs/harfbuzz-0.9.7:=[icu(+)] |
421 |
- >=media-libs/libpng-1.4:0= |
422 |
- media-libs/libwebp:= |
423 |
- >=net-libs/libsoup-2.42:2.4[introspection?] |
424 |
- virtual/jpeg:0= |
425 |
- >=x11-libs/cairo-1.10:=[X?] |
426 |
- >=x11-libs/gtk+-3.20.0:3[X?,aqua?,introspection?] |
427 |
- >=x11-libs/pango-1.30.0 |
428 |
- |
429 |
- >=x11-libs/gtk+-2.24.10:2 |
430 |
- |
431 |
- egl? ( media-libs/mesa[egl] ) |
432 |
- geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
433 |
- gles2? ( media-libs/mesa[gles2] ) |
434 |
- gnome-keyring? ( app-crypt/libsecret ) |
435 |
- gstreamer? ( |
436 |
- >=media-libs/gstreamer-1.2:1.0 |
437 |
- >=media-libs/gst-plugins-base-1.2:1.0 ) |
438 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
439 |
- opengl? ( virtual/opengl ) |
440 |
- spell? ( >=app-text/enchant-0.22:= ) |
441 |
- wayland? ( >=x11-libs/gtk+-3.10:3[wayland] ) |
442 |
- webgl? ( |
443 |
- x11-libs/cairo[opengl] |
444 |
- x11-libs/libXcomposite |
445 |
- x11-libs/libXdamage ) |
446 |
- X? ( |
447 |
- x11-libs/libX11 |
448 |
- x11-libs/libXrender |
449 |
- x11-libs/libXt ) |
450 |
-" |
451 |
- |
452 |
-# paxctl needed for bug #407085 |
453 |
-# Need real bison, not yacc |
454 |
-DEPEND="${RDEPEND} |
455 |
- ${PYTHON_DEPS} |
456 |
- ${RUBY_DEPS} |
457 |
- >=dev-lang/perl-5.10 |
458 |
- >=app-accessibility/at-spi2-core-2.5.3 |
459 |
- >=dev-libs/atk-2.8.0 |
460 |
- >=dev-util/gtk-doc-am-1.10 |
461 |
- >=dev-util/gperf-3.0.1 |
462 |
- >=sys-devel/bison-2.4.3 |
463 |
- >=sys-devel/flex-2.5.34 |
464 |
- || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 ) |
465 |
- sys-devel/gettext |
466 |
- >=sys-devel/make-3.82-r4 |
467 |
- virtual/pkgconfig |
468 |
- |
469 |
- geolocation? ( dev-util/gdbus-codegen ) |
470 |
- introspection? ( jit? ( sys-apps/paxctl ) ) |
471 |
- test? ( |
472 |
- dev-lang/python:2.7 |
473 |
- dev-python/pygobject:3[python_targets_python2_7] |
474 |
- x11-themes/hicolor-icon-theme |
475 |
- jit? ( sys-apps/paxctl ) ) |
476 |
-" |
477 |
- |
478 |
-S="${WORKDIR}/${MY_P}" |
479 |
- |
480 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
481 |
- |
482 |
-pkg_pretend() { |
483 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
484 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
485 |
- check-reqs_pkg_pretend |
486 |
- fi |
487 |
- |
488 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then |
489 |
- die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags" |
490 |
- fi |
491 |
-} |
492 |
- |
493 |
-pkg_setup() { |
494 |
- # Check whether any of the debugging flags is enabled |
495 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
496 |
- if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then |
497 |
- replace-flags -ggdb -g |
498 |
- ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS." |
499 |
- ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too" |
500 |
- ewarn "large for current binutils releases (bug #432784) and has very" |
501 |
- ewarn "high temporary build space and memory requirements." |
502 |
- ewarn "If you really want to build ${PN} with \"-ggdb\", add" |
503 |
- ewarn "WEBKIT_GTK_GGDB=yes" |
504 |
- ewarn "to your make.conf file." |
505 |
- fi |
506 |
- einfo "You need to have at least 18GB of temporary build space available" |
507 |
- einfo "to build ${PN} with debugging CFLAGS. Note that it might still" |
508 |
- einfo "not be enough, as the total space requirements depend on the flags" |
509 |
- einfo "(-ggdb vs -g1) and enabled features." |
510 |
- check-reqs_pkg_setup |
511 |
- fi |
512 |
- |
513 |
- [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup |
514 |
-} |
515 |
- |
516 |
-src_prepare() { |
517 |
- # intermediate MacPorts hack while upstream bug is not fixed properly |
518 |
- # https://bugs.webkit.org/show_bug.cgi?id=28727 |
519 |
- use aqua && eapply "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch |
520 |
- |
521 |
- # Leave optimization level to user CFLAGS |
522 |
- # FORTIFY_SOURCE is enabled by default in Gentoo |
523 |
- sed -e 's/-O[012]//g' \ |
524 |
- -e 's/-D_FORTIFY_SOURCE=2//g' \ |
525 |
- -i Source/autotools/SetupCompilerFlags.m4 || die |
526 |
- |
527 |
- # bug #459978, upstream bug #113397 |
528 |
- eapply "${FILESDIR}"/${PN}-1.11.90-gtk-docize-fix.patch |
529 |
- |
530 |
- # Debian patches to fix support for some arches |
531 |
- # https://bugs.webkit.org/show_bug.cgi?id=129540 |
532 |
- eapply "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch |
533 |
- # https://bugs.webkit.org/show_bug.cgi?id=129542 |
534 |
- eapply "${FILESDIR}"/${PN}-2.4.1-ia64-malloc.patch |
535 |
- |
536 |
- # Fix building on ppc (from OpenBSD, only needed on slot 3) |
537 |
- # https://bugs.webkit.org/show_bug.cgi?id=130837 |
538 |
- eapply "${FILESDIR}"/${PN}-2.4.4-atomic-ppc.patch |
539 |
- |
540 |
- # Fix build with recent libjpeg, bug #481688 |
541 |
- # https://bugs.webkit.org/show_bug.cgi?id=122412 |
542 |
- eapply "${FILESDIR}"/${PN}-2.4.4-jpeg-9a.patch |
543 |
- |
544 |
- # Fix building with --disable-webgl, bug #500966 |
545 |
- # https://bugs.webkit.org/show_bug.cgi?id=131267 |
546 |
- eapply "${FILESDIR}"/${PN}-2.4.7-disable-webgl.patch |
547 |
- |
548 |
- # https://bugs.webkit.org/show_bug.cgi?id=156510 |
549 |
- eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch |
550 |
- |
551 |
- # https://bugs.webkit.org/show_bug.cgi?id=159124#c1 |
552 |
- eapply "${FILESDIR}"/${PN}-2.4.9-gcc-6.patch |
553 |
- |
554 |
- AT_M4DIR=Source/autotools eautoreconf |
555 |
- |
556 |
- gnome2_src_prepare |
557 |
-} |
558 |
- |
559 |
-src_configure() { |
560 |
- # Respect CC, otherwise fails on prefix #395875 |
561 |
- tc-export CC |
562 |
- |
563 |
- # Arches without JIT support also need this to really disable it in all places |
564 |
- use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 |
565 |
- |
566 |
- # It does not compile on alpha without this in LDFLAGS |
567 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
568 |
- use alpha && append-ldflags "-Wl,--no-relax" |
569 |
- |
570 |
- # Sigbuses on SPARC with mcpu and co., bug #??? |
571 |
- use sparc && filter-flags "-mvis" |
572 |
- |
573 |
- # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
574 |
- use ppc64 && append-flags "-mminimal-toc" |
575 |
- |
576 |
- # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
577 |
- # --no-keep-memory doesn't work on ia64, bug #502492 |
578 |
- if ! use ia64; then |
579 |
- append-ldflags "-Wl,--no-keep-memory" |
580 |
- fi |
581 |
- if ! $(tc-getLD) --version | grep -q "GNU gold"; then |
582 |
- append-ldflags "-Wl,--reduce-memory-overheads" |
583 |
- fi |
584 |
- |
585 |
- local ruby_interpreter="" |
586 |
- |
587 |
- if has_version "virtual/rubygems[ruby_targets_ruby23]"; then |
588 |
- ruby_interpreter="RUBY=$(type -P ruby23)" |
589 |
- elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then |
590 |
- ruby_interpreter="RUBY=$(type -P ruby22)" |
591 |
- elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then |
592 |
- ruby_interpreter="RUBY=$(type -P ruby21)" |
593 |
- else |
594 |
- ruby_interpreter="RUBY=$(type -P ruby20)" |
595 |
- fi |
596 |
- |
597 |
- # TODO: Check Web Audio support |
598 |
- # should somehow let user select between them? |
599 |
- # |
600 |
- # * Aqua support in gtk3 is untested |
601 |
- # * dependency-tracking is required so parallel builds won't fail |
602 |
- gnome2_src_configure \ |
603 |
- $(use_enable aqua quartz-target) \ |
604 |
- $(use_enable coverage) \ |
605 |
- $(use_enable debug) \ |
606 |
- $(use_enable egl) \ |
607 |
- $(use_enable geolocation) \ |
608 |
- $(use_enable gles2) \ |
609 |
- $(use_enable gnome-keyring credential_storage) \ |
610 |
- $(use_enable gstreamer video) \ |
611 |
- $(use_enable gstreamer web-audio) \ |
612 |
- $(use_enable introspection) \ |
613 |
- $(use_enable jit) \ |
614 |
- $(use_enable opengl glx) \ |
615 |
- $(use_enable spell spellcheck) \ |
616 |
- $(use_enable webgl) \ |
617 |
- $(use_enable webgl accelerated-compositing) \ |
618 |
- $(use_enable wayland wayland-target) \ |
619 |
- $(use_enable X x11-target) \ |
620 |
- --with-gtk=3.0 \ |
621 |
- --enable-dependency-tracking \ |
622 |
- --disable-gtk-doc \ |
623 |
- ${ruby_interpreter} |
624 |
-} |
625 |
- |
626 |
-src_test() { |
627 |
- # Tests expect an out-of-source build in WebKitBuild |
628 |
- ln -s . WebKitBuild || die "ln failed" |
629 |
- |
630 |
- # Prevents test failures on PaX systems |
631 |
- use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
632 |
- |
633 |
- # Tests need virtualx, bug #294691, bug #310695 |
634 |
- # Parallel tests sometimes fail |
635 |
- virtx emake -j1 check |
636 |
-} |
637 |
- |
638 |
-src_install() { |
639 |
- DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install |
640 |
- |
641 |
- # https://bugs.webkit.org/show_bug.cgi?id=129242 |
642 |
- MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install |
643 |
- |
644 |
- newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
645 |
- newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |
646 |
- newdoc Source/WebCore/ChangeLog ChangeLog.WebCore |
647 |
- |
648 |
- # Prevents crashes on PaX systems, bug #522808 |
649 |
- use jit && pax-mark m "${ED}usr/bin/jsc-3" "${ED}usr/libexec/WebKitWebProcess" |
650 |
- pax-mark m "${ED}usr/libexec/WebKitPluginProcess" |
651 |
-} |
652 |
|
653 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild |
654 |
deleted file mode 100644 |
655 |
index 1c3cf3c05cf..00000000000 |
656 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild |
657 |
+++ /dev/null |
658 |
@@ -1,262 +0,0 @@ |
659 |
-# Copyright 1999-2017 Gentoo Foundation |
660 |
-# Distributed under the terms of the GNU General Public License v2 |
661 |
- |
662 |
-EAPI="6" |
663 |
-PYTHON_COMPAT=( python2_7 ) |
664 |
-USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
665 |
- |
666 |
-inherit autotools check-reqs flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx |
667 |
- |
668 |
-MY_P="webkitgtk-${PV}" |
669 |
-DESCRIPTION="Open source web browser engine" |
670 |
-HOMEPAGE="http://www.webkitgtk.org/" |
671 |
-SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
672 |
- |
673 |
-LICENSE="LGPL-2+ BSD" |
674 |
-SLOT="2" # no usable subslot |
675 |
-KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
676 |
- |
677 |
-IUSE="aqua coverage debug +egl +geoloc gles2 gnome-keyring +gstreamer +introspection +jit +opengl spell +webgl +X" |
678 |
-# bugs 372493, 416331 |
679 |
-REQUIRED_USE=" |
680 |
- geoloc? ( introspection ) |
681 |
- gles2? ( egl ) |
682 |
- introspection? ( gstreamer ) |
683 |
- webgl? ( ^^ ( gles2 opengl ) ) |
684 |
- !webgl? ( ?? ( gles2 opengl ) ) |
685 |
- || ( aqua X ) |
686 |
-" |
687 |
- |
688 |
-# use sqlite, svg by default |
689 |
-RDEPEND=" |
690 |
- dev-db/sqlite:3= |
691 |
- >=dev-libs/glib-2.36:2 |
692 |
- >=dev-libs/icu-3.8.1-r1:= |
693 |
- >=dev-libs/libxml2-2.6:2 |
694 |
- >=dev-libs/libxslt-1.1.7 |
695 |
- >=media-libs/fontconfig-2.5:1.0 |
696 |
- >=media-libs/freetype-2.4.2:2 |
697 |
- >=media-libs/harfbuzz-0.9.7:=[icu(+)] |
698 |
- >=media-libs/libpng-1.4:0= |
699 |
- media-libs/libwebp:= |
700 |
- >=net-libs/libsoup-2.42:2.4[introspection?] |
701 |
- virtual/jpeg:0= |
702 |
- >=x11-libs/cairo-1.10:=[X] |
703 |
- >=x11-libs/gtk+-2.24.10:2[aqua?,introspection?] |
704 |
- x11-libs/libXrender |
705 |
- x11-libs/libXt |
706 |
- >=x11-libs/pango-1.30.0 |
707 |
- |
708 |
- egl? ( media-libs/mesa[egl] ) |
709 |
- geoloc? ( >=app-misc/geoclue-2.1.5:2.0 ) |
710 |
- gles2? ( media-libs/mesa[gles2] ) |
711 |
- gnome-keyring? ( app-crypt/libsecret ) |
712 |
- gstreamer? ( |
713 |
- >=media-libs/gstreamer-1.2:1.0 |
714 |
- >=media-libs/gst-plugins-base-1.2:1.0 ) |
715 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
716 |
- opengl? ( virtual/opengl ) |
717 |
- spell? ( >=app-text/enchant-0.22:= ) |
718 |
- webgl? ( |
719 |
- x11-libs/cairo[opengl] |
720 |
- x11-libs/libXcomposite |
721 |
- x11-libs/libXdamage ) |
722 |
-" |
723 |
- |
724 |
-# paxctl needed for bug #407085 |
725 |
-# Need real bison, not yacc |
726 |
-DEPEND="${RDEPEND} |
727 |
- ${PYTHON_DEPS} |
728 |
- ${RUBY_DEPS} |
729 |
- >=dev-lang/perl-5.10 |
730 |
- >=dev-libs/atk-2.8.0 |
731 |
- >=dev-util/gtk-doc-am-1.10 |
732 |
- >=dev-util/gperf-3.0.1 |
733 |
- >=sys-devel/bison-2.4.3 |
734 |
- >=sys-devel/flex-2.5.34 |
735 |
- || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 ) |
736 |
- sys-devel/gettext |
737 |
- >=sys-devel/make-3.82-r4 |
738 |
- virtual/pkgconfig |
739 |
- |
740 |
- geoloc? ( dev-util/gdbus-codegen ) |
741 |
- introspection? ( jit? ( sys-apps/paxctl ) ) |
742 |
- test? ( |
743 |
- dev-lang/python:2.7 |
744 |
- dev-python/pygobject:3[python_targets_python2_7] |
745 |
- x11-themes/hicolor-icon-theme |
746 |
- jit? ( sys-apps/paxctl ) ) |
747 |
-" |
748 |
- |
749 |
-S="${WORKDIR}/${MY_P}" |
750 |
- |
751 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
752 |
- |
753 |
-pkg_pretend() { |
754 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
755 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
756 |
- check-reqs_pkg_pretend |
757 |
- fi |
758 |
- |
759 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then |
760 |
- die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags" |
761 |
- fi |
762 |
-} |
763 |
- |
764 |
-pkg_setup() { |
765 |
- # Check whether any of the debugging flags is enabled |
766 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
767 |
- if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then |
768 |
- replace-flags -ggdb -g |
769 |
- ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS." |
770 |
- ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too" |
771 |
- ewarn "large for current binutils releases (bug #432784) and has very" |
772 |
- ewarn "high temporary build space and memory requirements." |
773 |
- ewarn "If you really want to build ${PN} with \"-ggdb\", add" |
774 |
- ewarn "WEBKIT_GTK_GGDB=yes" |
775 |
- ewarn "to your make.conf file." |
776 |
- fi |
777 |
- einfo "You need to have at least 18GB of temporary build space available" |
778 |
- einfo "to build ${PN} with debugging CFLAGS. Note that it might still" |
779 |
- einfo "not be enough, as the total space requirements depend on the flags" |
780 |
- einfo "(-ggdb vs -g1) and enabled features." |
781 |
- check-reqs_pkg_setup |
782 |
- fi |
783 |
- |
784 |
- [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup |
785 |
-} |
786 |
- |
787 |
-src_prepare() { |
788 |
- # intermediate MacPorts hack while upstream bug is not fixed properly |
789 |
- # https://bugs.webkit.org/show_bug.cgi?id=28727 |
790 |
- use aqua && eapply "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch |
791 |
- |
792 |
- # Leave optimization level to user CFLAGS |
793 |
- # FORTIFY_SOURCE is enabled by default in Gentoo |
794 |
- sed -e 's/-O[012]//g' \ |
795 |
- -e 's/-D_FORTIFY_SOURCE=2//g' \ |
796 |
- -i Source/autotools/SetupCompilerFlags.m4 || die |
797 |
- |
798 |
- # bug #459978, upstream bug #113397 |
799 |
- eapply "${FILESDIR}"/${PN}-1.11.90-gtk-docize-fix.patch |
800 |
- |
801 |
- # Debian patches to fix support for some arches |
802 |
- # https://bugs.webkit.org/show_bug.cgi?id=129540 |
803 |
- eapply "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch |
804 |
- # https://bugs.webkit.org/show_bug.cgi?id=129542 |
805 |
- eapply "${FILESDIR}"/${PN}-2.4.1-ia64-malloc.patch |
806 |
- |
807 |
- # Fix build with recent libjpeg, bug #481688 |
808 |
- # https://bugs.webkit.org/show_bug.cgi?id=122412 |
809 |
- eapply "${FILESDIR}"/${PN}-2.4.4-jpeg-9a.patch |
810 |
- |
811 |
- # Fix building with --disable-webgl, bug #500966 |
812 |
- # https://bugs.webkit.org/show_bug.cgi?id=131267 |
813 |
- eapply "${FILESDIR}"/${PN}-2.4.7-disable-webgl.patch |
814 |
- |
815 |
- # https://bugs.webkit.org/show_bug.cgi?id=156510 |
816 |
- eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch |
817 |
- |
818 |
- # https://bugs.webkit.org/show_bug.cgi?id=159124#c1 |
819 |
- eapply "${FILESDIR}"/${PN}-2.4.9-gcc-6.patch |
820 |
- |
821 |
- AT_M4DIR=Source/autotools eautoreconf |
822 |
- |
823 |
- gnome2_src_prepare |
824 |
-} |
825 |
- |
826 |
-src_configure() { |
827 |
- # Respect CC, otherwise fails on prefix #395875 |
828 |
- tc-export CC |
829 |
- |
830 |
- # Arches without JIT support also need this to really disable it in all places |
831 |
- use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 |
832 |
- |
833 |
- # It does not compile on alpha without this in LDFLAGS |
834 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
835 |
- use alpha && append-ldflags "-Wl,--no-relax" |
836 |
- |
837 |
- # Sigbuses on SPARC with mcpu and co., bug #??? |
838 |
- use sparc && filter-flags "-mvis" |
839 |
- |
840 |
- # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
841 |
- use ppc64 && append-flags "-mminimal-toc" |
842 |
- |
843 |
- # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
844 |
- # --no-keep-memory doesn't work on ia64, bug #502492 |
845 |
- if ! use ia64; then |
846 |
- append-ldflags "-Wl,--no-keep-memory" |
847 |
- fi |
848 |
- if ! $(tc-getLD) --version | grep -q "GNU gold"; then |
849 |
- append-ldflags "-Wl,--reduce-memory-overheads" |
850 |
- fi |
851 |
- |
852 |
- local ruby_interpreter="" |
853 |
- |
854 |
- if has_version "virtual/rubygems[ruby_targets_ruby23]"; then |
855 |
- ruby_interpreter="RUBY=$(type -P ruby23)" |
856 |
- elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then |
857 |
- ruby_interpreter="RUBY=$(type -P ruby22)" |
858 |
- elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then |
859 |
- ruby_interpreter="RUBY=$(type -P ruby21)" |
860 |
- else |
861 |
- ruby_interpreter="RUBY=$(type -P ruby20)" |
862 |
- fi |
863 |
- |
864 |
- # TODO: Check Web Audio support |
865 |
- # should somehow let user select between them? |
866 |
- # |
867 |
- # * dependency-tracking is required so parallel builds won't fail |
868 |
- gnome2_src_configure \ |
869 |
- $(use_enable aqua quartz-target) \ |
870 |
- $(use_enable coverage) \ |
871 |
- $(use_enable debug) \ |
872 |
- $(use_enable egl) \ |
873 |
- $(use_enable geoloc geolocation) \ |
874 |
- $(use_enable gles2) \ |
875 |
- $(use_enable gnome-keyring credential_storage) \ |
876 |
- $(use_enable gstreamer video) \ |
877 |
- $(use_enable gstreamer web-audio) \ |
878 |
- $(use_enable introspection) \ |
879 |
- $(use_enable jit) \ |
880 |
- $(use_enable opengl glx) \ |
881 |
- $(use_enable spell spellcheck) \ |
882 |
- $(use_enable webgl) \ |
883 |
- $(use_enable webgl accelerated-compositing) \ |
884 |
- $(use_enable X x11-target) \ |
885 |
- --with-gtk=2.0 \ |
886 |
- --disable-webkit2 \ |
887 |
- --enable-dependency-tracking \ |
888 |
- --disable-gtk-doc \ |
889 |
- ${ruby_interpreter} |
890 |
-} |
891 |
- |
892 |
-src_test() { |
893 |
- # Tests expect an out-of-source build in WebKitBuild |
894 |
- ln -s . WebKitBuild || die "ln failed" |
895 |
- |
896 |
- # Prevents test failures on PaX systems |
897 |
- use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
898 |
- |
899 |
- # Tests need virtualx, bug #294691, bug #310695 |
900 |
- # Parallel tests sometimes fail |
901 |
- virtx emake -j1 check |
902 |
-} |
903 |
- |
904 |
-src_install() { |
905 |
- DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install |
906 |
- |
907 |
- # https://bugs.webkit.org/show_bug.cgi?id=129242 |
908 |
- MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install |
909 |
- |
910 |
- newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
911 |
- newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |
912 |
- newdoc Source/WebCore/ChangeLog ChangeLog.WebCore |
913 |
- |
914 |
- # Prevents crashes on PaX systems |
915 |
- use jit && pax-mark m "${ED}usr/bin/jsc-1" |
916 |
- |
917 |
- # File collisions with slot 3 |
918 |
- # bug #402699, https://bugs.webkit.org/show_bug.cgi?id=78134 |
919 |
- rm -rf "${ED}usr/share/gtk-doc" || die |
920 |
-} |
921 |
|
922 |
diff --git a/profiles/package.mask b/profiles/package.mask |
923 |
index 10264418ebd..294e21c784c 100644 |
924 |
--- a/profiles/package.mask |
925 |
+++ b/profiles/package.mask |
926 |
@@ -643,9 +643,8 @@ sys-cluster/ganglia-web |
927 |
# Old net-libs/webkit-gtk SLOTs have hundreds of known security issues. |
928 |
# Use the security safe net-libs webkit-gtk SLOT=4 instead via |
929 |
# libraries and applications ported to gtk3 and webkit2gtk API. |
930 |
-# Masked for removal in 30 days. Bug #577068. |
931 |
# Please keep this package.mask entry until at least 25th May 2018 for |
932 |
-# extra notification of the security vulnerabilities. |
933 |
+# extra notification of the security vulnerabilities. Bug #577068. |
934 |
net-libs/webkit-gtk:2 |
935 |
net-libs/webkit-gtk:3 |