From 94b3634ec51bc9c3bf4e169a660475b7d19b0d0f Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Wed, 19 Aug 2020 18:29:19 +0700 Subject: [PATCH] pangox-compat: Fix build on -current. Signed-off-by: Willy Sudiarto Raharjo --- pangox-compat/0002.patch | 15 +++++++++++++++ pangox-compat/pangox-compat.SlackBuild | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 pangox-compat/0002.patch diff --git a/pangox-compat/0002.patch b/pangox-compat/0002.patch new file mode 100644 index 0000000..87f4598 --- /dev/null +++ b/pangox-compat/0002.patch @@ -0,0 +1,15 @@ +--- pangox-compat/pangox.c.orig 2020-05-04 18:31:53.421197064 -0400 ++++ pangox-compat/pangox.c 2020-05-04 18:32:41.251146923 -0400 +@@ -277,11 +277,11 @@ pango_x_font_class_init (PangoXFontClass + object_class->finalize = pango_x_font_finalize; + object_class->dispose = pango_x_font_dispose; + + 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; + } + diff --git a/pangox-compat/pangox-compat.SlackBuild b/pangox-compat/pangox-compat.SlackBuild index c421042..08b8cf8 100644 --- a/pangox-compat/pangox-compat.SlackBuild +++ b/pangox-compat/pangox-compat.SlackBuild @@ -27,7 +27,7 @@ PRGNAM=pangox-compat VERSION=${VERSION:-0.0.2} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_csb} if [ -z "$ARCH" ]; then @@ -75,6 +75,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/0002.patch + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \