[packages/python-pygtk] fix build with new pango versions
atler
atler at pld-linux.org
Wed Oct 21 19:13:45 CEST 2020
commit 090bb3c9f488d58fd4ebc90038e6e5eb90adc05a
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Oct 21 18:04:58 2020 +0200
fix build with new pango versions
drop-pangofont.patch | 41 +++++++++++++++++++++++++++++++++++++++++
python-pygtk.spec | 2 ++
2 files changed, 43 insertions(+)
---
diff --git a/python-pygtk.spec b/python-pygtk.spec
index 4575d64..8cda568 100644
--- a/python-pygtk.spec
+++ b/python-pygtk.spec
@@ -19,6 +19,7 @@ Source1: %{name}-python.m4
Source2: %{name}-jhflags.m4
Patch0: %{name}-pyc.patch
Patch1: %{name}-python27.patch
+Patch2: drop-pangofont.patch
URL: http://www.pygtk.org/
BuildRequires: atk-devel >= 1:1.12.0
BuildRequires: autoconf >= 2.52
@@ -156,6 +157,7 @@ Dokumentacja API pygtk.
%setup -q -n %{module}-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# don't remove it
#mkdir m4
diff --git a/drop-pangofont.patch b/drop-pangofont.patch
new file mode 100644
index 0000000..0e549c1
--- /dev/null
+++ b/drop-pangofont.patch
@@ -0,0 +1,41 @@
+From 4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2 Mon Sep 17 00:00:00 2001
+From: Jordan Petridis <jpetridis at gnome.org>
+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.
+
+https://gitlab.gnome.org/GNOME/pango/issues/417
+---
+ pango.defs | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+diff --git a/pango.defs b/pango.defs
+index 6935c964..da968f58 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.24.2
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygtk.git/commitdiff/eb68d672b16f6da71c513899b475677626d0720c
More information about the pld-cvs-commit
mailing list