[packages/pangox-compat] - updates to build with current pango, release 6
qboosh
qboosh at pld-linux.org
Sun Nov 1 21:09:42 CET 2026
commit 6a309ae4b25e0bc2efbd5a8163ac4679a84dddaf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 1 21:10:31 2026 +0100
- updates to build with current pango, release 6
pangox-compat-freebsd.patch | 59 +++++++++++++++++++++++++++++++++
pangox-compat-more_engine_removal.patch | 21 ++++++++++++
pangox-compat.spec | 6 +++-
3 files changed, 85 insertions(+), 1 deletion(-)
---
diff --git a/pangox-compat.spec b/pangox-compat.spec
index 3dabad1..2f69a3c 100644
--- a/pangox-compat.spec
+++ b/pangox-compat.spec
@@ -6,13 +6,15 @@ Summary: System for layout and rendering of internationalized text - X11 backend
Summary(pl.UTF-8): System renderowania międzynarodowego tekstu - backend X11
Name: pangox-compat
Version: 0.0.2
-Release: 5
+Release: 6
License: LGPL v2+
Group: X11/Libraries
Source0: https://download.gnome.org/sources/pangox-compat/0.0/%{name}-%{version}.tar.xz
# Source0-md5: 7bcbd0187f03e1e27af9a81e07249c33
Patch0: %{name}-xfonts.patch
Patch1: %{name}-arch_confdir.patch
+Patch2: %{name}-freebsd.patch
+Patch3: %{name}-more_engine_removal.patch
URL: http://www.pango.org/
BuildRequires: autoconf >= 2.59-9
BuildRequires: automake >= 1:1.9
@@ -78,6 +80,8 @@ Statyczna biblioteka pangox.
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p0
+%patch -P3 -p1
%build
%{__libtoolize}
diff --git a/pangox-compat-freebsd.patch b/pangox-compat-freebsd.patch
new file mode 100644
index 0000000..740e195
--- /dev/null
+++ b/pangox-compat-freebsd.patch
@@ -0,0 +1,59 @@
+--- pangox.c.orig 2021-01-16 11:31:26 UTC
++++ pangox.c
+@@ -279,7 +279,7 @@ pango_x_font_class_init (PangoXFontClass *class)
+
+ font_class->describe = pango_x_font_describe;
+ font_class->get_coverage = pango_x_font_get_coverage;
+- font_class->find_shaper = pango_x_font_find_shaper;
++ /* font_class->find_shaper = pango_x_font_find_shaper; */
+ font_class->get_glyph_extents = pango_x_font_get_glyph_extents;
+ font_class->get_metrics = pango_x_font_get_metrics;
+ font_class->get_font_map = pango_x_font_get_font_map;
+@@ -1373,12 +1373,11 @@ pango_x_font_find_shaper (PangoFont *font G_GNUC_U
+ PangoLanguage *language,
+ guint32 ch)
+ {
+- PangoMap *shape_map = NULL;
+- PangoScript script;
+-
+- shape_map = pango_x_get_shaper_map (language);
+- script = pango_script_for_unichar (ch);
+- return (PangoEngineShape *)pango_map_get_engine (shape_map, script);
++ static PangoEngineShape *shaper;
++ if (g_once_init_enter (&shaper))
++ g_once_init_leave (&shaper,
++ _pango_basic_x_script_engine_create("BasicScriptEngineXCompat"));
++ return shaper;
+ }
+
+ /* Utility functions */
+--- pango-impl-utils.h.orig 2012-08-27 23:19:32 UTC
++++ pango-impl-utils.h
+@@ -174,6 +174,11 @@ pango_glyph_string_reverse_range (PangoGlyphString *gl
+ }
+ }
+
++/* From pango-font-private.h */
++PangoFontMetrics *pango_font_metrics_new (void);
++
++/* From pango-utils-private.h */
++char *pango_config_key_get (const char *key);
+
+ G_END_DECLS
+
+--- basic-x.c.orig 2012-08-27 23:19:32 UTC
++++ basic-x.c
+@@ -556,9 +556,11 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UN
+ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
+ PangoFont *font,
+ const char *text,
+- gint length,
++ unsigned int length,
+ const PangoAnalysis *analysis,
+- PangoGlyphString *glyphs)
++ PangoGlyphString *glyphs,
++ const char *paragraph_text G_GNUC_UNUSED,
++ unsigned int paragraph_length G_GNUC_UNUSED)
+ {
+ int n_chars;
+ int i;
diff --git a/pangox-compat-more_engine_removal.patch b/pangox-compat-more_engine_removal.patch
new file mode 100644
index 0000000..ed2f7e7
--- /dev/null
+++ b/pangox-compat-more_engine_removal.patch
@@ -0,0 +1,21 @@
+--- pangox-compat-0.0.2/pangox.c.orig 2026-11-01 19:33:47.656360253 +0100
++++ pangox-compat-0.0.2/pangox.c 2026-11-01 21:00:00.751668523 +0100
+@@ -1368,18 +1368,6 @@ pango_x_font_get_coverage (PangoFont
+ return pango_x_face_get_coverage (xfont->xface, font, language);
+ }
+
+-static PangoEngineShape *
+-pango_x_font_find_shaper (PangoFont *font G_GNUC_UNUSED,
+- PangoLanguage *language,
+- guint32 ch)
+-{
+- static PangoEngineShape *shaper;
+- if (g_once_init_enter (&shaper))
+- g_once_init_leave (&shaper,
+- _pango_basic_x_script_engine_create("BasicScriptEngineXCompat"));
+- return shaper;
+-}
+-
+ /* Utility functions */
+
+ static XCharStruct *
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pangox-compat.git/commitdiff/6a309ae4b25e0bc2efbd5a8163ac4679a84dddaf
More information about the pld-cvs-commit
mailing list