summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/99f9b9f68664166badfdfaa7e69efcedf750f1e3.patch33
-rw-r--r--meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb1
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 @@
1From 99f9b9f68664166badfdfaa7e69efcedf750f1e3 Mon Sep 17 00:00:00 2001
2From: Brahmajit Das <listout@listout.xyz>
3Date: Wed, 4 Mar 2026 06:27:54 +0530
4Subject: [PATCH] dbus-proxy: fix build with glibc >= 2.43
5
6memchr() returns const void * when passed const input, but the result
7was assigned to guchar *. This triggers
8-Wincompatible-pointer-types-discards-qualifiers when building with
9clang and -Werror.
10
11Make the pointer const to preserve const correctness.
12
13Closes: https://github.com/flatpak/xdg-dbus-proxy/issues/70
14Signed-off-by: Brahmajit Das <listout@listout.xyz>
15
16Upstream-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
21diff --git a/dbus-proxy.c b/dbus-proxy.c
22index 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
14SRC_URI = " \ 14SRC_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