From 19aa6e951960ed17af4fe2575a0eb1ee276263a3 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Thu, 10 Apr 2025 09:41:14 +0200 Subject: bpftrace: add systemd PACKAGECONFIG option This option mostly enables sd_notify support and is useful when running bpftrace as part of a systemd service [1]. Defaulting to the systemd DISTRO_FEATURES seems like a reasonable choice. The official builds also now enable this by default [2]. [1] https://bpftrace.org/docs/latest#_systemd_support [2] https://github.com/bpftrace/bpftrace/pull/3969 Signed-off-by: Erik Schilling --- .../meta-python/recipes-devtools/bpftrace/bpftrace_0.23.0.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.23.0.bb b/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.23.0.bb index 48176a8..12ebbe8 100644 --- a/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.23.0.bb +++ b/dynamic-layers/meta-python/recipes-devtools/bpftrace/bpftrace_0.23.0.bb @@ -26,11 +26,15 @@ SRCREV = "339a2f571505616832379ca216627aceb0e5d0bb" S = "${WORKDIR}/git" -inherit bash-completion cmake ptest +inherit bash-completion cmake ptest pkgconfig -PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" +PACKAGECONFIG ?= " \ + ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)} \ + " PACKAGECONFIG[tests] = "-DBUILD_TESTING=ON,-DBUILD_TESTING=OFF,gtest xxd-native" +PACKAGECONFIG[systemd] = "-DENABLE_SYSTEMD=ON,-DENABLE_SYSTEMD=OFF,systemd" do_install_ptest() { if [ -e ${B}/tests/bpftrace_test ]; then -- cgit v1.2.3-54-g00ecf