diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-05-09 19:23:21 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-22 10:53:47 +0100 |
commit | e805f3c6124e56e90176aace7b989dff9ae2c095 (patch) | |
tree | 44ccd9f2dd3c8c64c044f952fd6638e2f4ecc525 /meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch | |
parent | 35e5d29a7d654fc79bdb898d0f1fb277270dbfd5 (diff) | |
download | poky-e805f3c6124e56e90176aace7b989dff9ae2c095.tar.gz |
glib-2.0: upgrade 2.74.6 -> 2.76.2
Drop backports.
Refactor relocate-modules.patch; upstream has implemented the same
logic, but made it os x only - we can simply drop those ifdef guards:
https://gitlab.gnome.org/GNOME/glib/-/commit/af83c6571e47d06468b8162dd29ad57bcf4967a8
(From OE-Core rev: 5627068ab335229cef6fb295f995e8547d591944)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch | 47 |
1 files changed, 21 insertions, 26 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch b/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch index ae6881b61e..3dba599fc0 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch +++ b/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a3cdf17643bf33d532ec269913974195e136b7fc Mon Sep 17 00:00:00 2001 | 1 | From 38e401969a2ff8269919cbeacec733a67f041735 Mon Sep 17 00:00:00 2001 |
2 | From: Ross Burton <ross.burton@intel.com> | 2 | From: Ross Burton <ross.burton@intel.com> |
3 | Date: Fri, 11 Mar 2016 15:35:55 +0000 | 3 | Date: Fri, 11 Mar 2016 15:35:55 +0000 |
4 | Subject: [PATCH] glib-2.0: relocate the GIO module directory for native builds | 4 | Subject: [PATCH] glib-2.0: relocate the GIO module directory for native builds |
@@ -13,38 +13,33 @@ Signed-off-by: Ross Burton <ross.burton@intel.com> | |||
13 | 13 | ||
14 | Port patch to 2.48 | 14 | Port patch to 2.48 |
15 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | 15 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
16 | |||
17 | --- | 16 | --- |
18 | gio/giomodule.c | 12 +++++++++++- | 17 | gio/giomodule.c | 5 ----- |
19 | 1 file changed, 11 insertions(+), 1 deletion(-) | 18 | 1 file changed, 5 deletions(-) |
20 | 19 | ||
21 | diff --git a/gio/giomodule.c b/gio/giomodule.c | 20 | diff --git a/gio/giomodule.c b/gio/giomodule.c |
22 | index f5dbb45..c926e77 100644 | 21 | index 11ce7d8..cc27ecd 100644 |
23 | --- a/gio/giomodule.c | 22 | --- a/gio/giomodule.c |
24 | +++ b/gio/giomodule.c | 23 | +++ b/gio/giomodule.c |
25 | @@ -58,6 +58,8 @@ | 24 | @@ -1271,9 +1271,6 @@ get_gio_module_dir (void) |
26 | #ifdef G_OS_WIN32 | ||
27 | #include "gregistrysettingsbackend.h" | ||
28 | #include "giowin32-priv.h" | ||
29 | +#else | ||
30 | +#include <dlfcn.h> | ||
31 | #endif | ||
32 | #include <glib/gstdio.h> | ||
33 | |||
34 | @@ -1261,7 +1263,15 @@ get_gio_module_dir (void) | ||
35 | NULL); | ||
36 | g_free (install_dir); | 25 | g_free (install_dir); |
37 | #else | 26 | #else |
38 | - module_dir = g_strdup (GIO_MODULE_DIR); | 27 | module_dir = g_strdup (GIO_MODULE_DIR); |
39 | + Dl_info info; | 28 | -#ifdef __APPLE__ |
40 | + | 29 | -#include "TargetConditionals.h" |
41 | + if (dladdr (g_io_module_new, &info)) { | 30 | -#if TARGET_OS_OSX |
42 | + char *libdir = g_path_get_dirname (info.dli_fname); | 31 | #include <dlfcn.h> |
43 | + module_dir = g_build_filename (libdir, "gio", "modules", NULL); | 32 | { |
44 | + g_free (libdir); | 33 | g_autofree gchar *path = NULL; |
45 | + } else { | 34 | @@ -1292,8 +1289,6 @@ get_gio_module_dir (void) |
46 | + module_dir = g_strdup (GIO_MODULE_DIR); | 35 | } |
47 | + } | 36 | } |
37 | } | ||
38 | -#endif | ||
39 | -#endif | ||
48 | #endif | 40 | #endif |
49 | } | 41 | } |
50 | 42 | ||
43 | -- | ||
44 | 2.30.2 | ||
45 | |||