package/strace: use bundled headers
PATCH v2 1/1 package/strace: use bundled headers
There is a bug in the configure script, while we could apply the upstream patching fixing this bug the better solution is to switch to using the bundled headers instead.
The reason for this is that strace needs the headers of the running kernel rather than those that were used to build the toolchain.
The running kernel is often more recent than the one used in the toolchain so we do want to use the more up-to-date headers.
As such we should use the strace bundled headers as they will be the most up-to-date headers.
Details: https://github.com/strace/strace/issues/253
Fixes:
- http://autobuild.buildroot.net/results/867/8675aeca53653d9d792182be61a28ea550dc530d
---
Changes v1 -> v2:
- add more detailed description regarding bundled headers
--- package/strace/strace.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/strace/strace.mk +1 -1
@@ -10,7 +10,7 @@ STRACE_SITE = https://github.com/strace/strace/releases/download/v$(STRACE_VERSI STRACE_LICENSE = LGPL-2.1+ STRACE_LICENSE_FILES = COPYING LGPL-2.1-or-later STRACE_CPE_ID_VENDOR = strace_project -STRACE_CONF_OPTS = --enable-mpers=no +STRACE_CONF_OPTS = --enable-bundled=yes --enable-mpers=no ifeq ($(BR2_PACKAGE_LIBUNWIND),y) STRACE_DEPENDENCIES += libunwind
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · On Thu, 13 Jul 2023 01:57:40 -0600 James Hilliard <[email protected]>…
There is a bug in the configure script, while we could apply the upstream patching fixing this bug the better solution is to switch to using the bundled headers instead.
Quoted 8 lines
The reason for this is that strace needs the headers of the running kernel rather than those that were used to build the toolchain.
The running kernel is often more recent than the one used in the toolchain so we do want to use the more up-to-date headers.
As such we should use the strace bundled headers as they will be the most up-to-date headers.
But then isn't there a chance that the bundled headers are too *recent* compared to the running kernel? What happens in this case?
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines · Thomas Petazzoni via buildroot
Quoted 7 lines · On Thu, 13 Jul 2023 01:57:40 -0600 James Hilliard <[email protected]>…
There is a bug in the configure script, while we could apply the upstream patching fixing this bug the better solution is to switch to using the bundled headers instead.
The reason for this is that strace needs the headers of the running kernel rather than those that were used to build the toolchain.
Quoted 8 lines
Quoted 5 lines
The running kernel is often more recent than the one used in the toolchain so we do want to use the more up-to-date headers.
As such we should use the strace bundled headers as they will be the most up-to-date headers.
But then isn't there a chance that the bundled headers are too *recent* compared to the running kernel? What happens in this case?
It looks like it is fixed:
https://github.com/strace/strace/commit/8f691206e4aa769cc99e264f1c15ae6956789f91
So let's try to upgrade to 6.4
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · Thomas Petazzoni
Quoted 7 lines · On Thu, 13 Jul 2023 01:57:40 -0600 James Hilliard <[email protected]>…
There is a bug in the configure script, while we could apply the upstream patching fixing this bug the better solution is to switch to using the bundled headers instead.
The reason for this is that strace needs the headers of the running kernel rather than those that were used to build the toolchain.
Quoted 8 lines
Quoted 5 lines
The running kernel is often more recent than the one used in the toolchain so we do want to use the more up-to-date headers.
As such we should use the strace bundled headers as they will be the most up-to-date headers.
But then isn't there a chance that the bundled headers are too *recent* compared to the running kernel? What happens in this case?
I presume since strace is tracing syscalls made by other applications that it shouldn't cause issues as it would be the traced application choosing the syscalls to make.
Quoted 6 lines
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 13 lines · James Hilliard
There is a bug in the configure script, while we could apply the upstream patching fixing this bug the better solution is to switch to using the bundled headers instead.
The reason for this is that strace needs the headers of the running kernel rather than those that were used to build the toolchain.
The running kernel is often more recent than the one used in the toolchain so we do want to use the more up-to-date headers.
As such we should use the strace bundled headers as they will be the most up-to-date headers.
Quoted 6 lines
Details: https://github.com/strace/strace/issues/253
Fixes:
- http://autobuild.buildroot.net/results/867/8675aeca53653d9d792182be61a28ea550dc530dSigned-off-by James Hilliard <[email protected]>
As reported in the discussion, the root issue was fixed in strace 6.4, to which we updated a long time ago, so I believe this change is no longer needed. I'll mark this patch as Rejected in patchwork.
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot