aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-24 22:04:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-24 22:04:31 +0700
commit03f2b269406911592c5af54b71cbee24e009497c (patch)
treef29d3c652eb100bfa93a4677082a05379886f5c2 /libraries
parente47d5f43d9d5b985a1164594cfc40b9c2627a633 (diff)
libraries/webkitgtk3: Add actual patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/webkitgtk3/glib-2.68.0.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/webkitgtk3/glib-2.68.0.patch b/libraries/webkitgtk3/glib-2.68.0.patch
new file mode 100644
index 0000000000000..a5ef51700ba1e
--- /dev/null
+++ b/libraries/webkitgtk3/glib-2.68.0.patch
@@ -0,0 +1,29 @@
+--- Source/WTF/wtf/gobject/GRefPtr.h 2021-04-22 00:32:56.644133999 +0900
++++ Source/WTF/wtf/gobject/GRefPtr.h 2021-04-22 00:33:57.755315484 +0900
+@@ -25,11 +25,11 @@
+
+ #if USE(GLIB)
+
++#include <glib-object.h>
++
+ #include <wtf/RefPtr.h>
+ #include <algorithm>
+
+-extern "C" void g_object_unref(gpointer);
+-extern "C" gpointer g_object_ref_sink(gpointer);
+
+ namespace WTF {
+
+--- GNUmakefile.in 2021-04-22 00:35:24.846905490 +0900
++++ GNUmakefile.in 2021-04-22 00:42:04.543194694 +0900
+@@ -96250,8 +96250,8 @@
+ @true
+
+ stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
+- $(AM_V_GEN) echo "extern \"C\" {" > $(GENSOURCES_WEBKIT)/webkitmarshal.cpp && \
+- $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(GENSOURCES_WEBKIT)/webkitmarshal.cpp && \
++ $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(GENSOURCES_WEBKIT)/webkitmarshal.cpp && \
++ sed -i '1,10s/#ifdef/extern "C" {\n#ifdef/gm' $(GENSOURCES_WEBKIT)/webkitmarshal.cpp && \
+ echo '}' >> $(GENSOURCES_WEBKIT)/webkitmarshal.cpp && \
+ echo timestamp > $(@F)
+