Skip to contentSkip to conversation

package/musl: Add upstream patch to fix building strace on m68k

PATCH In review Daniel Palmer 3 participants 6 messages Mar 11, 2025 – Mar 21, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/musl: Add upstream patch to fix building strace on m68k

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.

---
 package/musl/0006-m68k-fix-poll.patch | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/musl/0006-m68k-fix-poll.patch
package/musl/0006-m68k-fix-poll.patch new file +25 -0
new file mode 100644
index 000000000000..45d5dcede459
@@ -0,0 +1,25 @@
+From b09e3174a695d1db60b2abc442d29ed3f87f0358 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <[email protected]>
+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.
+---
+ arch/m68k/bits/poll.h | 2 ++
+ 1 file changed, 2 insertions(+)
+ create mode 100644 arch/m68k/bits/poll.h
+
+(limited to '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
+
Signature · 6 lines
2.47.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Daniel,

Quoted 6 lines · Daniel Palmer

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.

A link to autobuilder failure is missing:

http://autobuild.buildroot.net/results/ec3de790a66373f270f731519e2ef51c293ba683/

Quoted 12 lines
---
 package/musl/0006-m68k-fix-poll.patch | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/musl/0006-m68k-fix-poll.patch
package/musl/0006-m68k-fix-poll.patch new file +0 -0
new file mode 100644
index 000000000000..45d5dcede459

package/musl/0006-m68k-fix-poll.patch line 7

Quoted 7 lines
package/musl/0006-m68k-fix-poll.patch new file +7 -0
@@ -0,0 +1,25 @@
+From b09e3174a695d1db60b2abc442d29ed3f87f0358 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <[email protected]>
+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.

You should add your sign-off and an upstream tags here.

See the manual:

https://buildroot.org/downloads/manual/manual.html#_format_and_licensing_of_the_package_patches

package/musl/0006-m68k-fix-poll.patch line 13

Quoted 6 lines
package/musl/0006-m68k-fix-poll.patch new file +6 -0
+---
+ arch/m68k/bits/poll.h | 2 ++
+ 1 file changed, 2 insertions(+)
+ create mode 100644 arch/m68k/bits/poll.h
+
+(limited to 'arch/m68k/bits/poll.h')

What is this comment meant to say?

baruch

Quoted 12 lines
package/musl/0006-m68k-fix-poll.patch new file +12 -0
+
+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
+
Signature · 7 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Hi Baruch,

Quoted 8 lines · Baruch Siach

Hi Daniel,

Quoted 4 lines · Daniel Palmer

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.

Quoted 6 lines
Quoted 2 lines

This is already fixed upstream so manually apply the patch until the next release.

A link to autobuilder failure is missing:

http://autobuild.buildroot.net/results/ec3de790a66373f270f731519e2ef51c293ba683/

Interesting. I didn't know this had been spotted by the autobuilder. I just noticed it while building strace to debug another package.

Quoted 22 lines
Quoted 12 lines
---
 package/musl/0006-m68k-fix-poll.patch | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/musl/0006-m68k-fix-poll.patch
package/musl/0006-m68k-fix-poll.patch new file +0 -0
new file mode 100644
index 000000000000..45d5dcede459

package/musl/0006-m68k-fix-poll.patch line 7

Quoted 7 lines
package/musl/0006-m68k-fix-poll.patch new file +7 -0
@@ -0,0 +1,25 @@
+From b09e3174a695d1db60b2abc442d29ed3f87f0358 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <[email protected]>
+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.

You should add your sign-off and an upstream tags here.

Quoted 3 lines

See the manual:

https://buildroot.org/downloads/manual/manual.html#_format_and_licensing_of_the_package_patches

Ok, I'll look into that and resend.

Thanks,

Daniel
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Daniel" == Daniel Palmer <[email protected]> writes:

Hi,

Quoted 7 lines
Quoted 5 lines

You should add your sign-off and an upstream tags here.

See the manual:

https://buildroot.org/downloads/manual/manual.html#_format_and_licensing_of_the_package_patches

Ok, I'll look into that and resend.

I took the liberty to fix these things up myself (including your s-o-b) and applied as I would like to release -rc2 today.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw
In reply to Peter Korsgaard
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

"Peter" == Peter Korsgaard <[email protected]> writes:

"Daniel" == Daniel Palmer <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

You should add your sign-off and an upstream tags here.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

See the manual:

https://buildroot.org/downloads/manual/manual.html#_format_and_licensing_of_the_package_patches

Ok, I'll look into that and resend.

I took the liberty to fix these things up myself (including your s-o-b) and applied as I would like to release -rc2 today.

Committed to 2024.02.x and 2024.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot