From 325912fa2bf2c1698247826dd3756e5ffb5ebf68 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Mon, 7 Sep 2026 20:36:08 +0300 Subject: [PATCH] package/strace: fix build with uclibc 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 Signed-off-by: Julien Olivain --- .../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 0000000000..120121a499 --- /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 +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 +--- + 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 + # include + # include ++# include + /* 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 +