[pango/f16] Fix a crash in the fallback engine
Kalev Lember
kalev at fedoraproject.org
Wed Aug 17 14:49:19 UTC 2011
commit dbbe0abd2345f21a9d32906347b760362cf9aca2
Author: Kalev Lember <kalevlember at gmail.com>
Date: Wed Aug 17 15:17:09 2011 +0300
Fix a crash in the fallback engine
pango-1.29.3-fallback_engine.patch | 29 +++++++++++++++++++++++++++++
pango.spec | 8 +++++++-
2 files changed, 36 insertions(+), 1 deletions(-)
---
diff --git a/pango-1.29.3-fallback_engine.patch b/pango-1.29.3-fallback_engine.patch
new file mode 100644
index 0000000..efb402d
--- /dev/null
+++ b/pango-1.29.3-fallback_engine.patch
@@ -0,0 +1,29 @@
+From eebb94d94054bbb1a3a3d08e47e32de09d93c9b3 Mon Sep 17 00:00:00 2001
+From: Kalev Lember <kalevlember at gmail.com>
+Date: Mon, 11 Jul 2011 10:00:02 +0300
+Subject: [PATCH] Don't define PangoFallbackEngine as abstract type
+
+Fixes a regression from ea702f4 which changed PangoFallbackEngine to be
+abstract.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=653985
+---
+ pango/pango-engine.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/pango/pango-engine.c b/pango/pango-engine.c
+index 1a49385..8e87402 100644
+--- a/pango/pango-engine.c
++++ b/pango/pango-engine.c
+@@ -180,7 +180,7 @@ fallback_engine_covers (PangoEngineShape *engine G_GNUC_UNUSED,
+
+ static GType pango_fallback_engine_get_type (void);
+
+-G_DEFINE_ABSTRACT_TYPE (PangoFallbackEngine, pango_fallback_engine, PANGO_TYPE_ENGINE_SHAPE);
++G_DEFINE_TYPE (PangoFallbackEngine, pango_fallback_engine, PANGO_TYPE_ENGINE_SHAPE);
+
+ static void
+ pango_fallback_engine_init (PangoFallbackEngine *self)
+--
+1.7.6
+
diff --git a/pango.spec b/pango.spec
index 4a3e04b..968e4a2 100644
--- a/pango.spec
+++ b/pango.spec
@@ -9,7 +9,7 @@
Summary: System for layout and rendering of internationalized text
Name: pango
Version: 1.29.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
#VCS: git:git://git.gnome.org/pango
@@ -39,6 +39,8 @@ BuildRequires: gnome-common intltool gtk-doc
# Look for pango.modules in an arch-specific directory
Patch0: pango-1.21.4-lib64.patch
+# Upstream fix for fallback engine crash:
+Patch1: pango-1.29.3-fallback_engine.patch
%description
Pango is a library for laying out and rendering of text, with an emphasis
@@ -74,6 +76,7 @@ for the pango package.
%setup -q -n pango-%{version}
%patch0 -p1 -b .lib64
+%patch1 -p1 -b .fallback_engine
%build
@@ -238,6 +241,9 @@ fi
%changelog
+* Wed Aug 17 2011 Kalev Lember <kalevlember at gmail.com> - 1.29.3-2
+- Fix a crash in the fallback engine
+
* Fri Jun 17 2011 Tomas Bzatek <tbzatek at redhat.com> - 1.29.3-1
- Update to 1.29.3
More information about the scm-commits
mailing list