summaryrefslogtreecommitdiff
path: root/dev-debug
diff options
context:
space:
mode:
Diffstat (limited to 'dev-debug')
-rw-r--r--dev-debug/Manifest.gzbin4015 -> 4021 bytes
-rw-r--r--dev-debug/bpftrace/Manifest2
-rw-r--r--dev-debug/bpftrace/bpftrace-0.20.4.ebuild99
3 files changed, 101 insertions, 0 deletions
diff --git a/dev-debug/Manifest.gz b/dev-debug/Manifest.gz
index 1be905d34def..64940c98d1ce 100644
--- a/dev-debug/Manifest.gz
+++ b/dev-debug/Manifest.gz
Binary files differ
diff --git a/dev-debug/bpftrace/Manifest b/dev-debug/bpftrace/Manifest
index 3a76f3201129..ab1aca6d08cc 100644
--- a/dev-debug/bpftrace/Manifest
+++ b/dev-debug/bpftrace/Manifest
@@ -4,6 +4,8 @@ AUX bpftrace-0.20.0-install-libs.patch 13542 BLAKE2B 20919556ae2653228282ae099f9
AUX bpftrace-0.20.1-fuzzer.patch 1699 BLAKE2B c41270a45536732920fc39c186ec21889ef398a54e7a1a25323e0c455ab799b3369297b2a65e5b84e36c5fbde64d0c43ebcc98f50770c2b759cc944341a29be7 SHA512 71c41cc5b52174ed5700064a1b9ecff8956f5689761da870d544cc89ce3af2d6d836ab089e24c0a05cf9c909ca785c044f26f5e8bb6a5b365ed4d100af3cc843
DIST bpftrace-0.20.1.gh.tar.gz 1233431 BLAKE2B fe9221a94d58b43e0311f8c841df8421c3fe226a3fe61f2ec5cce5de309acdb69a68834e92a2e622a1750975869cbdaa95a90f9afb83989aa61b56b551fa96e3 SHA512 fdcc2b0d091d4ab428207877626b0fb37f3e0778730e6a6db26be869a086264e1f24186857c47597813aacde98621a66301bcf6c8004f77bdf9ebf180f198ba0
DIST bpftrace-0.20.3.gh.tar.gz 1233923 BLAKE2B c8a280441237d068029bd561a0fa70fd54676625c5bdd7d82a0a219d361cd71a460435ff05c865647d3e5c27d769ec296a47e5e7a3546fc8571af6a16d898300 SHA512 218a1bfac7e1a2b7eef5b0ed3e7403eed4bc932f2aa03c5f4c8924246c09088f5074ab3d54031e582cb4f8e7d0c7df1bb30007c2421c44d2c2506364f0ba5a0e
+DIST bpftrace-0.20.4.gh.tar.gz 1233327 BLAKE2B ef98dbae80285c42b6322c10666345600e594e7043184e7191c77a3158e8c188b7448a580c00b656c1c352601fc1898178d17a7f88f4f1f174187440074832b2 SHA512 a8d5b5bd7d35f9bb308cd7d0ae4eaee899312d3e6540164d3b29eac61159983ea01350311f53b7b6c5023844bde9a2cd3a2d50459116261a536c0e6e52963462
EBUILD bpftrace-0.20.1-r2.ebuild 1930 BLAKE2B d92cc08b503ccacab7525257c867f7f94e1ded719b5cb75d3cebca7ce91f2ef4e39e8c2333a35307630eccea0e0bb1c8adf9be041b46a77a108fa092f7f89aec SHA512 d21d001c3ab2b8ee6e5bc3bc54be9df7f90b487e766d7329d1990e17f84f10e0fafad4fabbc3948f66ec335b82be2667be30b2c207aa50d17cc20dd780013edd
EBUILD bpftrace-0.20.3.ebuild 1931 BLAKE2B c8dd77de8c446c67949deede85d06d1e317f93193daf4f326aa8552f53b9640b393069f019acdb9ec3580748cb56ee96b45e91d5b00fef0a5ef1a30b1ff87fa5 SHA512 bcc3121f2a118dc249d6c9a56b858f277ba50bfa386cccbb9dd323e5ab21b8d8e65948362675034002f313a9b1b43e8a6b912c7b1882cf003eef63068d979bdc
+EBUILD bpftrace-0.20.4.ebuild 1867 BLAKE2B 2b1f8d14a249cb8c7651d548ea4921aa1384f7a0858fbce4f840f0d26c48dcffe488cd574efba7e73b5a80b88715a1a27e69293e8868883bb52c2afe4ffdc0a6 SHA512 e7750823cb0f4d7312126681ff68d83f725279fb8a5ecbb85bb5743d465e24497fea8747a6fb04a97f156466e83b1fc813c131a6a265c30eb11ef6e4411785f4
MISC metadata.xml 385 BLAKE2B 625639d1899cc754d8622934822d467802c908ec386311103b8683c2bec45f1ac28b42704203ee97caacd08c6a96fcc84edde3dcc7b6f3f10f918cf67a656754 SHA512 7e15d98bff6109e41edd085924d9ac6a8bece5ff534e840576ca8c9d338f80e80a77b0ce7f822a8c10a41cb7d58a02a09ae54917136c450a98338124b7b24f9e
diff --git a/dev-debug/bpftrace/bpftrace-0.20.4.ebuild b/dev-debug/bpftrace/bpftrace-0.20.4.ebuild
new file mode 100644
index 000000000000..eb964ba376cc
--- /dev/null
+++ b/dev-debug/bpftrace/bpftrace-0.20.4.ebuild
@@ -0,0 +1,99 @@
+# Copyright 2019-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=17
+
+inherit llvm linux-info cmake
+
+DESCRIPTION="High-level tracing language for eBPF"
+HOMEPAGE="https://github.com/iovisor/bpftrace"
+MY_PV="${PV//_/}"
+SRC_URI="https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV:-${PV}}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+# remove keywords until build works:
+# https://github.com/iovisor/bpftrace/issues/2349
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="test"
+
+# lots of fixing needed
+RESTRICT="test"
+
+RDEPEND="
+ >=dev-libs/libbpf-1.1:=
+ >=dev-util/bcc-0.25.0:=
+ >=sys-devel/llvm-10[llvm_targets_BPF(+)]
+ >=sys-devel/clang-10
+ <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
+"
+
+QA_DT_NEEDED="
+ usr/lib.*/libbpftraceresources.so
+ usr/lib.*/libcxxdemangler_llvm.so
+"
+
+PATCHES=(
+ "${FILESDIR}/bpftrace-0.20.0-install-libs.patch"
+ "${FILESDIR}/bpftrace-0.15.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=(
+ -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
+ # bug 809362
+ dostrip -x /usr/bin/bpftrace
+ doman man/man8/*.?
+}