package/libtraceevent: needs dynamic library
PATCH 1/1 package/libtraceevent: needs dynamic library
Fix the following build failure raised since the addition of the package in commit 1474f1b34b178defca1d16d18a2446fadda9a12b:
../src/event-plugin.c:10:10: fatal error: dlfcn.h: No such file or directory
10 | #include <dlfcn.h>
| ^~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/7802d1ad00293147edda39683f6d3f614dd48263
--- package/libtraceevent/Config.in | 4 ++++ package/libtracefs/Config.in | 4 ++++ package/linux-tools/Config.in | 4 ++++ 3 files changed, 12 insertions(+)
package/libtraceevent/Config.in +4 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBTRACEEVENT bool "libtraceevent" + depends on !BR2_STATIC_LIBS # dlfcn.h help libtraceevent is a library that interfaces with the ftrace subsystem in the linux kernel.
@@ -9,3 +10,6 @@ config BR2_PACKAGE_LIBTRACEEVENT rtla. https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ + +comment "libtraceevent needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
package/libtracefs/Config.in +4 -0
@@ -1,8 +1,12 @@ config BR2_PACKAGE_LIBTRACEFS bool "libtracefs" + depends on !BR2_STATIC_LIBS # libtraceevent select BR2_PACKAGE_LIBTRACEEVENT help libtracefs is used to easily interface with the ftrace interface through the tracefs virtual filesystem. https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ + +comment "libtracefs needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
package/linux-tools/Config.in +4 -0
@@ -104,6 +104,7 @@ endif config BR2_PACKAGE_LINUX_TOOLS_RTLA bool "rtla" + depends on !BR2_STATIC_LIBS # libtracefs -> libtraceevent select BR2_PACKAGE_LINUX_TOOLS select BR2_PACKAGE_LIBTRACEFS help
@@ -123,6 +124,9 @@ config BR2_PACKAGE_LINUX_TOOLS_RTLA not available in Buildroot, so only rtla in kernels 5.19 onwards is actually supported in Buildroot. +comment "rtla needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS + config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS bool"selftests" depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedFabrice, All,
On 2024-01-08 21:43 +0100, Fabrice Fontaine spake thusly:
Quoted 5 lines
Fix the following build failure raised since the addition of the package in commit
1474f1b34b178defca1d16d18a2446fadda9a12b:
../src/event-plugin.c:10:10: fatal error:dlfcn.h: No such file or directory
10 | #include <dlfcn.h>
Quoted 7 lines
| ^~~~~~~~~Fixes:
- http://autobuild.buildroot.org/results/7802d1ad00293147edda39683f6d3f614dd48263Signed-off-by Fabrice Fontaine <[email protected]>---
[--SNIP--]
package/linux-tools/Config.in endif · line 107
Quoted 9 lines
package/linux-tools/Config.in +1
-0@@ -104,6 +104,7 @@ endif config BR2_PACKAGE_LINUX_TOOLS_RTLA bool "rtla" + depends on !BR2_STATIC_LIBS # libtracefs -> libtraceevent
In the past, we used to indeed list the full dependency chain that caused the inherited dependency.
However, there never a good reasoning behind that (unwritten) rule.
Recently, we've started to drop the full chain to only keep the first-level inheritance.
Indeed, if one of the package further in the dependency chain loses that dependency, but the first-level package keeps it, it's going to be tricky to track and update all those comments.
So, I believe it is better to just list the first-level inheritance.
I think the new reasoning is more sound than the previous one. That's still an unwritten rule, though... :-(
Applied to master with this little fix, thanks.
Regards,
Yann E. MORIN.
Quoted 20 lines
package/linux-tools/Config.in +3
-0select BR2_PACKAGE_LINUX_TOOLS select BR2_PACKAGE_LIBTRACEFS help@@ -123,6 +124,9 @@ config BR2_PACKAGE_LINUX_TOOLS_RTLA not available in Buildroot, so only rtla in kernels 5.19 onwards is actually supported in Buildroot. +comment "rtla needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS + config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS bool"selftests" depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bashSignature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot