From 30a2bbeeff8a3ef3d4b21014f5f8b9aa6bf7e4c7 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 11 Apr 2019 21:28:01 -0700 Subject: [PATCH] dev-util/bpftrace: Check kernel configuration Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Patrick McLean --- dev-util/bpftrace/bpftrace-0.9-r1.ebuild | 8 +++++++- dev-util/bpftrace/bpftrace-9999.ebuild | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dev-util/bpftrace/bpftrace-0.9-r1.ebuild b/dev-util/bpftrace/bpftrace-0.9-r1.ebuild index 393a086df3b7c..68c9292ad9c0d 100644 --- a/dev-util/bpftrace/bpftrace-0.9-r1.ebuild +++ b/dev-util/bpftrace/bpftrace-0.9-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit toolchain-funcs cmake-utils +inherit toolchain-funcs linux-info cmake-utils DESCRIPTION="High-level tracing language for eBPF" HOMEPAGE="https://github.com/iovisor/bpftrace" @@ -45,6 +45,12 @@ PATCHES=( # lots of fixing needed RESTRICT="test" +pkg_pretend() { + local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~BPF_JIT ~EBPF_JIT BPF_EVENTS" + + check_extra_config +} + src_prepare() { cmake-utils_src_prepare } diff --git a/dev-util/bpftrace/bpftrace-9999.ebuild b/dev-util/bpftrace/bpftrace-9999.ebuild index 393a086df3b7c..68c9292ad9c0d 100644 --- a/dev-util/bpftrace/bpftrace-9999.ebuild +++ b/dev-util/bpftrace/bpftrace-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit toolchain-funcs cmake-utils +inherit toolchain-funcs linux-info cmake-utils DESCRIPTION="High-level tracing language for eBPF" HOMEPAGE="https://github.com/iovisor/bpftrace" @@ -45,6 +45,12 @@ PATCHES=( # lots of fixing needed RESTRICT="test" +pkg_pretend() { + local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~BPF_JIT ~EBPF_JIT BPF_EVENTS" + + check_extra_config +} + src_prepare() { cmake-utils_src_prepare }