Skip to content

Commit

Permalink
dev-util/bpftrace: Check kernel configuration
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Patrick McLean <[email protected]>
  • Loading branch information
chutz committed Apr 12, 2019
1 parent e565ccf commit 30a2bbe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dev-util/bpftrace/bpftrace-0.9-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down
8 changes: 7 additions & 1 deletion dev-util/bpftrace/bpftrace-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 30a2bbe

Please sign in to comment.