FreeBSD Bugzilla – Attachment 221640 Details for
Bug 252748
x11-toolkits/pangox-compat: Fix compilation with Pango 1.46.2 or newer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for pangox-compat
0001-pangox-compat.patch (text/plain), 3.37 KB, created by
Daniel Engberg
on 2021-01-16 18:42:42 UTC
(
hide
)
Description:
Patch for pangox-compat
Filename:
MIME Type:
Creator:
Daniel Engberg
Created:
2021-01-16 18:42:42 UTC
Size:
3.37 KB
patch
obsolete
>From 3b04c09aeda16c9aae5c5da737186a125cb219c2 Mon Sep 17 00:00:00 2001 >From: Daniel Engberg <daniel.engberg.lists@pyret.net> >Date: Sat, 16 Jan 2021 12:49:30 +0100 >Subject: [PATCH] pangox-compat > >pangox-compat > >Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> >--- > x11-toolkits/pangox-compat/Makefile | 14 +++++---- > x11-toolkits/pangox-compat/distinfo | 1 + > .../pangox-compat/files/patch-pangox.c | 29 +++++++++++++++++++ > 3 files changed, 39 insertions(+), 5 deletions(-) > create mode 100644 x11-toolkits/pangox-compat/files/patch-pangox.c > >diff --git a/x11-toolkits/pangox-compat/Makefile b/x11-toolkits/pangox-compat/Makefile >index d5070e4ad40f..903c5a108847 100644 >--- a/x11-toolkits/pangox-compat/Makefile >+++ b/x11-toolkits/pangox-compat/Makefile >@@ -3,8 +3,8 @@ > # $MCom: ports/trunk/x11-toolkits/pangox-compat/Makefile 18610 2013-06-30 16:33:05Z marcus $ > > PORTNAME= pangox-compat >-PORTVERSION= 0.0.2 >-PORTREVISION= 2 >+DISTVERSION= 0.0.2 >+PORTREVISION= 3 > CATEGORIES= x11-toolkits > MASTER_SITES= GNOME > DIST_SUBDIR= gnome2 >@@ -12,15 +12,19 @@ DIST_SUBDIR= gnome2 > MAINTAINER= gnome@FreeBSD.org > COMMENT= Deprecated pangoX support > >+LICENSE= LGPL20 >+LICENSE_FILE= ${WRKSRC}/COPYING >+ > BUILD_DEPENDS= pango>=1.34.0:x11-toolkits/pango > >-USES= gmake gnome libtool pathfix pkgconfig tar:xz xorg >+USES= gmake gnome libtool localbase:ldflags pathfix pkgconfig \ >+ tar:xz xorg > USE_XORG= x11 ice > USE_LDCONFIG= yes > USE_GNOME= glib20 pango >+ > GNU_CONFIGURE= yes >-CPPFLAGS+= -I${LOCALBASE}/include >-LIBS+= -L${LOCALBASE}/lib >+ > INSTALL_TARGET= install-strip > > .include <bsd.port.mk> >diff --git a/x11-toolkits/pangox-compat/distinfo b/x11-toolkits/pangox-compat/distinfo >index 1dc12904eaa7..79612301bb23 100644 >--- a/x11-toolkits/pangox-compat/distinfo >+++ b/x11-toolkits/pangox-compat/distinfo >@@ -1,2 +1,3 @@ >+TIMESTAMP = 1610797704 > SHA256 (gnome2/pangox-compat-0.0.2.tar.xz) = 552092b3b6c23f47f4beee05495d0f9a153781f62a1c4b7ec53857a37dfce046 > SIZE (gnome2/pangox-compat-0.0.2.tar.xz) = 267396 >diff --git a/x11-toolkits/pangox-compat/files/patch-pangox.c b/x11-toolkits/pangox-compat/files/patch-pangox.c >new file mode 100644 >index 000000000000..8a9283256e9e >--- /dev/null >+++ b/x11-toolkits/pangox-compat/files/patch-pangox.c >@@ -0,0 +1,29 @@ >+--- 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 */ >-- >2.29.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252748
: 221640