summaryrefslogtreecommitdiff
path: root/dev-debug/bpftrace
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-07-20 12:29:37 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-07-20 12:29:37 +0100
commitd3ae3ea75073c53ed5f3a4418e76383436bb0f58 (patch)
treee7bdf993ecf567ea3b6d9c8c00797f63ae25ea02 /dev-debug/bpftrace
parentc59df12b8749ab7bbd5a0692072652d4fbb0d2cf (diff)
gentoo auto-resync : 20:07:2024 - 12:29:37
Diffstat (limited to 'dev-debug/bpftrace')
-rw-r--r--dev-debug/bpftrace/Manifest2
-rw-r--r--dev-debug/bpftrace/bpftrace-0.21.2.ebuild95
2 files changed, 97 insertions, 0 deletions
diff --git a/dev-debug/bpftrace/Manifest b/dev-debug/bpftrace/Manifest
index 69f38a23200c..828f6ad84840 100644
--- a/dev-debug/bpftrace/Manifest
+++ b/dev-debug/bpftrace/Manifest
@@ -6,7 +6,9 @@ AUX bpftrace-0.21.0-dont-compress-man.patch 1887 BLAKE2B 7437e270ccfb06e13ce8daa
DIST bpftrace-0.20.1.gh.tar.gz 1233431 BLAKE2B fe9221a94d58b43e0311f8c841df8421c3fe226a3fe61f2ec5cce5de309acdb69a68834e92a2e622a1750975869cbdaa95a90f9afb83989aa61b56b551fa96e3 SHA512 fdcc2b0d091d4ab428207877626b0fb37f3e0778730e6a6db26be869a086264e1f24186857c47597813aacde98621a66301bcf6c8004f77bdf9ebf180f198ba0
DIST bpftrace-0.20.4.gh.tar.gz 1233327 BLAKE2B ef98dbae80285c42b6322c10666345600e594e7043184e7191c77a3158e8c188b7448a580c00b656c1c352601fc1898178d17a7f88f4f1f174187440074832b2 SHA512 a8d5b5bd7d35f9bb308cd7d0ae4eaee899312d3e6540164d3b29eac61159983ea01350311f53b7b6c5023844bde9a2cd3a2d50459116261a536c0e6e52963462
DIST bpftrace-0.21.1.gh.tar.gz 1293781 BLAKE2B 154acfd076bd10d1ea7f81b77f8fe6b94812be7fc82bf798f508fa94a5558b068e1ec4bde7cecf51d1076593032d7674a5c0cde6432be7bb6dc4781656104915 SHA512 db6f5faf65fc2ac55ffbd1799b70941b8a6e4036c7fc2f56fe134f932dcf8a14fdd11a5a8b1d4b20261932d2d1ac18636cc1d7d4b87b31e366a9e53514a84ad3
+DIST bpftrace-0.21.2.gh.tar.gz 1299415 BLAKE2B 5a5d00c94c188ea4bc5008a88c9c244b0da4ac6f74c2b7083e13b8da9b0c566efc30fd9c7164f562505a4c72e6def1f2be4e360e3cd4556366e9a0aa3e1d3cf8 SHA512 8c64de94da29030dcde0680be90e3c16a5cd965a0066b1abe3c0740f11a78d70f383bf2e0bbe2fce639eddc7d45cb44508cc8a78743c205d7efa45734151e743
EBUILD bpftrace-0.20.1-r2.ebuild 1930 BLAKE2B d92cc08b503ccacab7525257c867f7f94e1ded719b5cb75d3cebca7ce91f2ef4e39e8c2333a35307630eccea0e0bb1c8adf9be041b46a77a108fa092f7f89aec SHA512 d21d001c3ab2b8ee6e5bc3bc54be9df7f90b487e766d7329d1990e17f84f10e0fafad4fabbc3948f66ec335b82be2667be30b2c207aa50d17cc20dd780013edd
EBUILD bpftrace-0.20.4.ebuild 1867 BLAKE2B 2b1f8d14a249cb8c7651d548ea4921aa1384f7a0858fbce4f840f0d26c48dcffe488cd574efba7e73b5a80b88715a1a27e69293e8868883bb52c2afe4ffdc0a6 SHA512 e7750823cb0f4d7312126681ff68d83f725279fb8a5ecbb85bb5743d465e24497fea8747a6fb04a97f156466e83b1fc813c131a6a265c30eb11ef6e4411785f4
EBUILD bpftrace-0.21.1.ebuild 1823 BLAKE2B 2363fe318a2672b7d66208c30d12053fbad2af1510fb3d258ba096373edeb188950fb1d1f640e3091bbf2bcebe5d0d5a287b6b2f7906ae5d161ba992a2dba039 SHA512 f237a4f94f8d4e538f10d756331d4afc27fe6b8224a7d61a8c55427d7079635047990a6d88bb09b6931425d41cf5b95e8a2f7aadeba838e242ec720ef3dc4c9e
+EBUILD bpftrace-0.21.2.ebuild 1824 BLAKE2B ac40c774133b6b2912455a9d98b789f3cdf899e226e39c9fef289ce575aed1ca4260e1ef90d7b636eba2a99aa1fee9e49ab8a75036ed2639a2dfdaf3f99321e4 SHA512 c9bcc2f7dbd2d3a1244aa78c8c7a375854e652c7e2447fa8f1830b82028b94771fd335d8dd3b196f000fd907401a1562b8ce2c4afc437a68d48258c2989400e0
MISC metadata.xml 885 BLAKE2B ddc2fa06dbbf2de6ebea4820a2755a7816786d13ae5faed0a30d74d1bd4f8670d94b8b184aa05cc5960c756a72a16d03817bd3db0e3544eafcd2d9932c7d605a SHA512 6bcec6b73627b3b9a44d75d96c1309c8e4e4d5f470c53ed911a901446bb500f20d91ccc135142e2d7b4471325761ec8face64a2bb6a16b1adefe98b23842bdea
diff --git a/dev-debug/bpftrace/bpftrace-0.21.2.ebuild b/dev-debug/bpftrace/bpftrace-0.21.2.ebuild
new file mode 100644
index 000000000000..bf07da70b442
--- /dev/null
+++ b/dev-debug/bpftrace/bpftrace-0.21.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 2019-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=18
+
+inherit llvm linux-info cmake
+
+DESCRIPTION="High-level tracing language for eBPF"
+HOMEPAGE="https://github.com/bpftrace/bpftrace"
+MY_PV="${PV//_/}"
+SRC_URI="https://github.com/bpftrace/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV:-${PV}}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="lldb test"
+
+# lots of fixing needed
+RESTRICT="test"
+
+RDEPEND="
+ >=dev-libs/libbpf-1.1:=
+ >=dev-util/bcc-0.25.0:=
+ lldb? ( >=dev-debug/lldb-15 )
+ >=sys-devel/llvm-15[llvm_targets_BPF(+)]
+ >=sys-devel/clang-15
+ <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
+ <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[llvm_targets_BPF(+)]
+ sys-process/procps
+ sys-libs/binutils-libs:=
+ virtual/libelf:=
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ dev-libs/cereal:=
+ test? ( dev-cpp/gtest )
+"
+BDEPEND="
+ app-arch/xz-utils
+ app-alternatives/lex
+ app-alternatives/yacc
+ test? (
+ app-editors/vim-core
+ dev-util/pahole
+ )
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/bpftrace-0.21.0-dont-compress-man.patch"
+ "${FILESDIR}/bpftrace-0.11.4-old-kernels.patch"
+)
+
+pkg_pretend() {
+ local CONFIG_CHECK="
+ ~BPF
+ ~BPF_EVENTS
+ ~BPF_JIT
+ ~BPF_SYSCALL
+ ~FTRACE_SYSCALLS
+ ~HAVE_EBPF_JIT
+ "
+
+ check_extra_config
+}
+
+pkg_setup() {
+ llvm_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # prevent automagic lldb use
+ $(cmake_use_find_package lldb LLDB)
+ # DO NOT build the internal libs as shared
+ -DBUILD_SHARED_LIBS=OFF
+ # DO dynamically link the bpftrace executable
+ -DSTATIC_LINKING:BOOL=OFF
+ # bug 809362, 754648
+ -DBUILD_TESTING:BOOL=$(usex test)
+ -DBUILD_FUZZ:BOOL=OFF
+ -DENABLE_MAN:BOOL=OFF
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ doman man/man8/*.?
+}