mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
webkitgtk24x: update to webkitgtk-2.4.9, fix build
This commit is contained in:
parent
7170d670ce
commit
4115f7794b
@ -9,7 +9,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "webkitgtk-${version}";
|
||||
version = "2.4.8";
|
||||
version = "2.4.9";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Web content rendering engine, GTK+ port";
|
||||
@ -21,11 +21,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://webkitgtk.org/releases/${name}.tar.xz";
|
||||
sha256 = "08xxqsxpa63nzgbsz63vrdxdxgpysyiy7jdcjb57k1hprdcibwb8";
|
||||
sha256 = "0r651ar3p0f8zwl7764kyimxk5hy88cwy116pv8cl5l8hbkjkpxg";
|
||||
};
|
||||
|
||||
patches = [ ./webkitgtk-2.4-gmutexlocker.patch ./bug140241.patch ];
|
||||
|
||||
CC = "cc";
|
||||
|
||||
prePatch = ''
|
||||
@ -46,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
dontAddDisableDepTrack = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook/*bug140241.patch*/ perl python ruby bison gperf flex
|
||||
autoreconfHook perl python ruby bison gperf flex
|
||||
pkgconfig which gettext gobjectIntrospection
|
||||
];
|
||||
|
||||
|
@ -1,59 +0,0 @@
|
||||
@@ -, +, @@
|
||||
REGRESSION(r177885): [GTK][WK1] Cannot compile 2.4.8 when WK2 is disabled
|
||||
https://bugs.webkit.org/show_bug.cgi?id=140241
|
||||
Reviewed by NOBODY (OOPS!).
|
||||
We have to compile the PluginPackageNone.cpp and PluginViewNone.cpp
|
||||
just when WebKit2 is enabled and we are not building for X11.
|
||||
* GNUmakefile.list.am:
|
||||
---
|
||||
Source/WebCore/ChangeLog | 12 ++++++++++++
|
||||
Source/WebCore/GNUmakefile.list.am | 8 ++++++++
|
||||
2 files changed, 20 insertions(+)
|
||||
--- a/Source/WebCore/ChangeLog
|
||||
+++ a/Source/WebCore/ChangeLog
|
||||
@@ -1,3 +1,15 @@
|
||||
+2015-01-16 Tomas Popela <tpopela@redhat.com>
|
||||
+
|
||||
+ REGRESSION(r177885): [GTK][WK1] Cannot compile 2.4.8 when WK2 is disabled
|
||||
+ https://bugs.webkit.org/show_bug.cgi?id=140241
|
||||
+
|
||||
+ Reviewed by NOBODY (OOPS!).
|
||||
+
|
||||
+ We have to compile the PluginPackageNone.cpp and PluginViewNone.cpp
|
||||
+ just when WebKit2 is enabled and we are not building for X11.
|
||||
+
|
||||
+ * GNUmakefile.list.am:
|
||||
+
|
||||
2014-11-10 Csaba Osztrogonác <ossy@webkit.org>
|
||||
|
||||
Crash in WebCore::Node::getFlag
|
||||
--- a/Source/WebCore/GNUmakefile.list.am
|
||||
+++ a/Source/WebCore/GNUmakefile.list.am
|
||||
@@ -6254,9 +6254,13 @@ endif # END USE_GLX
|
||||
endif # END TARGET_X11
|
||||
|
||||
if TARGET_WAYLAND
|
||||
+if !TARGET_X11
|
||||
+if ENABLE_WEBKIT2
|
||||
webcore_sources += \
|
||||
Source/WebCore/plugins/PluginPackageNone.cpp \
|
||||
Source/WebCore/plugins/PluginViewNone.cpp
|
||||
+endif # END ENABLE_WEBKIT2
|
||||
+endif # END !TARGET_X11
|
||||
endif # END TARGET_WAYLAND
|
||||
|
||||
if TARGET_X11_OR_WAYLAND
|
||||
@@ -6305,9 +6309,13 @@ webcoregtk_sources += \
|
||||
endif # END TARGET_WIN32
|
||||
|
||||
if TARGET_QUARTZ
|
||||
+if !TARGET_X11
|
||||
+if ENABLE_WEBKIT2
|
||||
webcore_sources += \
|
||||
Source/WebCore/plugins/PluginPackageNone.cpp \
|
||||
Source/WebCore/plugins/PluginViewNone.cpp
|
||||
+endif # END ENABLE_WEBKIT2
|
||||
+endif # END !TARGET_X11
|
||||
platformgtk_sources += \
|
||||
Source/WebCore/platform/cairo/WidgetBackingStoreCairo.h \
|
||||
Source/WebCore/platform/cairo/WidgetBackingStoreCairo.cpp
|
@ -1,276 +0,0 @@
|
||||
--- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp.orig 2015-04-13 18:39:20.763864030 +0200
|
||||
+++ webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp 2015-04-13 18:43:29.756164227 +0200
|
||||
@@ -118,7 +118,7 @@
|
||||
WebKitVideoSink* sink = reinterpret_cast<WebKitVideoSink*>(data);
|
||||
WebKitVideoSinkPrivate* priv = sink->priv;
|
||||
|
||||
- GMutexLocker lock(priv->bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(priv->bufferMutex);
|
||||
GstBuffer* buffer = priv->buffer;
|
||||
priv->buffer = 0;
|
||||
priv->timeoutId = 0;
|
||||
@@ -140,7 +140,7 @@
|
||||
WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(baseSink);
|
||||
WebKitVideoSinkPrivate* priv = sink->priv;
|
||||
|
||||
- GMutexLocker lock(priv->bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(priv->bufferMutex);
|
||||
|
||||
if (priv->unlocked)
|
||||
return GST_FLOW_OK;
|
||||
@@ -279,7 +279,7 @@
|
||||
|
||||
static void unlockBufferMutex(WebKitVideoSinkPrivate* priv)
|
||||
{
|
||||
- GMutexLocker lock(priv->bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(priv->bufferMutex);
|
||||
|
||||
if (priv->buffer) {
|
||||
gst_buffer_unref(priv->buffer);
|
||||
@@ -305,7 +305,7 @@
|
||||
WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv;
|
||||
|
||||
{
|
||||
- GMutexLocker lock(priv->bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(priv->bufferMutex);
|
||||
priv->unlocked = false;
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@
|
||||
{
|
||||
WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv;
|
||||
|
||||
- GMutexLocker lock(priv->bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(priv->bufferMutex);
|
||||
priv->unlocked = false;
|
||||
return TRUE;
|
||||
}
|
||||
--- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp.orig 2015-04-13 18:36:44.258046776 +0200
|
||||
+++ webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp 2015-04-13 18:44:10.004374397 +0200
|
||||
@@ -316,7 +316,7 @@
|
||||
#if USE(ACCELERATED_COMPOSITING) && USE(TEXTURE_MAPPER_GL) && !USE(COORDINATED_GRAPHICS)
|
||||
PassRefPtr<BitmapTexture> MediaPlayerPrivateGStreamerBase::updateTexture(TextureMapper* textureMapper)
|
||||
{
|
||||
- GMutexLocker lock(m_bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(m_bufferMutex);
|
||||
if (!m_buffer)
|
||||
return nullptr;
|
||||
|
||||
@@ -366,7 +366,7 @@
|
||||
g_return_if_fail(GST_IS_BUFFER(buffer));
|
||||
|
||||
{
|
||||
- GMutexLocker lock(m_bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(m_bufferMutex);
|
||||
gst_buffer_replace(&m_buffer, buffer);
|
||||
}
|
||||
|
||||
@@ -398,7 +398,7 @@
|
||||
if (!m_player->visible())
|
||||
return;
|
||||
|
||||
- GMutexLocker lock(m_bufferMutex);
|
||||
+ WebCore::GMutexLocker lock(m_bufferMutex);
|
||||
if (!m_buffer)
|
||||
return;
|
||||
|
||||
--- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp.orig 2015-04-13 18:37:20.083233858 +0200
|
||||
+++ webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp 2015-04-13 18:44:37.753519299 +0200
|
||||
@@ -346,7 +346,7 @@
|
||||
|
||||
switch (propID) {
|
||||
case PROP_IRADIO_MODE: {
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
priv->iradioMode = g_value_get_boolean(value);
|
||||
break;
|
||||
}
|
||||
@@ -364,7 +364,7 @@
|
||||
WebKitWebSrc* src = WEBKIT_WEB_SRC(object);
|
||||
WebKitWebSrcPrivate* priv = src->priv;
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
switch (propID) {
|
||||
case PROP_IRADIO_MODE:
|
||||
g_value_set_boolean(value, priv->iradioMode);
|
||||
@@ -417,7 +417,7 @@
|
||||
|
||||
ASSERT(isMainThread());
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
|
||||
bool seeking = priv->seekID;
|
||||
|
||||
@@ -476,7 +476,7 @@
|
||||
|
||||
ASSERT(isMainThread());
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
|
||||
priv->startID = 0;
|
||||
priv->corsAccessCheck = CORSNoCheck;
|
||||
@@ -573,7 +573,7 @@
|
||||
return ret;
|
||||
}
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
GST_DEBUG_OBJECT(src, "READY->PAUSED");
|
||||
@@ -604,7 +604,7 @@
|
||||
gst_query_parse_duration(query, &format, NULL);
|
||||
|
||||
GST_DEBUG_OBJECT(src, "duration query in format %s", gst_format_get_name(format));
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
if (format == GST_FORMAT_BYTES && src->priv->size > 0) {
|
||||
gst_query_set_duration(query, format, src->priv->size);
|
||||
result = TRUE;
|
||||
@@ -612,7 +612,7 @@
|
||||
break;
|
||||
}
|
||||
case GST_QUERY_URI: {
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
gst_query_set_uri(query, src->priv->uri);
|
||||
result = TRUE;
|
||||
break;
|
||||
@@ -653,7 +653,7 @@
|
||||
WebKitWebSrc* src = WEBKIT_WEB_SRC(handler);
|
||||
gchar* ret;
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
ret = g_strdup(src->priv->uri);
|
||||
return ret;
|
||||
}
|
||||
@@ -668,7 +668,7 @@
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
|
||||
g_free(priv->uri);
|
||||
priv->uri = 0;
|
||||
@@ -704,7 +704,7 @@
|
||||
|
||||
ASSERT(isMainThread());
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
// already stopped
|
||||
if (!priv->needDataID)
|
||||
return FALSE;
|
||||
@@ -725,7 +725,7 @@
|
||||
|
||||
GST_DEBUG_OBJECT(src, "Need more data: %u", length);
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
if (priv->needDataID || !priv->paused) {
|
||||
return;
|
||||
}
|
||||
@@ -739,7 +739,7 @@
|
||||
|
||||
ASSERT(isMainThread());
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
// already stopped
|
||||
if (!priv->enoughDataID)
|
||||
return FALSE;
|
||||
@@ -760,7 +760,7 @@
|
||||
|
||||
GST_DEBUG_OBJECT(src, "Have enough data");
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
if (priv->enoughDataID || priv->paused) {
|
||||
return;
|
||||
}
|
||||
@@ -774,7 +774,7 @@
|
||||
|
||||
ASSERT(isMainThread());
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
// already stopped
|
||||
if (!priv->seekID)
|
||||
return FALSE;
|
||||
@@ -792,7 +792,7 @@
|
||||
WebKitWebSrcPrivate* priv = src->priv;
|
||||
|
||||
GST_DEBUG_OBJECT(src, "Seeking to offset: %" G_GUINT64_FORMAT, offset);
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
if (offset == priv->offset && priv->requestedOffset == priv->offset)
|
||||
return TRUE;
|
||||
|
||||
@@ -811,7 +811,7 @@
|
||||
void webKitWebSrcSetMediaPlayer(WebKitWebSrc* src, WebCore::MediaPlayer* player)
|
||||
{
|
||||
ASSERT(player);
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
src->priv->player = player;
|
||||
}
|
||||
|
||||
@@ -841,7 +841,7 @@
|
||||
|
||||
mapGstBuffer(buffer);
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
priv->buffer = adoptGRef(buffer);
|
||||
locker.unlock();
|
||||
|
||||
@@ -867,7 +867,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
|
||||
priv->corsAccessCheck = corsAccessCheck;
|
||||
|
||||
@@ -966,7 +966,7 @@
|
||||
WebKitWebSrc* src = WEBKIT_WEB_SRC(m_src);
|
||||
WebKitWebSrcPrivate* priv = src->priv;
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
|
||||
GST_LOG_OBJECT(src, "Have %lld bytes of data", priv->buffer ? static_cast<long long>(gst_buffer_get_size(priv->buffer.get())) : length);
|
||||
|
||||
@@ -1035,7 +1035,7 @@
|
||||
|
||||
GST_DEBUG_OBJECT(src, "Have EOS");
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
if (!priv->seekID) {
|
||||
locker.unlock();
|
||||
gst_app_src_end_of_stream(priv->appsrc);
|
||||
@@ -1194,7 +1194,7 @@
|
||||
|
||||
GST_ERROR_OBJECT(src, "Request was blocked");
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
uri.reset(g_strdup(src->priv->uri));
|
||||
locker.unlock();
|
||||
|
||||
@@ -1208,7 +1208,7 @@
|
||||
|
||||
GST_ERROR_OBJECT(src, "Cannot show URL");
|
||||
|
||||
- GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
+ WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
|
||||
uri.reset(g_strdup(src->priv->uri));
|
||||
locker.unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user