summaryrefslogtreecommitdiffstats
path: root/source/l/pygtk
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/pygtk')
-rw-r--r--source/l/pygtk/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch39
-rwxr-xr-xsource/l/pygtk/pygtk.SlackBuild3
2 files changed, 42 insertions, 0 deletions
diff --git a/source/l/pygtk/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch b/source/l/pygtk/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
new file mode 100644
index 000000000..ba4141e3f
--- /dev/null
+++ b/source/l/pygtk/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
@@ -0,0 +1,39 @@
+From 877164b6b70780468a31d8211f29421b6f34b0c8 Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha@daitauha.fr>
+Date: Thu, 24 Oct 2019 22:58:36 +0200
+Subject: [PATCH] Drop the PangoFont find_shaper virtual method
+
+This API has been removed from Pango 1.44.6, because it was completely
+unused by anything.
+
+However, PyGTK tries to bind everything, even unused API.
+
+Removing this from PyGTK means we can build it against the latest Pango
+again.
+---
+ pango.defs | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+diff --git a/pango.defs b/pango.defs
+index 2a79ecc..862667a 100644
+--- a/pango.defs
++++ b/pango.defs
+@@ -1391,15 +1391,6 @@
+ )
+ )
+
+-(define-virtual find_shaper
+- (of-object "PangoFont")
+- (return-type "PangoEngineShape*")
+- (parameters
+- '("PangoLanguage*" "lang")
+- '("guint32" "ch")
+- )
+-)
+-
+ (define-virtual get_glyph_extents
+ (of-object "PangoFont")
+ (return-type "none")
+--
+2.21.0
+
diff --git a/source/l/pygtk/pygtk.SlackBuild b/source/l/pygtk/pygtk.SlackBuild
index 6b95b6b42..29c4bbaf2 100755
--- a/source/l/pygtk/pygtk.SlackBuild
+++ b/source/l/pygtk/pygtk.SlackBuild
@@ -83,6 +83,9 @@ find . \
# https://bugzilla.gnome.org/show_bug.cgi?id=660216
zcat $CWD/pygtk-fix-pango-object-leaks.patch.gz | patch -p1 --verbose || exit 1
+# Fix build against recent pango:
+zcat $CWD/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch.gz | patch -p1 --verbose || exit 1
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \