From bfcceaca1d91a4babdd439065cb5d9fcc4578b09 Mon Sep 17 00:00:00 2001 From: Daniel Palmer Date: Tue, 11 Mar 2025 19:11:53 +0900 Subject: [PATCH] package/musl: Add upstream patch to fix building strace on m68k Fixes: http://autobuild.buildroot.net/results/ec3de790a66373f270f731519e2ef51c293ba683/ Currently it's not possible to build strace on m68k when using musl because the version of musl in buildroot doesn't have the m68k specific definitions of POLLWRNORM and POLLWRBAND. This is already fixed upstream so manually apply the patch until the next release. Signed-off-by: Daniel Palmer [Peter: add autobuilder ref and upstream link / s-o-b in patch description] Signed-off-by: Peter Korsgaard (cherry picked from commit 3e88ba41a9b1ab610f07eaa62132036e46ac9bd9) Signed-off-by: Peter Korsgaard --- package/musl/0006-m68k-fix-poll.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/musl/0006-m68k-fix-poll.patch diff --git a/package/musl/0006-m68k-fix-poll.patch b/package/musl/0006-m68k-fix-poll.patch new file mode 100644 index 0000000000..cafee534e4 --- /dev/null +++ b/package/musl/0006-m68k-fix-poll.patch @@ -0,0 +1,26 @@ +From b09e3174a695d1db60b2abc442d29ed3f87f0358 Mon Sep 17 00:00:00 2001 +From: Baruch Siach +Date: Wed, 7 Aug 2024 08:51:03 +0300 +Subject: m68k: fix POLLWRNORM and POLLWRBAND + +As noted in commit f5011c62c3 ("fix POLLWRNORM and POLLWRBAND on mips") +m68k uses a different definition. + +Signed-off-by: Daniel Palmer +Upstream: https://git.musl-libc.org/cgit/musl/commit/?id=b09e3174a695d1db60b2abc442d29ed3f87f0358 +--- + arch/m68k/bits/poll.h | 2 ++ + 1 file changed, 2 insertions(+) + create mode 100644 arch/m68k/bits/poll.h + +diff --git a/arch/m68k/bits/poll.h b/arch/m68k/bits/poll.h +new file mode 100644 +index 00000000..00063f41 +--- /dev/null ++++ b/arch/m68k/bits/poll.h +@@ -0,0 +1,2 @@ ++#define POLLWRNORM POLLOUT ++#define POLLWRBAND 256 +-- +cgit v1.2.1 +