New commits:
commit 6ed9f962442dd2e6301275816079e92214db48f0
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>
+# slightly modified upstream fix for libfdt
+patch -p1 < "${SPELL_DIRECTORY}/fix-discarded-const.patch" &&
+
# Pass down ARFLAGS to workaround a bug in QEMU's build system
ARFLAGS=rv make
diff --git a/emulators/qemu/DETAILS b/emulators/qemu/DETAILS
index d480b72..b61bdc3 100755
--- a/emulators/qemu/DETAILS
+++ b/emulators/qemu/DETAILS
@@ -1,6 +1,6 @@
# Watch: https://www.qemu.org/download/
SPELL=qemu
- VERSION=10.2.0
+ VERSION=10.2.1
SOURCE=$SPELL-$VERSION.tar.xz
SOURCE2=$SOURCE.sig
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-${VERSION%-*}"
diff --git a/emulators/qemu/HISTORY b/emulators/qemu/HISTORY
index fe5cab4..5a4d2a7 100644
--- a/emulators/qemu/HISTORY
+++ b/emulators/qemu/HISTORY
@@ -1,3 +1,8 @@
+2026-02-14 Pavel Vinogradov <public AT sourcemage.org>
+ * DETAILS: version 10.2.1
+ * BUILD, fix-discarded-const.patch: added slightly modified upstream
fix for
+ internal libfdt
+
2025-12-24 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 10.2.0
diff --git a/emulators/qemu/fix-discarded-const.patch
b/emulators/qemu/fix-discarded-const.patch
new file mode 100644
index 0000000..cc9691d
--- /dev/null
+++ b/emulators/qemu/fix-discarded-const.patch
@@ -0,0 +1,43 @@
+From 9a1c801a1a3c102bf95c5339c9e985b26b823a21 Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <sgallagh AT redhat.com>
+Date: Tue, 6 Jan 2026 14:19:30 -0500
+Subject: Fix discarded const qualifiers
+
+It's unsafe to implicitly discard the const qualifier on a pointer. In
+overlay_fixup_phandle(), this was probably just an oversight, and making
+the "sep" variable a const char * is sufficient to fix it.
+
+In create_node(), however, the "p" variable is directly modifying the
+buffer pointed to by "const char* node_name". To fix this, we need to
+actually make a duplicate of the buffer and operate on that instead.
+
+This introduces a malloc()/free() and an unbounded strdup() into the
+operation, but fdtput isn't a long-running service and the node_name
+argument comes directly from argv, so this shouldn't introduce a
+significant performance impact.
+
+Signed-off-by: Stephen Gallagher <sgallagh AT redhat.com>
+Signed-off-by: David Gibson <david AT gibson.dropbear.id.au>
+---
+ libfdt/fdt_overlay.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+(limited to 'libfdt')
+
+diff --git a/subprojects/dtc/libfdt/fdt_overlay.c
b/subprojects/dtc/libfdt/fdt_overlay.c
+index e6b9eb6..51a3859 100644
+--- a/subprojects/dtc/libfdt/fdt_overlay.c
++++ b/subprojects/dtc/libfdt/fdt_overlay.c
+@@ -407,7 +407,8 @@ static int overlay_fixup_phandle(void *fdt, void *fdto,
int symbols_off,
+ const char *fixup_str = value;
+ uint32_t path_len, name_len;
+ uint32_t fixup_len;
+- char *sep, *endptr;
++ const char *sep;
++ char *endptr;
+ int poffset, ret;
+
+ fixup_end = memchr(value, '\0', len);
+--
+cgit 1.2.3-korg
+
[[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (6ed9f962442dd2e6301275816079e92214db48f0),
Pavel Vinogradov, 02/14/2026