From 6ee30dfa96c2e776787f73c7eb775156f07b2341 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 20 Jun 2019 11:25:01 -0700 Subject: [PATCH] dev-util/bpftrace: Version bump to 0.9.1_rc Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.67, Repoman-2.3.15 Signed-off-by: Patrick McLean --- dev-util/bpftrace/Manifest | 1 + dev-util/bpftrace/bpftrace-0.9.1_rc.ebuild | 68 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 dev-util/bpftrace/bpftrace-0.9.1_rc.ebuild diff --git a/dev-util/bpftrace/Manifest b/dev-util/bpftrace/Manifest index 248bc7a14820..2654ec88e8f3 100644 --- a/dev-util/bpftrace/Manifest +++ b/dev-util/bpftrace/Manifest @@ -1 +1,2 @@ +DIST bpftrace-0.9.1_rc.tar.gz 702496 BLAKE2B 9dba9d132e30626a2b79ef3c36cbf3813dd20b649a96613458116d9631d16bf743659221d0dc9b231a2904420ef06497bfeffd86c2db652d9d77b6096d71dd08 SHA512 b6c3cd161febde5a156c01ccb852a3f5ddf56b0bdaaa97846dcebc8e573b6bba3ebe20c13dadb05047c9be7441d7b5915e72f4acf8fdf6f7afc40fcbd2facbb1 DIST bpftrace-0.9.tar.gz 668655 BLAKE2B 650756ed7334cb92a64adc36a0bd86fff5c16c53fb94d57cc570dd3cd893d467e754da80c98da36c1ec1d14327fa6025b194d963e4a2d1bec99ebb868555b6bc SHA512 771c412a6b1ee7a7d5bba9e0910633056c6f5523e5d1efd9d7ccb5b9f9b462b7bda8d170c5ed0653f3c1bfd5cc77fce2fd552f12eb8222a8747620b3dc9b49f8 diff --git a/dev-util/bpftrace/bpftrace-0.9.1_rc.ebuild b/dev-util/bpftrace/bpftrace-0.9.1_rc.ebuild new file mode 100644 index 000000000000..5fcb41040f5d --- /dev/null +++ b/dev-util/bpftrace/bpftrace-0.9.1_rc.ebuild @@ -0,0 +1,68 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs linux-info cmake-utils + +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(+)] + >=dev-util/bcc-0.10.0:= + virtual/libelf" +DEPEND="${COMMON_DEPEND} + test? ( dev-cpp/gtest )" +RDEPEND="${COMMON_DEPEND}" +BDEPEND+="dev-util/cmake + sys-devel/flex + sys-devel/bison" + +S="${WORKDIR}/${PN}-${MY_PV}" +QA_DT_NEEDED="/usr/lib.*/libbpftraceresources.so" + +PATCHES=( + "${FILESDIR}/bpftrace-0.10_pre20190614-install-libs.patch" + "${FILESDIR}/bpftrace-mandir.patch" +) + +# lots of fixing needed +RESTRICT="test" + +pkg_pretend() { + local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~BPF_JIT ~BPF_EVENTS" + + check_extra_config +} + +src_prepare() { + cmake-utils_src_prepare +} + +src_configure() { + local -a mycmakeargs + mycmakeargs=( + "-DSTATIC_LINKING:BOOL=OFF" + "-DBUILD_TESTING:BOOL=OFF" + ) + + cmake-utils_src_configure +} -- 2.26.2