diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2020-08-24 17:17:06 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2020-08-24 17:17:06 -0700 |
commit | 48a84f7589ca2addf1774e0a0851eb53f8cf3b92 (patch) | |
tree | ca06e5e469ed2728f8e4b8ce80d05454e5f3bc8e /dev-util/bpftrace | |
parent | dev-util/bcc-0.16.0: Bump, enable new llvm (bugs #735758, 734962) (diff) | |
download | gentoo-48a84f7589ca2addf1774e0a0851eb53f8cf3b92.tar.gz gentoo-48a84f7589ca2addf1774e0a0851eb53f8cf3b92.tar.bz2 gentoo-48a84f7589ca2addf1774e0a0851eb53f8cf3b92.zip |
dev-util/bpftrace-0.11.0-r1: Revbump, add newer llvm (bug #735760)
Closes: https://bugs.gentoo.org/735760
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-util/bpftrace')
-rw-r--r-- | dev-util/bpftrace/bpftrace-0.11.0-r1.ebuild | 85 | ||||
-rw-r--r-- | dev-util/bpftrace/bpftrace-9999.ebuild | 5 |
2 files changed, 87 insertions, 3 deletions
diff --git a/dev-util/bpftrace/bpftrace-0.11.0-r1.ebuild b/dev-util/bpftrace/bpftrace-0.11.0-r1.ebuild new file mode 100644 index 000000000000..6eeeb6c28d67 --- /dev/null +++ b/dev-util/bpftrace/bpftrace-0.11.0-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs llvm linux-info cmake + +DESCRIPTION="High-level tracing language for eBPF" +HOMEPAGE="https://github.com/iovisor/bpftrace" + +if [[ ${PV} =~ 9{4,} ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/iovisor/${PN}" + BDEPEND="" +else + MY_PV="${PV//_/}" + SRC_URI="https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" + BDEPEND="app-arch/xz-utils " +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="test" + +COMMON_DEPEND=" + dev-util/systemtap + sys-devel/clang:= + dev-libs/libbpf:= + >=sys-devel/llvm-3.7.1:=[llvm_targets_BPF(+)] + sys-devel/clang:= + >=dev-util/bcc-0.13.0:= + virtual/libelf +" +DEPEND="${COMMON_DEPEND} + test? ( dev-cpp/gtest ) +" +RDEPEND="${COMMON_DEPEND}" +BDEPEND+=" + >=dev-util/cmake-3.8 + sys-devel/flex + sys-devel/bison +" + +S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" +QA_DT_NEEDED="/usr/lib.*/libbpftraceresources.so" + +PATCHES=( + "${FILESDIR}/bpftrace-0.11.0-install-libs.patch" + "${FILESDIR}/bpftrace-0.10.0-dont-compress-man.patch" +) + +# lots of fixing needed +RESTRICT="test" + +pkg_pretend() { + local CONFIG_CHECK=" + ~BPF + ~BPF_EVENTS + ~BPF_JIT + ~BPF_SYSCALL + ~FTRACE_SYSCALLS + ~HAVE_EBPF_JIT + " + + check_extra_config +} + +pkg_setup() { + LLVM_MAX_SLOT=11 llvm_pkg_setup +} + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + local -a mycmakeargs + mycmakeargs=( + "-DSTATIC_LINKING:BOOL=OFF" + "-DBUILD_TESTING:BOOL=OFF" + ) + + cmake_src_configure +} diff --git a/dev-util/bpftrace/bpftrace-9999.ebuild b/dev-util/bpftrace/bpftrace-9999.ebuild index eab733354337..6eeeb6c28d67 100644 --- a/dev-util/bpftrace/bpftrace-9999.ebuild +++ b/dev-util/bpftrace/bpftrace-9999.ebuild @@ -28,8 +28,7 @@ COMMON_DEPEND=" sys-devel/clang:= dev-libs/libbpf:= >=sys-devel/llvm-3.7.1:=[llvm_targets_BPF(+)] - <sys-devel/clang-10:= - <sys-devel/llvm-10:=[llvm_targets_BPF(+)] + sys-devel/clang:= >=dev-util/bcc-0.13.0:= virtual/libelf " @@ -68,7 +67,7 @@ pkg_pretend() { } pkg_setup() { - LLVM_MAX_SLOT=9 llvm_pkg_setup + LLVM_MAX_SLOT=11 llvm_pkg_setup } src_prepare() { |