]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pango: upgrade 1.52.2 -> 1.54.0
authorRoss Burton <ross.burton@arm.com>
Fri, 19 Jul 2024 15:51:50 +0000 (16:51 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Jul 2024 10:05:11 +0000 (11:05 +0100)
Upstream has removed installable tests, although there is pressure to
bring them back[1].

- Build fixes
- Memory leak fixes
- Drop the install-tests build option
- Add build-examples and build-tests build options
- Require meson 0.63
- Add pango_item_get_char_offset
- Update to Unicode 15.1
- Fix wrong use of GWeakRef, leading to crashes

[1] https://gitlab.gnome.org/GNOME/pango/-/issues/799

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/ptest-packagelists.inc
meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch [deleted file]
meta/recipes-graphics/pango/pango/run-ptest [deleted file]
meta/recipes-graphics/pango/pango_1.54.0.bb [moved from meta/recipes-graphics/pango/pango_1.52.2.bb with 68% similarity]

index d7d711383c013799fa7c5e2df0ddc9d30652c07a..16d7b9e6b2c65f357431605f6d819234741e0962 100644 (file)
@@ -53,7 +53,6 @@ PTESTS_FAST = "\
     m4 \
     nettle \
     opkg \
-    pango \
     popt \
     python3-atomicwrites \
     python3-attrs \
diff --git a/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch b/meta/recipes-graphics/pango/pango/0001-Skip-running-test-layout-test.patch
deleted file mode 100644 (file)
index ec7fb47..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-From b9bfe3a79f165682a6db3d7ee1928365e93b1ccf Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Wed, 13 Apr 2022 19:39:29 -0700
-Subject: [PATCH] Skip running test-layout test
-
-This fails intermittently, it varies based on what version of harfbuzz
-is installed and if it does not match with what pango CI tests then we
-get random failures in this test. This has been disabled in other
-distros [1] too
-
-We want to drop this on next upgrade and see if this test passes if not
-then keep it disabled
-
-Fixes
-
-Running test: pango/test-layout.test
-1..36
-ok 1 /layout/letterspacing.layout
-ok 2 /layout/valid-7.layout
-not ok 3 /layout/valid-14.layout
-Bail out!
-FAIL: pango/test-layout.test (Child process killed by signal 6)
-
-[1] https://github.com/archlinux/svntogit-packages/commit/3f883e7ff8071adad23b6bcc0ba4b995aff10d52
-
-Upstream-Status: Inappropriate [bugfix https://gitlab.gnome.org/GNOME/pango/-/issues/677]
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- tests/test-layout.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tests/test-layout.c b/tests/test-layout.c
-index 1139e4f..b47a066 100644
---- a/tests/test-layout.c
-+++ b/tests/test-layout.c
-@@ -222,5 +222,5 @@ main (int argc, char *argv[])
-     }
-   g_dir_close (dir);
--  return g_test_run ();
-+  return 77;
- }
--- 
-2.35.2
-
diff --git a/meta/recipes-graphics/pango/pango/run-ptest b/meta/recipes-graphics/pango/pango/run-ptest
deleted file mode 100644 (file)
index e1fab05..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#! /bin/sh
-
-# workaround for https://gitlab.gnome.org/GNOME/pango/-/issues/668
-mkdir -p /usr/share/fonts/pango-private
-cp -rf /usr/libexec/installed-tests/pango/fonts/* /usr/share/fonts/pango-private
-gnome-desktop-testing-runner pango
similarity index 68%
rename from meta/recipes-graphics/pango/pango_1.52.2.bb
rename to meta/recipes-graphics/pango/pango_1.54.0.bb
index 4f748e65540bc4118f1b73aa08b43acee85dbc8c..de6f8bb3619368ad5423ffbef67073b5efc1a25e 100644 (file)
@@ -11,42 +11,28 @@ LICENSE = "LGPL-2.0-or-later"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
 
-
-inherit gnomebase gi-docgen ptest-gnome upstream-version-is-even gobject-introspection
+inherit gnomebase gi-docgen upstream-version-is-even gobject-introspection
 
 UPSTREAM_CHECK_REGEX = "pango-(?P<pver>\d+\.(?!9\d+)\d+\.\d+)"
 
 GIR_MESON_ENABLE_FLAG = "enabled"
 GIR_MESON_DISABLE_FLAG = "disabled"
 
-SRC_URI += "file://run-ptest \
-           file://0001-Skip-running-test-layout-test.patch \
-           "
-
-SRC_URI[archive.sha256sum] = "d0076afe01082814b853deec99f9349ece5f2ce83908b8e58ff736b41f78a96b"
+SRC_URI[archive.sha256sum] = "8a9eed75021ee734d7fc0fdf3a65c3bba51dfefe4ae51a9b414a60c70b2d1ed8"
 
 DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \
-                   ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
 
 PACKAGECONFIG[x11] = ",,virtual/libx11 libxft"
-PACKAGECONFIG[tests] = "-Dinstall-tests=true, -Dinstall-tests=false"
 PACKAGECONFIG[thai] = "-Dlibthai=enabled,-Dlibthai=disabled,libthai"
 
 GIR_MESON_OPTION = 'introspection'
 
-do_configure:prepend() {
-       chmod +x ${S}/tests/*.py
-}
-
 LEAD_SONAME = "libpango-1.0*"
 
 FILES:${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}"
 
-RDEPENDS:${PN}-ptest += "cantarell-fonts"
-RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us"
-
 RPROVIDES:${PN} += "pango-modules pango-module-indic-lang \
                     pango-module-basic-fc pango-module-arabic-lang"