[gimp/wip/Jehan/pygtk-4-distcheck] Add pygtk patch to build against latest Pango.



commit 25d20834cb6685c1c4c0e26dabe42477bee5e1f8
Author: Jehan <jehan girinstud io>
Date:   Sun Aug 2 18:52:04 2020 +0200

    Add pygtk patch to build against latest Pango.

 .gitlab-ci.yml                                     |  1 +
 ...-the-PangoFont-find_shaper-virtual-method.patch | 39 ++++++++++++++++++++++
 2 files changed, 40 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f2a2c8e086..96d802b6cc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -160,6 +160,7 @@ gimp-debian/testing-autotools-distcheck:
     - cd ..
     - tar xzf pygtk-2.24.0.tar.gz
     - cd pygtk-2.24.0/
+    - patch -p1 < ../pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
     - ./configure --prefix="${INSTALL_PREFIX}" && make && make install
     - cd ../../..
     # Actual build.
diff --git a/build/gitlab-ci/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch 
b/build/gitlab-ci/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
new file mode 100644
index 0000000000..ba4141e3fa
--- /dev/null
+++ b/build/gitlab-ci/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
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]