From 8ec294542a1ad4a241521eab83acf5d646be4bbe Mon Sep 17 00:00:00 2001 From: bbhtt Date: Sat, 11 Apr 2026 10:07:04 +0530 Subject: [PATCH 1/4] pygtk: Include python2 for the build --- pygtk/pygtk.json | 1 + 1 file changed, 1 insertion(+) diff --git a/pygtk/pygtk.json b/pygtk/pygtk.json index 5319e4b3..e1518f96 100644 --- a/pygtk/pygtk.json +++ b/pygtk/pygtk.json @@ -30,6 +30,7 @@ "/share/pygtk" ], "modules": [ + "../python2.7/python-2.7.json", { "name": "python2-pycairo", "buildsystem": "meson", From 353cf72dad9d49825d49731e8f82f167cdc93b93 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Sat, 11 Apr 2026 10:08:34 +0530 Subject: [PATCH 2/4] pygtk: Disable gtk-doc for libglade --- pygtk/pygtk.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pygtk/pygtk.json b/pygtk/pygtk.json index e1518f96..990d01f8 100644 --- a/pygtk/pygtk.json +++ b/pygtk/pygtk.json @@ -74,6 +74,11 @@ { "name": "libglade", "rm-configure": true, + "build-options": { + "env": { + "GTKDOCIZE": "true" + } + }, "cleanup": [ "/bin", "/include/libglade-2.0", From bf62eadcd04ffee3de2716788cfb81aba5200941 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Sat, 11 Apr 2026 10:12:18 +0530 Subject: [PATCH 3/4] pygtk: Include gtk2 for libglade --- pygtk/pygtk.json | 1 + 1 file changed, 1 insertion(+) diff --git a/pygtk/pygtk.json b/pygtk/pygtk.json index 990d01f8..ba105707 100644 --- a/pygtk/pygtk.json +++ b/pygtk/pygtk.json @@ -31,6 +31,7 @@ ], "modules": [ "../python2.7/python-2.7.json", + "../gtk2/gtk2.json", { "name": "python2-pycairo", "buildsystem": "meson", From b244376a8ccf9441fe2ac7ec9ad8dd45892206b5 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Sat, 11 Apr 2026 10:17:28 +0530 Subject: [PATCH 4/4] pygtk: Add patch to fix implicit declaration errors from pango apis --- pygtk/pygtk-c99.patch | 15 +++++++++++++++ pygtk/pygtk.json | 5 ++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 pygtk/pygtk-c99.patch diff --git a/pygtk/pygtk-c99.patch b/pygtk/pygtk-c99.patch new file mode 100644 index 00000000..2ad209ec --- /dev/null +++ b/pygtk/pygtk-c99.patch @@ -0,0 +1,15 @@ +diff --git a/pango.override b/pango.override +index afe43ab..0bb5209 100644 +--- a/pango.override ++++ b/pango.override +@@ -27,6 +27,10 @@ headers + #include + #include + ++/* Fix problem with accessing private interface */ ++PANGO_AVAILABLE_IN_ALL PangoFontMetrics *pango_font_metrics_new (void); ++PANGO_AVAILABLE_IN_ALL const char *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap); ++ + typedef struct { + PyObject *func, *data; + } PyGtkCustomNotify; diff --git a/pygtk/pygtk.json b/pygtk/pygtk.json index ba105707..13fd4be7 100644 --- a/pygtk/pygtk.json +++ b/pygtk/pygtk.json @@ -11,7 +11,10 @@ }, { "type": "patch", - "path": "pygtk.patch" + "paths": [ + "pygtk.patch", + "pygtk-c99.patch" + ] }, { "type": "shell",