summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glib-2.0/files')
-rw-r--r--meta/recipes-core/glib-2.0/files/0001-Do-not-write-bindir-into-pkg-config-files.patch65
-rw-r--r--meta/recipes-core/glib-2.0/files/0001-Fix-DATADIRNAME-on-uclibc-Linux.patch29
-rw-r--r--meta/recipes-core/glib-2.0/files/0001-Install-gio-querymodules-as-libexec_PROGRAM.patch26
-rw-r--r--meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch39
-rw-r--r--meta/recipes-core/glib-2.0/files/0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch27
-rw-r--r--meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch28
-rw-r--r--meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch29
-rw-r--r--meta/recipes-core/glib-2.0/files/0010-Do-not-hardcode-python-path-into-various-tools.patch43
-rw-r--r--meta/recipes-core/glib-2.0/files/meson.cross.d/common3
-rw-r--r--meta/recipes-core/glib-2.0/files/meson.cross.d/common-glibc6
-rw-r--r--meta/recipes-core/glib-2.0/files/meson.cross.d/common-linux5
-rw-r--r--meta/recipes-core/glib-2.0/files/meson.cross.d/common-mingw6
-rw-r--r--meta/recipes-core/glib-2.0/files/meson.cross.d/common-musl6
-rw-r--r--meta/recipes-core/glib-2.0/files/relocate-modules.patch44
-rw-r--r--meta/recipes-core/glib-2.0/files/run-ptest10
-rw-r--r--meta/recipes-core/glib-2.0/files/skip-timeout.patch29
16 files changed, 395 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/files/0001-Do-not-write-bindir-into-pkg-config-files.patch b/meta/recipes-core/glib-2.0/files/0001-Do-not-write-bindir-into-pkg-config-files.patch
new file mode 100644
index 0000000000..c394ab3277
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0001-Do-not-write-bindir-into-pkg-config-files.patch
@@ -0,0 +1,65 @@
1From 8981db5d775e04b72fb68b6a4553c87fdaedee65 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 15 Feb 2019 11:17:27 +0100
4Subject: [PATCH] Do not prefix executables with $bindir in pkg-config files
5
6This would otherwise break when using the executables to build other target
7components (we need to rely on PATH containing the paths to utilities,
8rather than use target paths).
9
10Upstream-Status: Inappropriate [upstream wants the paths in .pc files]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 gio/meson.build | 17 +++++++++--------
14 glib/meson.build | 7 ++++---
15 2 files changed, 13 insertions(+), 11 deletions(-)
16
17diff --git a/gio/meson.build b/gio/meson.build
18index 5d91b89..1a8da12 100644
19--- a/gio/meson.build
20+++ b/gio/meson.build
21@@ -901,17 +901,18 @@ libgio_dep = declare_dependency(link_with : libgio,
22 pkg.generate(libgio,
23 requires : ['glib-2.0', 'gobject-2.0'],
24 variables : [
25+ 'bindir=' + '${prefix}' / get_option('bindir'),
26 'schemasdir=' + '${datadir}' / schemas_subdir,
27 'dtdsdir=' + '${datadir}' / dtds_subdir,
28 'giomoduledir=' + pkgconfig_giomodulesdir,
29- 'gio=' + '${bindir}' / 'gio',
30- 'gio_querymodules=' + pkgconfig_multiarch_bindir / 'gio-querymodules',
31- 'glib_compile_schemas=' + pkgconfig_multiarch_bindir / 'glib-compile-schemas',
32- 'glib_compile_resources=' + '${bindir}' / 'glib-compile-resources',
33- 'gdbus=' + '${bindir}' /'gdbus',
34- 'gdbus_codegen=' + '${bindir}' / 'gdbus-codegen',
35- 'gresource=' + '${bindir}' / 'gresource',
36- 'gsettings=' + '${bindir}' / 'gsettings',
37+ 'gio=gio',
38+ 'gio_querymodules=gio-querymodules',
39+ 'glib_compile_schemas=glib-compile-schemas',
40+ 'glib_compile_resources=glib-compile-resources',
41+ 'gdbus=gdbus',
42+ 'gdbus_codegen=gdbus-codegen',
43+ 'gresource=gresource',
44+ 'gsettings=gsettings',
45 ],
46 uninstalled_variables : [
47 'gio=${prefix}/gio/gio',
48diff --git a/glib/meson.build b/glib/meson.build
49index 837960d..97d4af0 100644
50--- a/glib/meson.build
51+++ b/glib/meson.build
52@@ -443,9 +443,10 @@ pkg.generate(libglib,
53 subdirs : ['glib-2.0'],
54 extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
55 variables : [
56- 'glib_genmarshal=' + '${bindir}' / 'glib-genmarshal',
57- 'gobject_query=' + '${bindir}' / 'gobject-query',
58- 'glib_mkenums=' + '${bindir}' / 'glib-mkenums',
59+ 'bindir=' + '${prefix}' / get_option('bindir'),
60+ 'glib_genmarshal=glib-genmarshal',
61+ 'gobject_query=gobject-query',
62+ 'glib_mkenums=glib-mkenums',
63 'glib_valgrind_suppressions=' + '${datadir}' /
64 valgrind_suppression_file_install_subdir /
65 fs.name(valgrind_suppression_file),
diff --git a/meta/recipes-core/glib-2.0/files/0001-Fix-DATADIRNAME-on-uclibc-Linux.patch b/meta/recipes-core/glib-2.0/files/0001-Fix-DATADIRNAME-on-uclibc-Linux.patch
new file mode 100644
index 0000000000..19fffbdc5f
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0001-Fix-DATADIRNAME-on-uclibc-Linux.patch
@@ -0,0 +1,29 @@
1From 48bfc87e9f757cf65ad967520860bfd7526c36f2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Mar 2014 22:42:29 -0700
4Subject: [PATCH] Fix DATADIRNAME on uclibc/Linux
5
6translation files are always installed under PREFIX/share/locale in uclibc
7based systems therefore lets set DATADIRNAME to "share".
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Upstream-Status: Pending
11---
12 m4macros/glib-gettext.m4 | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4
16index df6fbf0..47db864 100644
17--- a/m4macros/glib-gettext.m4
18+++ b/m4macros/glib-gettext.m4
19@@ -293,6 +293,10 @@ msgstr ""
20 CATOBJEXT=.mo
21 DATADIRNAME=share
22 ;;
23+ *-*-musl* | *-*-linux-uclibc*)
24+ CATOBJEXT=.gmo
25+ DATADIRNAME=share
26+ ;;
27 *)
28 CATOBJEXT=.mo
29 DATADIRNAME=lib
diff --git a/meta/recipes-core/glib-2.0/files/0001-Install-gio-querymodules-as-libexec_PROGRAM.patch b/meta/recipes-core/glib-2.0/files/0001-Install-gio-querymodules-as-libexec_PROGRAM.patch
new file mode 100644
index 0000000000..89ba10ff6d
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0001-Install-gio-querymodules-as-libexec_PROGRAM.patch
@@ -0,0 +1,26 @@
1From b8dcbf03b315d31759176e9d4fd389e8fda6ffcd Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Tue, 22 Mar 2016 15:14:58 +0200
4Subject: [PATCH] Install gio-querymodules as libexec_PROGRAM
5
6We want to install this binary with the gio library, and debian
7renamer does not cope with library packages with files in ${bindir}
8
9Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
10Upstream-Status: Inappropriate [OE specific]
11---
12 gio/meson.build | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/gio/meson.build b/gio/meson.build
16index 854b95a..5d91b89 100644
17--- a/gio/meson.build
18+++ b/gio/meson.build
19@@ -1038,6 +1038,7 @@ gio_querymodules = executable('gio-querymodules', 'gio-querymodules.c', 'giomodu
20 c_args : gio_c_args,
21 # intl.lib is not compatible with SAFESEH
22 link_args : noseh_link_args,
23+ install_dir: glib_libexecdir,
24 dependencies : [libgio_dep, libgobject_dep, libgmodule_dep, libglib_dep])
25
26 glib_compile_schemas = executable('glib-compile-schemas',
diff --git a/meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch b/meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch
new file mode 100644
index 0000000000..ebdf957272
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch
@@ -0,0 +1,39 @@
1From bdb2772d672e95584585e902689936559c5db05d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 12 Jun 2015 17:08:46 +0300
4Subject: [PATCH] Remove the warning about deprecated paths in schemas
5
6Some schemas in gsettings-desktop-schemas (such as proxy and locale)
7are still using deprecated paths, as of 3.16.1. This causes warning
8messages, and meta/lib/oe/rootfs.py complaints about them.
9
10Upstream-Status: Inappropriate
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 gio/glib-compile-schemas.c | 13 -------------
14 1 file changed, 13 deletions(-)
15
16diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
17index 81e675f..1a10a8d 100644
18--- a/gio/glib-compile-schemas.c
19+++ b/gio/glib-compile-schemas.c
20@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
21 return;
22 }
23
24- if (path && (g_str_has_prefix (path, "/apps/") ||
25- g_str_has_prefix (path, "/desktop/") ||
26- g_str_has_prefix (path, "/system/")))
27- {
28- gchar *message = NULL;
29- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
30- "Paths starting with "
31- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
32- id, path);
33- g_printerr ("%s\n", message);
34- g_free (message);
35- }
36-
37 state->schema_state = schema_state_new (path, gettext_domain,
38 extends, extends_name, list_of);
39
diff --git a/meta/recipes-core/glib-2.0/files/0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch b/meta/recipes-core/glib-2.0/files/0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch
new file mode 100644
index 0000000000..771b03e66d
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch
@@ -0,0 +1,27 @@
1From 8cb75d3bc368ee108a4b14bc57a92bd0c0b2e10e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 8 Jan 2020 18:22:46 +0100
4Subject: [PATCH] gio/tests/resources.c: comment out a build host-only test
5
6This test requires building resources in a way that is
7not cross-compatible (hardcodes ld and objcopy).
8
9Upstream-Status: Inappropriate [oe-core specific]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11---
12 gio/tests/resources.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/gio/tests/resources.c b/gio/tests/resources.c
16index ee9cee4..ff844c1 100644
17--- a/gio/tests/resources.c
18+++ b/gio/tests/resources.c
19@@ -1196,7 +1196,7 @@ main (int argc,
20 g_test_add_func ("/resource/automatic", test_resource_automatic);
21 /* This only uses automatic resources too, so it tests the constructors and destructors */
22 g_test_add_func ("/resource/module", test_resource_module);
23- g_test_add_func ("/resource/binary-linked", test_resource_binary_linked);
24+ /* g_test_add_func ("/resource/binary-linked", test_resource_binary_linked); */
25 #endif
26 g_test_add_func ("/resource/uri/query-info", test_uri_query_info);
27 g_test_add_func ("/resource/uri/file", test_uri_file);
diff --git a/meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch b/meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch
new file mode 100644
index 0000000000..e5878a1428
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch
@@ -0,0 +1,28 @@
1From 502984fe340a76c92e2c04235f43fdcb47728806 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 12 Oct 2019 17:46:26 -0700
4Subject: [PATCH] meson: Run atomics test on clang as well
5
6Fixes
7./glib-2.62.1/glib/gatomic.c:675:2: error: G_ATOMIC_LOCK_FREE defined, but incapable of lock-free atomics.
8^
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 meson.build | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/meson.build b/meson.build
17index a8bcadc..041b68e 100644
18--- a/meson.build
19+++ b/meson.build
20@@ -2075,7 +2075,7 @@ atomicdefine = '''
21 # We know that we can always use real ("lock free") atomic operations with MSVC
22 if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl' or cc.links(atomictest, name : 'atomic ops')
23 have_atomic_lock_free = true
24- if cc.get_id() == 'gcc' and not cc.compiles(atomicdefine, name : 'atomic ops define')
25+ if (cc.get_id() == 'gcc' or cc.get_id() == 'clang') and not cc.compiles(atomicdefine, name : 'atomic ops define')
26 # Old gcc release may provide
27 # __sync_bool_compare_and_swap but doesn't define
28 # __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
diff --git a/meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch b/meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch
new file mode 100644
index 0000000000..e512940e34
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch
@@ -0,0 +1,29 @@
1From d5e566c45a9ab4d7e51104ab176e6eb5f705f91d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Sat, 16 Sep 2023 22:28:27 +0200
4Subject: [PATCH] meson.build: do not enable pidfd features on native glib
5 builds
6
7We still use host distros like alma 8 with kernels older than 5.4,
8where these features are not implemented.
9
10Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12---
13 meson.build | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16diff --git a/meson.build b/meson.build
17index 041b68e..155bfd4 100644
18--- a/meson.build
19+++ b/meson.build
20@@ -1073,7 +1073,8 @@ if cc.links('''#include <sys/syscall.h>
21 waitid (P_PIDFD, 0, &child_info, WEXITED | WNOHANG);
22 return 0;
23 }''', name : 'pidfd_open(2) system call')
24- glib_conf.set('HAVE_PIDFD', 1)
25+ #requires kernel 5.4+
26+ #glib_conf.set('HAVE_PIDFD', 1)
27 endif
28
29 # Check for __uint128_t (gcc) by checking for 128-bit division
diff --git a/meta/recipes-core/glib-2.0/files/0010-Do-not-hardcode-python-path-into-various-tools.patch b/meta/recipes-core/glib-2.0/files/0010-Do-not-hardcode-python-path-into-various-tools.patch
new file mode 100644
index 0000000000..d26f944d51
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/0010-Do-not-hardcode-python-path-into-various-tools.patch
@@ -0,0 +1,43 @@
1From 211927d2caa4a81e1131c2210e1db838104a1fb9 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 3 Oct 2017 10:45:55 +0300
4Subject: [PATCH] Do not hardcode python path into various tools
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 gio/gdbus-2.0/codegen/gdbus-codegen.in | 2 +-
10 gobject/glib-genmarshal.in | 2 +-
11 gobject/glib-mkenums.in | 2 +-
12 3 files changed, 3 insertions(+), 3 deletions(-)
13
14diff --git a/gio/gdbus-2.0/codegen/gdbus-codegen.in b/gio/gdbus-2.0/codegen/gdbus-codegen.in
15index 877505e..49a1e8c 100755
16--- a/gio/gdbus-2.0/codegen/gdbus-codegen.in
17+++ b/gio/gdbus-2.0/codegen/gdbus-codegen.in
18@@ -1,4 +1,4 @@
19-#!@PYTHON@
20+#!/usr/bin/env python3
21
22 # GDBus - GLib D-Bus Library
23 #
24diff --git a/gobject/glib-genmarshal.in b/gobject/glib-genmarshal.in
25index 0578b74..56e8e2e 100755
26--- a/gobject/glib-genmarshal.in
27+++ b/gobject/glib-genmarshal.in
28@@ -1,4 +1,4 @@
29-#!@PYTHON@
30+#!/usr/bin/env python3
31
32 # pylint: disable=too-many-lines, missing-docstring, invalid-name
33
34diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
35index 7e794e9..4b619f8 100755
36--- a/gobject/glib-mkenums.in
37+++ b/gobject/glib-mkenums.in
38@@ -1,4 +1,4 @@
39-#!@PYTHON@
40+#!/usr/bin/env python3
41
42 # If the code below looks horrible and unpythonic, do not panic.
43 #
diff --git a/meta/recipes-core/glib-2.0/files/meson.cross.d/common b/meta/recipes-core/glib-2.0/files/meson.cross.d/common
new file mode 100644
index 0000000000..0d7c5fa3f8
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/meson.cross.d/common
@@ -0,0 +1,3 @@
1[properties]
2# On all known supported architectures the stack grows down
3growing_stack = false
diff --git a/meta/recipes-core/glib-2.0/files/meson.cross.d/common-glibc b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-glibc
new file mode 100644
index 0000000000..3049e5116e
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-glibc
@@ -0,0 +1,6 @@
1[properties]
2have_c99_vsnprintf = true
3have_c99_snprintf = true
4have_unix98_printf = true
5va_val_copy = true
6have_strlcpy = true
diff --git a/meta/recipes-core/glib-2.0/files/meson.cross.d/common-linux b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-linux
new file mode 100644
index 0000000000..adad7e62ee
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-linux
@@ -0,0 +1,5 @@
1[properties]
2have_proc_self_cmdline = true
3
4[binaries]
5env = '/usr/bin/env'
diff --git a/meta/recipes-core/glib-2.0/files/meson.cross.d/common-mingw b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-mingw
new file mode 100644
index 0000000000..75f911ba1e
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-mingw
@@ -0,0 +1,6 @@
1[properties]
2have_c99_vsnprintf = false
3have_c99_snprintf = false
4have_unix98_printf = false
5va_val_copy = true
6have_proc_self_cmdline = false
diff --git a/meta/recipes-core/glib-2.0/files/meson.cross.d/common-musl b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-musl
new file mode 100644
index 0000000000..3049e5116e
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/meson.cross.d/common-musl
@@ -0,0 +1,6 @@
1[properties]
2have_c99_vsnprintf = true
3have_c99_snprintf = true
4have_unix98_printf = true
5va_val_copy = true
6have_strlcpy = true
diff --git a/meta/recipes-core/glib-2.0/files/relocate-modules.patch b/meta/recipes-core/glib-2.0/files/relocate-modules.patch
new file mode 100644
index 0000000000..ddf464526c
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/relocate-modules.patch
@@ -0,0 +1,44 @@
1From 456bac53f19d3094aa2007054c87d86c9d65b423 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Fri, 11 Mar 2016 15:35:55 +0000
4Subject: [PATCH] glib-2.0: relocate the GIO module directory for native builds
5
6Instead of hard-coding GIO_MODULE_PATH when glib is built, use dladdr() to
7determine where libglib.so is and use that path to calculate GIO_MODULES_DIR.
8
9This solves relocation problems with GIOModule for native builds of glib.
10
11Upstream-Status: Inappropriate
12Signed-off-by: Ross Burton <ross.burton@intel.com>
13
14Port patch to 2.48
15Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
16---
17 gio/giomodule.c | 7 -------
18 1 file changed, 7 deletions(-)
19
20diff --git a/gio/giomodule.c b/gio/giomodule.c
21index 76c2028..6deba7c 100644
22--- a/gio/giomodule.c
23+++ b/gio/giomodule.c
24@@ -1260,11 +1260,6 @@ get_gio_module_dir (void)
25 g_free (install_dir);
26 #else
27 module_dir = g_strdup (GIO_MODULE_DIR);
28-#ifdef __APPLE__
29-#include "TargetConditionals.h"
30-/* Only auto-relocate on macOS, not watchOS etc; older macOS SDKs only define TARGET_OS_MAC */
31-#if (defined (TARGET_OS_OSX) && TARGET_OS_OSX) || \
32- (!defined (TARGET_OS_OSX) && defined (TARGET_OS_MAC) && TARGET_OS_MAC)
33 #include <dlfcn.h>
34 {
35 g_autofree gchar *path = NULL;
36@@ -1283,8 +1278,6 @@ get_gio_module_dir (void)
37 }
38 }
39 }
40-#endif
41-#endif
42 #endif
43 }
44
diff --git a/meta/recipes-core/glib-2.0/files/run-ptest b/meta/recipes-core/glib-2.0/files/run-ptest
new file mode 100644
index 0000000000..831bc3b91f
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/run-ptest
@@ -0,0 +1,10 @@
1#! /bin/sh
2
3set -eux
4if id -u glib2-test; then
5 userdel glib2-test
6fi
7useradd glib2-test
8cd /tmp
9su glib2-test -c 'G_TEST_TMPDIR=`readlink -f /tmp` gnome-desktop-testing-runner glib'
10userdel glib2-test
diff --git a/meta/recipes-core/glib-2.0/files/skip-timeout.patch b/meta/recipes-core/glib-2.0/files/skip-timeout.patch
new file mode 100644
index 0000000000..138e970553
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/skip-timeout.patch
@@ -0,0 +1,29 @@
1From 51bfcab0b60bd57f4d3463c479fdf47e645cd6fe Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Thu, 28 Mar 2024 16:27:09 +0000
4Subject: [PATCH] Skip /timeout/rounding test
5
6This test is sensitive to load because it expects certain timeout operations
7to succeed in specific time periods. Whilst these timeouts are fairly large,
8they're still exceeded inside a qemu on a loaded system.
9
10https://bugzilla.yoctoproject.org/show_bug.cgi?id=14464
11
12Upstream-Status: Inappropriate [OE-specific]
13Signed-off-by: Ross Burton <ross.burton@arm.com>
14---
15 glib/tests/timeout.c | 1 -
16 1 file changed, 1 deletion(-)
17
18diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c
19index 1ae3f3a..85a715b 100644
20--- a/glib/tests/timeout.c
21+++ b/glib/tests/timeout.c
22@@ -214,7 +214,6 @@ main (int argc, char *argv[])
23 g_test_add_func ("/timeout/seconds-once", test_seconds_once);
24 g_test_add_func ("/timeout/weeks-overflow", test_weeks_overflow);
25 g_test_add_func ("/timeout/far-future-ready-time", test_far_future_ready_time);
26- g_test_add_func ("/timeout/rounding", test_rounding);
27
28 return g_test_run ();
29 }