* [Buildroot] [PATCH] package/strace: fix build with uclibc
@ 2026-09-07 17:36 Baruch Siach via buildroot
2026-09-07 18:43 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach via buildroot @ 2026-09-07 17:36 UTC (permalink / raw)
To: buildroot; +Cc: Bernd Kuhls
Commit a1e25fe7051 ("package/strace: bump version to 7.2") breaks strace
build with uclibc because of missing header. Add a patch to fix that.
Fixes:
https://autobuild.buildroot.org/results/054705652027d990fb1b418ed4a3c129fb0cdfe3/
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
.../0001-defs.h-fix-build-with-uClibc.patch | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 package/strace/0001-defs.h-fix-build-with-uClibc.patch
diff --git a/package/strace/0001-defs.h-fix-build-with-uClibc.patch b/package/strace/0001-defs.h-fix-build-with-uClibc.patch
new file mode 100644
index 000000000000..120121a4992c
--- /dev/null
+++ b/package/strace/0001-defs.h-fix-build-with-uClibc.patch
@@ -0,0 +1,41 @@
+From 1fd644054b06189871502b3fc02f98d97060125e Mon Sep 17 00:00:00 2001
+Message-ID: <1fd644054b06189871502b3fc02f98d97060125e.1788801670.git.baruch@tkos.co.il>
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Mon, 7 Sep 2026 20:11:51 +0300
+Subject: [PATCH] defs.h: fix build with uClibc
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Commit ee5459531280f ("open: refactor sprint_open_modes64 to support
+multiple xlat tables") added a reference to va_list, but did not add the
+required header. This breaks build with uClibc:
+
+In file included from bjm.c:12:
+defs.h:1060:53: error: unknown type name ‘va_list’
+ 1060 | enum xlat_style, va_list xlats);
+ | ^~~~~~~
+
+Include stdarg.h to fix the build.
+
+Upstream: https://github.com/strace/strace/pull/420
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+ src/defs.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/defs.h b/src/defs.h
+index 91aa32c085fe..3cdae04d19f2 100644
+--- a/src/defs.h
++++ b/src/defs.h
+@@ -24,6 +24,7 @@
+ # include <unistd.h>
+ # include <stdlib.h>
+ # include <stdio.h>
++# include <stdarg.h>
+ /* Open-coding isprint(ch) et al proved more efficient than calling
+ * generalized libc interface. We don't *want* to do non-ASCII anyway.
+ */
+--
+2.53.0
+
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-07 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07 17:36 [Buildroot] [PATCH] package/strace: fix build with uclibc Baruch Siach via buildroot
2026-09-07 18:43 ` Julien Olivain via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox