summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch37
-rw-r--r--meta/recipes-core/dbus/dbus-glib_0.112.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch b/meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..bf3fcd5b86
--- /dev/null
+++ b/meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch
@@ -0,0 +1,37 @@
1From 8c32bc9fa67513f46199bc31498dc1fecbb611bb Mon Sep 17 00:00:00 2001
2From: Simon McVittie <smcv@collabora.com>
3Date: Thu, 13 Mar 2025 14:19:28 +0000
4Subject: [PATCH] dbus-gvalue: Avoid using the reserved word 'bool'
5
6This is reserved in C23 for the equivalent of `<stdbool.h>`.
7
8Bug-Debian: https://bugs.debian.org/1096507
9Signed-off-by: Simon McVittie <smcv@collabora.com>
10Upstream-Status: Backport [https://gitlab.freedesktop.org/dbus/dbus-glib/-/commit/8c32bc9fa67513f46199bc31498dc1fecbb611bb]
11igned-off-by: Martin Jansa <martin.jansa@gmail.com>
12---
13 dbus/dbus-gvalue.c | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16diff --git a/dbus/dbus-gvalue.c b/dbus/dbus-gvalue.c
17index 534e90a..788e360 100644
18--- a/dbus/dbus-gvalue.c
19+++ b/dbus/dbus-gvalue.c
20@@ -545,11 +545,11 @@ demarshal_basic (DBusGValueMarshalCtx *context,
21 {
22 case DBUS_TYPE_BOOLEAN:
23 {
24- dbus_bool_t bool;
25+ dbus_bool_t b;
26 if (!G_VALUE_HOLDS (value, G_TYPE_BOOLEAN))
27 goto invalid_type;
28- dbus_message_iter_get_basic (iter, &bool);
29- g_value_set_boolean (value, bool);
30+ dbus_message_iter_get_basic (iter, &b);
31+ g_value_set_boolean (value, b);
32 return TRUE;
33 }
34 case DBUS_TYPE_BYTE:
35--
36GitLab
37
diff --git a/meta/recipes-core/dbus/dbus-glib_0.112.bb b/meta/recipes-core/dbus/dbus-glib_0.112.bb
index 4acf435694..7312897dd3 100644
--- a/meta/recipes-core/dbus/dbus-glib_0.112.bb
+++ b/meta/recipes-core/dbus/dbus-glib_0.112.bb
@@ -13,6 +13,7 @@ DEPENDS:class-native = "glib-2.0-native dbus-native"
13SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \ 13SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
14 file://no-examples.patch \ 14 file://no-examples.patch \
15 file://test-install-makefile.patch \ 15 file://test-install-makefile.patch \
16 file://fix-build-with-gcc-15.patch \
16" 17"
17SRC_URI[md5sum] = "021e6c8a288df02c227e4aafbf7e7527" 18SRC_URI[md5sum] = "021e6c8a288df02c227e4aafbf7e7527"
18SRC_URI[sha256sum] = "7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a" 19SRC_URI[sha256sum] = "7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a"