new file mode 100644
@@ -0,0 +1,30 @@
+From 29fb84735c9c1ce0c3b72d3fc21bdf9744e37f64 Mon Sep 17 00:00:00 2001
+From: Antoine Jacoutot <ajacoutot@openbsd.org>
+Date: Sun, 25 Oct 2026 19:33:56 +0000
+Subject: [PATCH] -Wsign-conversion warning on arm64 OpenBSD in GString tests
+
+glib 2.90.2 passes -Werror=sign-conversion to the string test with clang
+as well (cc.get_argument_syntax() instead of cc.get_id()), so it fails
+to build where char is unsigned (arm, aarch64, riscv):
+
+ string.c:351:36: error: implicit conversion changes signedness: 'int' to 'gchar' (aka 'char') [-Werror,-Wsign-conversion]
+
+Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/29fb84735c9c1ce0c3b72d3fc21bdf9744e37f64]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ glib/tests/string.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/glib/tests/string.c b/glib/tests/string.c
+index 3d922961692..73a125d4116 100644
+--- a/glib/tests/string.c
++++ b/glib/tests/string.c
+@@ -348,7 +348,7 @@ test_string_prepend_c (void)
+ string = g_string_new ("hi pete!");
+
+ for (i = 0; i < 10000; i++)
+- g_string_prepend_c (string, 'a'+(i%26));
++ g_string_prepend_c (string, (char)('a'+(i%26)));
+
+ g_assert((strlen("hi pete!") + 10000) == string->len);
+ g_assert((strlen("hi pete!") + 10000) == strlen(string->str));
@@ -237,6 +237,7 @@ SRC_URI += "file://run-ptest \
file://skip-monotonic-time-similar.patch \
file://0001-tests-gdbus-server-auth-Create-the-long-path-inside-.patch \
file://0001-girepository-Only-prepend-library-path-for-g-ir-scann.patch \
+ file://0001-Wsign-conversion-warning-on-arm64-OpenBSD-in-GString-tests.patch \
"
SRC_URI:append:class-native = " file://relocate-modules.patch \
file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
glib 2.90.2 adds -Werror=sign-conversion to the string and testing tests for every compiler with gcc-style arguments (cc.get_argument_syntax() instead of cc.get_id()), so clang now gets it too. Where char is unsigned (arm, aarch64, riscv) the string test fails to build: glib/tests/string.c:351:36: error: implicit conversion changes signedness: 'int' to 'gchar' (aka 'char') [-Werror,-Wsign-conversion] Backport the upstream fix, which casts the value to char. Reproduced and checked by building both tests with clang -funsigned-char; testing.c already builds. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...ng-on-arm64-OpenBSD-in-GString-tests.patch | 30 +++++++++++++++++++ meta/recipes-core/glib-2.0/glib.inc | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta/recipes-core/glib-2.0/files/0001-Wsign-conversion-warning-on-arm64-OpenBSD-in-GString-tests.patch