package/libtraceevent: fix build failure while building with static libs
PATCH 1/4 package/libtraceevent: fix build failure while building with static libs
While building with static libs we lack libdl library, but it is mandatory for libtraceevent, so let's build this package only with shared libraries.
--- package/libtraceevent/Config.in | 1 + 1 file changed, 1 insertion(+)
package/libtraceevent/Config.in +1 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBTRACEEVENT bool "libtraceevent" + depends on !BR2_STATIC_LIBS # dlopen() help libtraceevent is a library that interfaces with the ftrace subsystem in the linux kernel.
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/4 package/libtraceevent: fix build failure due to missing -ldl
Add local patch pending upstream that adds libdl to libtraceevent dependencies to avoid build failure due to missing libdl in the linker library list.
--- ...eevent-add-libdl-dependency-to-meson.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/libtraceevent/0001-libtraceevent-add-libdl-dependency-to-meson.patch
package/libtraceevent/0001-libtraceevent-add-libdl-dependency-to-meson.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 9dc36e74067e96b664e5297be51f29c3d26695dc Mon Sep 17 00:00:00 2001 +From: Giulio Benetti <[email protected]> +Date: Mon, 8 Jan 2024 00:05:55 +0100 +Subject: [PATCH] libtraceevent: add libdl dependency to meson + +Libdl is mandatory since it's used by plugins, so let's add it to meson to +prevent build failure where -ldl is not implicit. + +Upstream: https://patchwork.kernel.org/project/linux-trace-devel/patch/[email protected]/ + +Signed-off-by: Giulio Benetti <[email protected]> +--- + src/meson.build | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/meson.build b/src/meson.build +index 20b1b7b..cd48de7 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -13,10 +13,14 @@ sources= [ + 'trace-seq.c', + ] + ++cc = meson.get_compiler('c') ++dl_dep = cc.find_library('dl') ++ + libtraceevent = library( + 'traceevent', + sources, + version: library_version, ++ dependencies: [dl_dep], + include_directories: [incdir], + install: true) + +-- +2.34.1 +
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/4 package/libtracefs: disable samples
In reply to Giulio BenettiLibtracefs samples require pthread, but we don't need samples to be built, so let's add local patch pending upstream that allow us to disable samples building by adding 'samples' variable and let's set it to false in LIBTRACEFS_CONF_OPTS.
--- ...racefs-add-option-to-disable-samples.patch | 45 +++++++++++++++++++ package/libtracefs/libtracefs.mk | 3 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 package/libtracefs/0002-libtracefs-add-option-to-disable-samples.patch
package/libtracefs/0002-libtracefs-add-option-to-disable-samples.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 7c7d467431b949e3265c3d499f491880d6284c3a Mon Sep 17 00:00:00 2001 +From: Giulio Benetti <[email protected]> +Date: Mon, 8 Jan 2024 00:01:38 +0100 +Subject: [PATCH] libtracefs: add option to disable samples + +On some Linux environment builder(i.e. Buildroot) we don't want to produce +sample to reduce size usage and dependencies count. So let's add samples +option set to true by default to let the user to override it and not +build samples. + +Upstream: https://patchwork.kernel.org/project/linux-trace-devel/patch/[email protected]/ + +Signed-off-by: Giulio Benetti <[email protected]> +--- + meson.build | 2 ++ + meson_options.txt | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/meson.build b/meson.build +index 57ffe20..f7d3da6 100644 +--- a/meson.build ++++ b/meson.build +@@ -38,7 +38,9 @@ subdir('include') + if cunit_dep.found() + subdir('utest') + endif ++if get_option('samples') + subdir('samples') ++endif + + if get_option('doc') + subdir('Documentation') +diff --git a/meson_options.txt b/meson_options.txt +index 5533a88..8450992 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -16,3 +16,5 @@ option('docbook-suppress-sp', type : 'boolean', value : false, + description : 'docbook suppress sp') + option('doc', type : 'boolean', value: true, + description : 'produce documentation') ++option('samples', type : 'boolean', value: true, ++ description : 'build samples') +-- +2.34.1 +
package/libtracefs/libtracefs.mk +2 -1
@@ -13,6 +13,7 @@ LIBTRACEFS_LICENSE_FILES = LICENSES/GPL-2.0 LICENSES/LGPL-2.1 LIBTRACEFS_DEPENDENCIES = host-bison host-flex host-pkgconf libtraceevent LIBTRACEFS_CONF_OPTS = \ - -Ddoc=false + -Ddoc=false \ + -Dsamples=false $(eval $(meson-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/4 package/trace-cmd: bump to version 3.2
In reply to Giulio Benetti--- package/trace-cmd/trace-cmd.hash | 2 +- package/trace-cmd/trace-cmd.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/trace-cmd/trace-cmd.hash +1 -1
@@ -1,5 +1,5 @@ # Locally computed -sha256 e496d41e599f8ef3c9a74675da05f86be0d8d48d524f0182c73ab98cd16da0b0 trace-cmd-v3.1.7.tar.gz +sha256 62af2c6062eeb434925921bb5936774b0a0e17a5f86671fa2ea2f40704a080cd trace-cmd-v3.2.tar.gz sha256 b1d04b850c1c7471b0f0896f6c6f0fcfc9f07e2dd183a5f5826af269fe9e88fb COPYING sha256 70f297763149e72306919c924e164f83041d5e512868d4c8c1826c171b3e49f9 COPYING.LIB sha256 f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79 LICENSES/GPL-2.0
package/trace-cmd/trace-cmd.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -TRACE_CMD_VERSION = 3.1.7 +TRACE_CMD_VERSION = 3.2 TRACE_CMD_SOURCE = trace-cmd-v$(TRACE_CMD_VERSION).tar.gz TRACE_CMD_SITE = \ https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot