summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2025-03-16 09:07:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-17 17:09:22 +0000
commitba62f7745af6104a649536b1443ba5f1ea782159 (patch)
tree1fe02eb85d36d99708602698ea10092795038d42
parent612f45be10a3bda724a62e5e766246b60a7c467a (diff)
downloadpoky-ba62f7745af6104a649536b1443ba5f1ea782159.tar.gz
glib-2.0: fix build issue with gobject-introspection
- Add backport patch to fix a build issue with gobject-introspection >= 1.83.2 (From OE-Core rev: 153de2c6a87dd0c0abd2ee8c805167ef36b15c9f) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch75
-rw-r--r--meta/recipes-core/glib-2.0/glib.inc1
2 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch b/meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch
new file mode 100644
index 0000000000..28bce02dc3
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch
@@ -0,0 +1,75 @@
1From aee0664e6f1a29e0d5f301979f6d168b08435a61 Mon Sep 17 00:00:00 2001
2From: Philip Withnall <pwithnall@gnome.org>
3Date: Mon, 10 Mar 2025 15:21:15 +0000
4Subject: [PATCH] girparser: Ignore new doc:format element in GIR files
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9As of gobject-introspection 1.83.2, a new `<doc:format name="…"/>`
10element is supported (as a child of `<repository>`) in GIR files.
11
12For the moment, this information isn’t needed in libgirepository — but
13the GIR parser does have to know about the element in order to not throw
14an error claiming it’s invalid.
15
16This is a slightly tweaked version of the code added to
17gobject-introspection.git in commit
189544cd6c962fab2c3203898779948309833e2439 by Corentin Noël
19<corentin.noel@collabora.com>, reformatted slightly to fit in with
20GLib’s style guidelines.
21
22This is backwards compatible and does not require a new
23gobject-introspection version.
24
25Signed-off-by: Philip Withnall <pwithnall@gnome.org>
26
27Fixes: #3634
28
29Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch]
30
31Signed-off-by: Markus Volk <f_l_k@t-online.de>
32---
33 girepository/girparser.c | 12 +++++++++++-
34 1 file changed, 11 insertions(+), 1 deletion(-)
35
36diff --git a/girepository/girparser.c b/girepository/girparser.c
37index 63143718d9..be88d871a4 100644
38--- a/girepository/girparser.c
39+++ b/girepository/girparser.c
40@@ -107,7 +107,8 @@ typedef enum
41 STATE_ALIAS,
42 STATE_TYPE,
43 STATE_ATTRIBUTE,
44- STATE_PASSTHROUGH
45+ STATE_PASSTHROUGH,
46+ STATE_DOC_FORMAT, /* 35 */
47 } ParseState;
48
49 typedef struct _ParseContext ParseContext;
50@@ -3159,6 +3160,11 @@ start_element_handler (GMarkupParseContext *context,
51 state_switch (ctx, STATE_PASSTHROUGH);
52 goto out;
53 }
54+ else if (strcmp ("doc:format", element_name) == 0)
55+ {
56+ state_switch (ctx, STATE_DOC_FORMAT);
57+ goto out;
58+ }
59 break;
60
61 case 'e':
62@@ -3843,6 +3849,10 @@ end_element_handler (GMarkupParseContext *context,
63 state_switch (ctx, ctx->prev_state);
64 }
65 break;
66+ case STATE_DOC_FORMAT:
67+ if (require_end_element (context, ctx, "doc:format", element_name, error))
68+ state_switch (ctx, STATE_REPOSITORY);
69+ break;
70
71 case STATE_PASSTHROUGH:
72 ctx->unknown_depth -= 1;
73--
74GitLab
75
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index ee23c5089d..61e1a3ef17 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -229,6 +229,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
229 file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \ 229 file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \
230 file://0010-Do-not-hardcode-python-path-into-various-tools.patch \ 230 file://0010-Do-not-hardcode-python-path-into-various-tools.patch \
231 file://skip-timeout.patch \ 231 file://skip-timeout.patch \
232 file://aee0664e6f1a29e0d5f301979f6d168b08435a61.patch \
232 " 233 "
233SRC_URI:append:class-native = " file://relocate-modules.patch \ 234SRC_URI:append:class-native = " file://relocate-modules.patch \
234 file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \ 235 file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \