summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2021-03-24 16:59:01 -0700
committerPatrick McLean <chutzpah@gentoo.org>2021-03-24 16:59:16 -0700
commit8b502ccf32895dc1f9cbecc165221022553d28b0 (patch)
treeb4b9761a1ae261933d1c44b1bbd19c2554ccf183 /dev-util/bpftrace
parentdev-python/PyQt5-sip: add 4.19.25 (diff)
downloadgentoo-8b502ccf32895dc1f9cbecc165221022553d28b0.tar.gz
gentoo-8b502ccf32895dc1f9cbecc165221022553d28b0.tar.bz2
gentoo-8b502ccf32895dc1f9cbecc165221022553d28b0.zip
dev-util/bpftrace-0.11.4-r1: revbump RESTRICT=strip (bug #754648)
Closes: https://bugs.gentoo.org/754648 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-util/bpftrace')
-rw-r--r--dev-util/bpftrace/bpftrace-0.11.4-r1.ebuild89
1 files changed, 89 insertions, 0 deletions
diff --git a/dev-util/bpftrace/bpftrace-0.11.4-r1.ebuild b/dev-util/bpftrace/bpftrace-0.11.4-r1.ebuild
new file mode 100644
index 000000000000..76302016ee27
--- /dev/null
+++ b/dev-util/bpftrace/bpftrace-0.11.4-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 2019-2021 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
+ dev-libs/libbpf:=
+ >=sys-devel/llvm-3.7.1:=[llvm_targets_BPF(+)]
+ <=sys-devel/llvm-12:=[llvm_targets_BPF(+)]
+ <=sys-devel/clang-12:=
+ >=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"
+ "${FILESDIR}/bpftrace-0.11.4-old-kernels.patch"
+)
+
+# lots of fixing needed
+RESTRICT="test"
+
+# https://bugs.gentoo.org/754648
+RESTRICT+=" strip"
+
+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
+}