diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2025-08-22 00:43:07 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-09-01 08:30:56 -0700 |
| commit | 225f4064f38aaf122e456c94bf9cde90bba1c97e (patch) | |
| tree | ae2b440effd63a4472f4e2479d8c6456666a774a /meta | |
| parent | 41e1323758aef317237a457d897334184e9ea364 (diff) | |
| download | poky-225f4064f38aaf122e456c94bf9cde90bba1c97e.tar.gz | |
dbus-glib: fix build with gcc-15
(From OE-Core rev: 6c546567adc84667fc76d777b02fc78e9c472f51)
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/dbus/dbus-glib/fix-build-with-gcc-15.patch | 37 | ||||
| -rw-r--r-- | meta/recipes-core/dbus/dbus-glib_0.112.bb | 1 |
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 @@ | |||
| 1 | From 8c32bc9fa67513f46199bc31498dc1fecbb611bb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Simon McVittie <smcv@collabora.com> | ||
| 3 | Date: Thu, 13 Mar 2025 14:19:28 +0000 | ||
| 4 | Subject: [PATCH] dbus-gvalue: Avoid using the reserved word 'bool' | ||
| 5 | |||
| 6 | This is reserved in C23 for the equivalent of `<stdbool.h>`. | ||
| 7 | |||
| 8 | Bug-Debian: https://bugs.debian.org/1096507 | ||
| 9 | Signed-off-by: Simon McVittie <smcv@collabora.com> | ||
| 10 | Upstream-Status: Backport [https://gitlab.freedesktop.org/dbus/dbus-glib/-/commit/8c32bc9fa67513f46199bc31498dc1fecbb611bb] | ||
| 11 | igned-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
| 12 | --- | ||
| 13 | dbus/dbus-gvalue.c | 6 +++--- | ||
| 14 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/dbus/dbus-gvalue.c b/dbus/dbus-gvalue.c | ||
| 17 | index 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 | -- | ||
| 36 | GitLab | ||
| 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" | |||
| 13 | SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \ | 13 | SRC_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 | " |
| 17 | SRC_URI[md5sum] = "021e6c8a288df02c227e4aafbf7e7527" | 18 | SRC_URI[md5sum] = "021e6c8a288df02c227e4aafbf7e7527" |
| 18 | SRC_URI[sha256sum] = "7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a" | 19 | SRC_URI[sha256sum] = "7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a" |
