diff options
author | Sam James <sam@gentoo.org> | 2022-06-17 00:19:27 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-17 00:19:27 +0100 |
commit | f738d92e64131be574522fb862077ea595f9eda4 (patch) | |
tree | 40fee4913d55bc7368d47d6028f2f45b04345568 /x11-libs | |
parent | dev-libs/double-conversion: wire up tests (diff) | |
download | gentoo-f738d92e64131be574522fb862077ea595f9eda4.tar.gz gentoo-f738d92e64131be574522fb862077ea595f9eda4.tar.bz2 gentoo-f738d92e64131be574522fb862077ea595f9eda4.zip |
x11-libs/pango: fix tests w/ Harfbuzz 4.0.0
Bug: https://bugs.gentoo.org/836317
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/pango/files/1.50.7-harfbuzz-4.patch | 78 | ||||
-rw-r--r-- | x11-libs/pango/pango-1.50.7.ebuild | 4 |
2 files changed, 82 insertions, 0 deletions
diff --git a/x11-libs/pango/files/1.50.7-harfbuzz-4.patch b/x11-libs/pango/files/1.50.7-harfbuzz-4.patch new file mode 100644 index 000000000000..91598f9969e5 --- /dev/null +++ b/x11-libs/pango/files/1.50.7-harfbuzz-4.patch @@ -0,0 +1,78 @@ +https://gitlab.gnome.org/GNOME/pango/-/commit/0226bdd9c223f5651b6657a14cebc900bbac4b19 +https://bugs.gentoo.org/836317 + +Fixes tests with Harfbuzz 4.0.0 ish. + +From: Matthias Clasen <mclasen@redhat.com> +Date: Fri, 10 Jun 2022 08:00:22 -0400 +Subject: [PATCH] Update tests to pass on F36 + +Rounding differences are our downfall :( +--- a/tests/layouts/valid-14.layout ++++ b/tests/layouts/valid-14.layout +@@ -25,7 +25,7 @@ + "is-ellipsized" : true, + "unknown-glyphs" : 1, + "width" : 161792, +- "height" : 20480, ++ "height" : 21047, + "log-attrs" : [ + { + "char-break" : true, +@@ -261,7 +261,7 @@ + ] + }, + "flags" : 0, +- "y-offset" : 0, ++ "y-offset" : 567, + "start-x-offset" : 0, + "end-x-offset" : 0, + "glyphs" : [ +@@ -360,7 +360,7 @@ + ] + }, + "flags" : 0, +- "y-offset" : 0, ++ "y-offset" : 337, + "start-x-offset" : 0, + "end-x-offset" : 0, + "glyphs" : [ +--- a/tests/layouts/valid-20.layout ++++ b/tests/layouts/valid-20.layout +@@ -40,7 +40,7 @@ + "is-wrapped" : false, + "is-ellipsized" : false, + "unknown-glyphs" : 0, +- "width" : 67584, ++ "width" : 76800, + "height" : 25600, + "log-attrs" : [ + { +@@ -138,7 +138,7 @@ + "glyphs" : [ + { + "glyph" : 244, +- "width" : 15360, ++ "width" : 18432, + "x-offset" : 14764, + "y-offset" : 3845, + "is-cluster-start" : true, +@@ -146,7 +146,7 @@ + }, + { + "glyph" : 272, +- "width" : 15360, ++ "width" : 18432, + "x-offset" : 14764, + "y-offset" : 4280, + "is-cluster-start" : true, +@@ -154,7 +154,7 @@ + }, + { + "glyph" : 273, +- "width" : 15360, ++ "width" : 18432, + "x-offset" : 14764, + "y-offset" : 3507, + "is-cluster-start" : true, +GitLab diff --git a/x11-libs/pango/pango-1.50.7.ebuild b/x11-libs/pango/pango-1.50.7.ebuild index 01f3c6c62e73..366b60090874 100644 --- a/x11-libs/pango/pango-1.50.7.ebuild +++ b/x11-libs/pango/pango-1.50.7.ebuild @@ -41,6 +41,10 @@ BDEPEND=" test? ( media-fonts/cantarell ) " +PATCHES=( + "${FILESDIR}"/${PV}-harfbuzz-4.patch +) + src_prepare() { xdg_src_prepare gnome2_environment_reset |