diff options
Diffstat (limited to 'meta/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch')
-rw-r--r-- | meta/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch b/meta/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch new file mode 100644 index 0000000000..27081d8749 --- /dev/null +++ b/meta/recipes-gnome/libxmlb/libxmlb/0001-xb-selftest.c-hardcode-G_TEST_SRCDIR.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 8a1aa4c318b8dbe4c0c2b1c4968f867ea6641b32 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 1daca18..2e5b251 100644 | ||
22 | --- a/src/xb-self-test.c | ||
23 | +++ b/src/xb-self-test.c | ||
24 | @@ -2876,7 +2876,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 | |||