aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2024-09-16 17:38:55 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-16 18:49:30 +0700
commit3fdfbcf58a231130f7e036b2c6400e307159df4e (patch)
treea79ec4b5decac3987a069f6df2413a4fc7097eb3 /libraries
parent4a07892d2e766a6d018f5c54821480731d08ebe8 (diff)
libraries/webkit2gtk4.1: Patch for gobject-introspection >= 1.82.x
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/webkit2gtk4.1/fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch33
-rw-r--r--libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild3
2 files changed, 35 insertions, 1 deletions
diff --git a/libraries/webkit2gtk4.1/fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch b/libraries/webkit2gtk4.1/fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch
new file mode 100644
index 000000000000..0e5f891bc06b
--- /dev/null
+++ b/libraries/webkit2gtk4.1/fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch
@@ -0,0 +1,33 @@
+From fff1b1773bff2ef7c3b867ab019d69faa36c010d Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mcatanzaro@redhat.com>
+Date: Wed, 3 Jul 2024 13:36:54 -0700
+Subject: [PATCH] WebKitDOMEventTarget.h:95: Warning: WebKit2WebExtension:
+ invalid "scope" annotation: only valid on callback parameters
+ https://bugs.webkit.org/show_bug.cgi?id=276180
+
+Unreviewed build fix.
+
+Emmanuele recommends using (type gpointer) for the GCallback parameter
+of webkit_dom_event_target_remove_event_listener, since it won't be
+called and is therefore not functioning as a callback.
+
+* Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h:
+
+Canonical link: https://commits.webkit.org/280639@main
+---
+ .../InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h b/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
+index 75aac18943865..cbe39b47a30fe 100644
+--- a/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
++++ b/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
+@@ -92,7 +92,7 @@ WEBKIT_DEPRECATED gboolean webkit_dom_event_target_add_event_listener(WebKitDOM
+ * webkit_dom_event_target_remove_event_listener:
+ * @target: A #WebKitDOMEventTarget
+ * @event_name: A #gchar
+- * @handler: (scope call): A #GCallback
++ * @handler: (type gpointer): A #GCallback
+ * @use_capture: A #gboolean
+ *
+ * Returns: a #gboolean
diff --git a/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild b/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
index 0c8376f76392..5b65025cf8c1 100644
--- a/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
+++ b/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=webkit2gtk4.1
SRCNAM=webkitgtk
VERSION=${VERSION:-2.44.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
VALADIR="usr/share/"$( ls /usr/share/|grep "vala-"|awk -F"/" '{print $1}' )"/vapi"
@@ -80,6 +80,7 @@ find -L . \
patch -p1 < $CWD/unhide-deprecated-api.patch
patch -p1 < $CWD/3d5373575695b293b8559155431d0079a6153aff.patch
+patch -p1 < $CWD/fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch
mkdir -p build
cd build