diff options
| -rw-r--r-- | meta-oe/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch | 35 | ||||
| -rw-r--r-- | meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.14.bb | 15 |
2 files changed, 43 insertions, 7 deletions
diff --git a/meta-oe/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch b/meta-oe/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch new file mode 100644 index 0000000000..da8ce68df9 --- /dev/null +++ b/meta-oe/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From dc208bafc57c1ccaa0ca260f99c8b4c976271ebc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Markus Volk <f_l_k@t-online.de> | ||
| 3 | Date: Sat, 16 Sep 2023 14:02:57 +0200 | ||
| 4 | Subject: [PATCH] xb-self-test.c: hardcode G_TEST_SRCDIR | ||
| 5 | |||
| 6 | This avoids: | ||
| 7 | libxmlb-0.3.14-r0 do_package_qa: QA Issue: File | ||
| 8 | /usr/libexec/installed-tests/libxmlb/xb-self-test in package libxmlb-ptest | ||
| 9 | contains reference to TMPDIR [buildpaths] | ||
| 10 | |||
| 11 | and also fixes the runtime for the ptest. | ||
| 12 | |||
| 13 | Upstream-Status: Inappropriate [oe-specific] | ||
| 14 | |||
| 15 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
| 16 | --- | ||
| 17 | src/xb-self-test.c | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/src/xb-self-test.c b/src/xb-self-test.c | ||
| 21 | index 47d9728..8b3dd0e 100644 | ||
| 22 | --- a/src/xb-self-test.c | ||
| 23 | +++ b/src/xb-self-test.c | ||
| 24 | @@ -2870,7 +2870,7 @@ xb_speed_func(void) | ||
| 25 | int | ||
| 26 | main(int argc, char **argv) | ||
| 27 | { | ||
| 28 | - g_setenv("G_TEST_SRCDIR", SRCDIR, FALSE); | ||
| 29 | + g_setenv("G_TEST_SRCDIR", "/usr/libexec/installed-tests/libxmlb", FALSE); | ||
| 30 | |||
| 31 | g_test_init(&argc, &argv, NULL); | ||
| 32 | |||
| 33 | -- | ||
| 34 | 2.41.0 | ||
| 35 | |||
diff --git a/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.14.bb b/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.14.bb index d468111243..1d3b0de29a 100644 --- a/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.14.bb +++ b/meta-oe/recipes-gnome/libxmlb/libxmlb_0.3.14.bb | |||
| @@ -1,10 +1,13 @@ | |||
| 1 | SUMMARY = "A library to help create and query binary XML blobs" | 1 | SUMMARY = "A library to help create and query binary XML blobs" |
| 2 | HOMEPAGE = "https://github.com/hughsie/libxmlb" | ||
| 2 | LICENSE = "LGPL-2.1-only" | 3 | LICENSE = "LGPL-2.1-only" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742" |
| 4 | 5 | ||
| 5 | SRC_URI = "git://github.com/hughsie/libxmlb.git;branch=main;protocol=https \ | 6 | SRC_URI = " \ |
| 6 | file://run-ptest \ | 7 | git://github.com/hughsie/libxmlb.git;branch=main;protocol=https \ |
| 7 | " | 8 | file://0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch \ |
| 9 | file://run-ptest \ | ||
| 10 | " | ||
| 8 | SRCREV = "aa577b276adc66564f5777f9a522ca3bf0bfa65e" | 11 | SRCREV = "aa577b276adc66564f5777f9a522ca3bf0bfa65e" |
| 9 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 10 | 13 | ||
| @@ -12,13 +15,11 @@ DEPENDS = "glib-2.0 xz zstd" | |||
| 12 | 15 | ||
| 13 | inherit gobject-introspection gtk-doc meson ptest-gnome lib_package pkgconfig | 16 | inherit gobject-introspection gtk-doc meson ptest-gnome lib_package pkgconfig |
| 14 | 17 | ||
| 15 | PACKAGECONFIG ??= "\ | 18 | PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" |
| 16 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ | ||
| 17 | " | ||
| 18 | PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false" | 19 | PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false" |
| 19 | 20 | ||
| 20 | GTKDOC_MESON_OPTION = "gtkdoc" | 21 | GTKDOC_MESON_OPTION = "gtkdoc" |
| 21 | 22 | ||
| 22 | FILES:${PN}-bin += "${libexecdir}/*" | 23 | FILES:${PN} += "${datadir}" |
| 23 | 24 | ||
| 24 | BBCLASSEXTEND = "native" | 25 | BBCLASSEXTEND = "native" |
