commit:     131bb42aecd52d04d1831f91869f98c27f9f0885
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Fri May 23 00:32:06 2025 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Fri May 23 00:33:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=131bb42a

dev-debug/bpftrace: add 0.23.3

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-debug/bpftrace/Manifest               |   2 +
 dev-debug/bpftrace/bpftrace-0.23.3.ebuild | 110 ++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

diff --git a/dev-debug/bpftrace/Manifest b/dev-debug/bpftrace/Manifest
index 375dfeb2c971..5d65895676df 100644
--- a/dev-debug/bpftrace/Manifest
+++ b/dev-debug/bpftrace/Manifest
@@ -8,3 +8,5 @@ DIST bpftrace-0.22.1-man.gh.tar.xz 76024 BLAKE2B 
8e3764b38b62dac271a941fd224155b
 DIST bpftrace-0.22.1.gh.tar.gz 1125892 BLAKE2B 
e694f3da7947458ffc1db755e18dfd6be7664fae5573c04cddbc8db802391e834f241827f2be93a981055b26fb13128f88878d1aa17f50420227c7e8b93bd59d
 SHA512 
3bf00f97750092e66bd94b20b3889f29e932f45ae7f75966f1f364013fb9aeaad837617c0a28402fd9323d62773dd3dab0e9749d8dcb9da9c77093f17fce4d91
 DIST bpftrace-0.23.2-man.tar.xz 76032 BLAKE2B 
867f3936872f6acc6ea4d9f804db29f0391600ebf6cf186427ebf78d21bf3cb22c920910e99cae4dae06284ab2dfe4888f009dba3832d969eff310b144a7bdbd
 SHA512 
21618664c144eb6d71f714db1561cddadf3e9c8f34aa4b7fd4e3b81fd6d9628a3f129e58e9aa3c0c3f930ea05a7f9075b53b53e3f00292389c96c02ddd888779
 DIST bpftrace-0.23.2.tar.gz 1171069 BLAKE2B 
5df0cb8369f1ab66fbdabc0c221403d9d71a788daa6d6f987d4df5fa7390e55933d1452fdd0fde923ee5570f5a89102abcffc2d626a5e9e0f4dcbc33c0dec636
 SHA512 
80d7b91c3f80efcc69bea57a254fec2727050cbd39fce12786f796289f1fed92b7d9be91d5e9f5b348709f41cf3cffdf73d2321fbba2e54ff90648ecd8aab85e
+DIST bpftrace-0.23.3-man.tar.xz 76020 BLAKE2B 
2e7f13b2102d246fc08868a608b600da86a6efac383b3e4d1339eaae17d4a6b3456d7fd6ccfed34f1e3d87835a4758679770b7d8b071dbe0f5e9216454e8622e
 SHA512 
404113eb64d4b0bbdad7bec1014f93ad2d8181af20ba5e3ebef8c7a6c9f03069a5fb3be6e4a0018bcbaa6eed0a5138a09c740b7015faf67dcede45d398ddedf7
+DIST bpftrace-0.23.3.tar.gz 1172439 BLAKE2B 
4a1817ddbb7c40ef6d0dae1ff5247720f83817b9bc4d3f0fe94ab2cf70dab87711840e1b2e1d88bfa31a6016783cc0772900c9df59e2ade0d6b56cdcc88633b3
 SHA512 
fa4fc7d843d4a7c34b4f06e23945eb87b8cdce975a2a58744e5010839fbebd7464fdfdc31a804d35fa7a38b019412c6079016e7f6b1cb322840942dab1abee91

diff --git a/dev-debug/bpftrace/bpftrace-0.23.3.ebuild 
b/dev-debug/bpftrace/bpftrace-0.23.3.ebuild
new file mode 100644
index 000000000000..ad4254a1d26f
--- /dev/null
+++ b/dev-debug/bpftrace/bpftrace-0.23.3.ebuild
@@ -0,0 +1,110 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( {16..20} )
+
+inherit cmake linux-info llvm-r1
+
+DESCRIPTION="High-level tracing language for eBPF"
+HOMEPAGE="https://github.com/bpftrace/bpftrace";
+MY_PV="${PV//_/}"
+# the man page version may trail the release
+#MAN_V="0.22.0"
+SRC_URI="
+       https://github.com/bpftrace/${PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz
+       
https://github.com/bpftrace/${PN}/releases/download/v${MAN_V:-${PV}}/man.tar.xz 
-> ${PN}-${MAN_V:-${PV}}-man.tar.xz
+"
+S="${WORKDIR}/${PN}-${MY_PV:-${PV}}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+KEYWORDS="~amd64 ~arm64"
+IUSE="pcap test systemd"
+
+# lots of fixing needed
+RESTRICT="test"
+
+RDEPEND="
+       >=dev-libs/blazesym_c-0.1.1
+       >=dev-libs/libbpf-1.5:=
+       >=dev-util/bcc-0.25.0:=
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}=
+               llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF(+)]
+       ')
+       sys-process/procps
+       sys-libs/binutils-libs:=
+       virtual/libelf:=
+       systemd? ( sys-apps/systemd:= )
+       pcap? ( net-libs/libpcap:= )
+"
+DEPEND="
+       ${RDEPEND}
+       dev-libs/cereal:=
+       test? ( dev-cpp/gtest )
+"
+BDEPEND="
+       app-arch/xz-utils
+       app-alternatives/lex
+       app-alternatives/yacc
+       dev-libs/cereal
+       test? (
+               app-editors/vim-core
+               dev-util/pahole
+       )
+       virtual/pkgconfig
+"
+
+PATCHES=(
+       "${FILESDIR}/bpftrace-0.11.4-old-kernels.patch"
+       "${FILESDIR}/bpftrace-0.21.0-dont-compress-man.patch"
+)
+
+pkg_pretend() {
+       local CONFIG_CHECK="
+               ~BPF
+               ~BPF_EVENTS
+               ~BPF_JIT
+               ~BPF_SYSCALL
+               ~FTRACE_SYSCALLS
+               ~HAVE_EBPF_JIT
+       "
+
+       check_extra_config
+}
+
+src_prepare() {
+       # 0.23 still has LLDB support, but apparently it's problematic,
+       # deprecated and already gone on master.
+       # Remove the configuration check.
+       sed -i "/find_package(LLDB)/d" CMakeLists.txt || die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               # 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
+               -DENABLE_SYSTEMD:BOOL=$(usex systemd)
+               -DENABLE_SKB_OUTPUT:BOOL=$(usex pcap)
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       doman man/man8/*.?
+       gunzip "${WORKDIR}/man/man8/bpftrace.8.gz" || die
+       doman "${WORKDIR}/man/man8/bpftrace.8"
+}

Reply via email to