diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/files')
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 @@ | |||
1 | From 8981db5d775e04b72fb68b6a4553c87fdaedee65 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 15 Feb 2019 11:17:27 +0100 | ||
4 | Subject: [PATCH] Do not prefix executables with $bindir in pkg-config files | ||
5 | |||
6 | This would otherwise break when using the executables to build other target | ||
7 | components (we need to rely on PATH containing the paths to utilities, | ||
8 | rather than use target paths). | ||
9 | |||
10 | Upstream-Status: Inappropriate [upstream wants the paths in .pc files] | ||
11 | Signed-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 | |||
17 | diff --git a/gio/meson.build b/gio/meson.build | ||
18 | index 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', | ||
48 | diff --git a/glib/meson.build b/glib/meson.build | ||
49 | index 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 @@ | |||
1 | From 48bfc87e9f757cf65ad967520860bfd7526c36f2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 15 Mar 2014 22:42:29 -0700 | ||
4 | Subject: [PATCH] Fix DATADIRNAME on uclibc/Linux | ||
5 | |||
6 | translation files are always installed under PREFIX/share/locale in uclibc | ||
7 | based systems therefore lets set DATADIRNAME to "share". | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | Upstream-Status: Pending | ||
11 | --- | ||
12 | m4macros/glib-gettext.m4 | 4 ++++ | ||
13 | 1 file changed, 4 insertions(+) | ||
14 | |||
15 | diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4 | ||
16 | index 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 @@ | |||
1 | From b8dcbf03b315d31759176e9d4fd389e8fda6ffcd Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
3 | Date: Tue, 22 Mar 2016 15:14:58 +0200 | ||
4 | Subject: [PATCH] Install gio-querymodules as libexec_PROGRAM | ||
5 | |||
6 | We want to install this binary with the gio library, and debian | ||
7 | renamer does not cope with library packages with files in ${bindir} | ||
8 | |||
9 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
10 | Upstream-Status: Inappropriate [OE specific] | ||
11 | --- | ||
12 | gio/meson.build | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/gio/meson.build b/gio/meson.build | ||
16 | index 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 @@ | |||
1 | From bdb2772d672e95584585e902689936559c5db05d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 12 Jun 2015 17:08:46 +0300 | ||
4 | Subject: [PATCH] Remove the warning about deprecated paths in schemas | ||
5 | |||
6 | Some schemas in gsettings-desktop-schemas (such as proxy and locale) | ||
7 | are still using deprecated paths, as of 3.16.1. This causes warning | ||
8 | messages, and meta/lib/oe/rootfs.py complaints about them. | ||
9 | |||
10 | Upstream-Status: Inappropriate | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | gio/glib-compile-schemas.c | 13 ------------- | ||
14 | 1 file changed, 13 deletions(-) | ||
15 | |||
16 | diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c | ||
17 | index 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 @@ | |||
1 | From 8cb75d3bc368ee108a4b14bc57a92bd0c0b2e10e Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 8 Jan 2020 18:22:46 +0100 | ||
4 | Subject: [PATCH] gio/tests/resources.c: comment out a build host-only test | ||
5 | |||
6 | This test requires building resources in a way that is | ||
7 | not cross-compatible (hardcodes ld and objcopy). | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe-core specific] | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | gio/tests/resources.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/gio/tests/resources.c b/gio/tests/resources.c | ||
16 | index 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 @@ | |||
1 | From 502984fe340a76c92e2c04235f43fdcb47728806 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Oct 2019 17:46:26 -0700 | ||
4 | Subject: [PATCH] meson: Run atomics test on clang as well | ||
5 | |||
6 | Fixes | ||
7 | ./glib-2.62.1/glib/gatomic.c:675:2: error: G_ATOMIC_LOCK_FREE defined, but incapable of lock-free atomics. | ||
8 | ^ | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | meson.build | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/meson.build b/meson.build | ||
17 | index 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 @@ | |||
1 | From d5e566c45a9ab4d7e51104ab176e6eb5f705f91d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Sat, 16 Sep 2023 22:28:27 +0200 | ||
4 | Subject: [PATCH] meson.build: do not enable pidfd features on native glib | ||
5 | builds | ||
6 | |||
7 | We still use host distros like alma 8 with kernels older than 5.4, | ||
8 | where these features are not implemented. | ||
9 | |||
10 | Upstream-Status: Inappropriate [oe-core specific] | ||
11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
12 | --- | ||
13 | meson.build | 3 ++- | ||
14 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/meson.build b/meson.build | ||
17 | index 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 @@ | |||
1 | From 211927d2caa4a81e1131c2210e1db838104a1fb9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 3 Oct 2017 10:45:55 +0300 | ||
4 | Subject: [PATCH] Do not hardcode python path into various tools | ||
5 | |||
6 | Upstream-Status: Inappropriate [oe-core specific] | ||
7 | Signed-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 | |||
14 | diff --git a/gio/gdbus-2.0/codegen/gdbus-codegen.in b/gio/gdbus-2.0/codegen/gdbus-codegen.in | ||
15 | index 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 | # | ||
24 | diff --git a/gobject/glib-genmarshal.in b/gobject/glib-genmarshal.in | ||
25 | index 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 | |||
34 | diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in | ||
35 | index 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 | ||
3 | growing_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] | ||
2 | have_c99_vsnprintf = true | ||
3 | have_c99_snprintf = true | ||
4 | have_unix98_printf = true | ||
5 | va_val_copy = true | ||
6 | have_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] | ||
2 | have_proc_self_cmdline = true | ||
3 | |||
4 | [binaries] | ||
5 | env = '/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] | ||
2 | have_c99_vsnprintf = false | ||
3 | have_c99_snprintf = false | ||
4 | have_unix98_printf = false | ||
5 | va_val_copy = true | ||
6 | have_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] | ||
2 | have_c99_vsnprintf = true | ||
3 | have_c99_snprintf = true | ||
4 | have_unix98_printf = true | ||
5 | va_val_copy = true | ||
6 | have_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 @@ | |||
1 | From 456bac53f19d3094aa2007054c87d86c9d65b423 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@intel.com> | ||
3 | Date: Fri, 11 Mar 2016 15:35:55 +0000 | ||
4 | Subject: [PATCH] glib-2.0: relocate the GIO module directory for native builds | ||
5 | |||
6 | Instead of hard-coding GIO_MODULE_PATH when glib is built, use dladdr() to | ||
7 | determine where libglib.so is and use that path to calculate GIO_MODULES_DIR. | ||
8 | |||
9 | This solves relocation problems with GIOModule for native builds of glib. | ||
10 | |||
11 | Upstream-Status: Inappropriate | ||
12 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
13 | |||
14 | Port patch to 2.48 | ||
15 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
16 | --- | ||
17 | gio/giomodule.c | 7 ------- | ||
18 | 1 file changed, 7 deletions(-) | ||
19 | |||
20 | diff --git a/gio/giomodule.c b/gio/giomodule.c | ||
21 | index 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 | |||
3 | set -eux | ||
4 | if id -u glib2-test; then | ||
5 | userdel glib2-test | ||
6 | fi | ||
7 | useradd glib2-test | ||
8 | cd /tmp | ||
9 | su glib2-test -c 'G_TEST_TMPDIR=`readlink -f /tmp` gnome-desktop-testing-runner glib' | ||
10 | userdel 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 @@ | |||
1 | From 51bfcab0b60bd57f4d3463c479fdf47e645cd6fe Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@arm.com> | ||
3 | Date: Thu, 28 Mar 2024 16:27:09 +0000 | ||
4 | Subject: [PATCH] Skip /timeout/rounding test | ||
5 | |||
6 | This test is sensitive to load because it expects certain timeout operations | ||
7 | to succeed in specific time periods. Whilst these timeouts are fairly large, | ||
8 | they're still exceeded inside a qemu on a loaded system. | ||
9 | |||
10 | https://bugzilla.yoctoproject.org/show_bug.cgi?id=14464 | ||
11 | |||
12 | Upstream-Status: Inappropriate [OE-specific] | ||
13 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
14 | --- | ||
15 | glib/tests/timeout.c | 1 - | ||
16 | 1 file changed, 1 deletion(-) | ||
17 | |||
18 | diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c | ||
19 | index 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 | } | ||