Skip to contentSkip to conversation

package/strace: disable bpf support for m68k

PATCH New Baruch Siach 2 participants 2 messages May 9, 2019 – May 10, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/strace: disable bpf support for m68k

Mismatch in struct bpf_prog_info fields offset between kernel headers and strace local definition causes build failure. Disable bpf support for m68k until upstream (either strace or the kernel) find a solution.

https://lists.strace.io/pipermail/strace-devel/2019-May/thread.html#8750

Fixes:
http://autobuild.buildroot.net/results/c036b11bf1f2fc39f42661634ef3e03360fb85de/
http://autobuild.buildroot.net/results/f142e4c7f0d512bb872572f5e678230117ab0ad5/
http://autobuild.buildroot.net/results/b74a17cfa7112c026938cacafdd18c6dca285005/

---
v2: Only disable bpf support; add Fixes tag

---
 package/strace/strace.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/strace/strace.mk +6 -0
index 0f705a2fb8ae..f957144160af 100644
@@ -19,6 +19,12 @@ STRACE_CONF_OPTS += st_cv_m32_mpers=no \
 	st_cv_mx32_mpers=no
 endif
 
+# struct bpf_prog_info fields offset mismatch
+# https://lists.strace.io/pipermail/strace-devel/2019-May/thread.html#8750
+ifeq ($(BR2_m68k),y)
+STRACE_CONF_OPTS += ac_cv_header_linux_bpf_h=no
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
 STRACE_DEPENDENCIES += libunwind
 STRACE_CONF_OPTS += --with-libunwind
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/1 package/strace: disable bpf support for m68k

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Mismatch in struct bpf_prog_info fields offset between kernel headers and strace local definition causes build failure. Disable bpf support for m68k until upstream (either strace or the kernel) find a solution.

https://lists.strace.io/pipermail/strace-devel/2019-May/thread.html#8750

Quoted 8 lines

Fixes:
http://autobuild.buildroot.net/results/c036b11bf1f2fc39f42661634ef3e03360fb85de/
http://autobuild.buildroot.net/results/f142e4c7f0d512bb872572f5e678230117ab0ad5/
http://autobuild.buildroot.net/results/b74a17cfa7112c026938cacafdd18c6dca285005/

---
v2: Only disable bpf support; add Fixes tag

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard