diff options
| author | Markus Volk <f_l_k@t-online.de> | 2026-03-28 01:40:25 +0100 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-03-27 19:43:42 -0700 |
| commit | 4297ffcc7899f26edaeba368457fdc28aa9cea48 (patch) | |
| tree | 2d24596e4273bc1492f80ade3ab2c54a9790b3d0 | |
| parent | 99531e79e70ce6ec5823e32c4f1d6f476f553491 (diff) | |
| download | meta-openembedded-4297ffcc7899f26edaeba368457fdc28aa9cea48.tar.gz | |
xdg-dbus-proxy: fix issue with glibc >= 2.43
Add a backport patch to fix an issue with glibc >= 2.43
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
| -rw-r--r-- | meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/99f9b9f68664166badfdfaa7e69efcedf750f1e3.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/99f9b9f68664166badfdfaa7e69efcedf750f1e3.patch b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/99f9b9f68664166badfdfaa7e69efcedf750f1e3.patch new file mode 100644 index 0000000000..5ae21b5989 --- /dev/null +++ b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/99f9b9f68664166badfdfaa7e69efcedf750f1e3.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 99f9b9f68664166badfdfaa7e69efcedf750f1e3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Brahmajit Das <listout@listout.xyz> | ||
| 3 | Date: Wed, 4 Mar 2026 06:27:54 +0530 | ||
| 4 | Subject: [PATCH] dbus-proxy: fix build with glibc >= 2.43 | ||
| 5 | |||
| 6 | memchr() returns const void * when passed const input, but the result | ||
| 7 | was assigned to guchar *. This triggers | ||
| 8 | -Wincompatible-pointer-types-discards-qualifiers when building with | ||
| 9 | clang and -Werror. | ||
| 10 | |||
| 11 | Make the pointer const to preserve const correctness. | ||
| 12 | |||
| 13 | Closes: https://github.com/flatpak/xdg-dbus-proxy/issues/70 | ||
| 14 | Signed-off-by: Brahmajit Das <listout@listout.xyz> | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://github.com/flatpak/xdg-dbus-proxy/commit/99f9b9f68664166badfdfaa7e69efcedf750f1e3] | ||
| 17 | --- | ||
| 18 | dbus-proxy.c | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/dbus-proxy.c b/dbus-proxy.c | ||
| 22 | index 53d5c01..b32df34 100644 | ||
| 23 | --- a/dbus-proxy.c | ||
| 24 | +++ b/dbus-proxy.c | ||
| 25 | @@ -133,7 +133,7 @@ add_args (GBytes *bytes, | ||
| 26 | { | ||
| 27 | gsize data_len, remainder_len; | ||
| 28 | const guchar *data = g_bytes_get_data (bytes, &data_len); | ||
| 29 | - guchar *s; | ||
| 30 | + const guchar *s; | ||
| 31 | const guchar *remainder; | ||
| 32 | |||
| 33 | remainder = data; | ||
diff --git a/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb index 28773163c5..617d29bd84 100644 --- a/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb +++ b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb | |||
| @@ -13,6 +13,7 @@ inherit meson pkgconfig ptest-gnome | |||
| 13 | 13 | ||
| 14 | SRC_URI = " \ | 14 | SRC_URI = " \ |
| 15 | git://github.com/flatpak/xdg-dbus-proxy.git;protocol=https;branch=main \ | 15 | git://github.com/flatpak/xdg-dbus-proxy.git;protocol=https;branch=main \ |
| 16 | file://99f9b9f68664166badfdfaa7e69efcedf750f1e3.patch \ | ||
| 16 | file://run-ptest \ | 17 | file://run-ptest \ |
| 17 | " | 18 | " |
| 18 | 19 | ||
