diff options
Diffstat (limited to 'dev-debug')
-rw-r--r-- | dev-debug/Manifest.gz | bin | 4034 -> 4035 bytes | |||
-rw-r--r-- | dev-debug/bpftrace/Manifest | 5 | ||||
-rw-r--r-- | dev-debug/bpftrace/bpftrace-0.22.0.ebuild | 103 | ||||
-rw-r--r-- | dev-debug/bpftrace/metadata.xml | 1 |
4 files changed, 108 insertions, 1 deletions
diff --git a/dev-debug/Manifest.gz b/dev-debug/Manifest.gz Binary files differindex ce2202ff8a24..9476a3fcb6af 100644 --- a/dev-debug/Manifest.gz +++ b/dev-debug/Manifest.gz diff --git a/dev-debug/bpftrace/Manifest b/dev-debug/bpftrace/Manifest index 226c3c3c4b5a..3f05491b15b0 100644 --- a/dev-debug/bpftrace/Manifest +++ b/dev-debug/bpftrace/Manifest @@ -7,6 +7,9 @@ DIST bpftrace-0.21.2-man.gh.tar.xz 73044 BLAKE2B 3adcd021ae6849933d488ab140cc060 DIST bpftrace-0.21.2.gh.tar.gz 1299415 BLAKE2B 5a5d00c94c188ea4bc5008a88c9c244b0da4ac6f74c2b7083e13b8da9b0c566efc30fd9c7164f562505a4c72e6def1f2be4e360e3cd4556366e9a0aa3e1d3cf8 SHA512 8c64de94da29030dcde0680be90e3c16a5cd965a0066b1abe3c0740f11a78d70f383bf2e0bbe2fce639eddc7d45cb44508cc8a78743c205d7efa45734151e743 DIST bpftrace-0.21.3-man.gh.tar.xz 73044 BLAKE2B 3adcd021ae6849933d488ab140cc0608cd9d1aa9df125f180a67bc85965105ae07f645ecf885ce8b6ac3a340c5f73761e0fab14309f3654b52c9deaeacf521fc SHA512 95b05a04dec92a9c24f84a2603436e0c2f5fc7b08aafa69a2cf0843497f9100a7a104f8d3b4e654e5eb0640f272756d8d86ed4563d40ea592edbcad34af2dfa7 DIST bpftrace-0.21.3.gh.tar.gz 1299643 BLAKE2B 138e767fd074911e643ed7582ed5666736fff6df58162a458d942220594e9e47b5817e999ef91a967c31ae2f84d8dae4499524eba87fa835da0ef539f92b98bd SHA512 8c76b20601f49b08dcbcd947b3da0dcaf59c9e8beb7c56961c7f57bb05aa6130e83b0a664f654978305fa6ceb0507d24a0d446ff1420a1447db5bd52a36fbb75 +DIST bpftrace-0.22.0-man.gh.tar.xz 76028 BLAKE2B ac061b0b380aada39d4cddf442daf1c390d176e81cc5c108033a57e6df83dc08bfb941268b24e8c8fcb8eb45b3c00adffb29966b27897663c1dddd9d554d25a2 SHA512 8e7aa3541b903db4056502d3f2c7b18d80a8212b17b048339d61bcfaddd006599d9e7cfeb65e450487fd15850dd36ed204c00d40dbf476efd2add25863d52ea2 +DIST bpftrace-0.22.0.gh.tar.gz 1125284 BLAKE2B 03e15555e405b2367e96553d975405ab5c25db28aa1685fb05cecd101995ee7b90801baee4a58c462093293c239b8e76dbd0e7a0abbe714a3fa123d30021264e SHA512 fd566191c0d1e2e7e9ebf08c9b983a6db41ab230e2a99bc14b1af5afe2ace3172f8d60bd158d288ac52a254158f8535cd2296d36107d8f2b7149b6045f8f2984 EBUILD bpftrace-0.21.2-r1.ebuild 2021 BLAKE2B 3f4e934bb718337291e690e96b6a3dc6af8408515a5f5ebb438e525a5d97a65f3c85c1112dc935ecc9fdf3a70bc4c166bbc5fdba1c53b5f459d19c9da09ec57f SHA512 ce20ac458db7ff080ccb3cc632251221aaefb365c30ee7d8062ff0cc81d92f5484d1f5d772fb8799e6f1e39e790e426e286787920ea67cb3aaf9e62d2519c3f2 EBUILD bpftrace-0.21.3.ebuild 2137 BLAKE2B 80f22cde7ac04cdcdea55b875128cb2455051a786cdcd30ca8623350c2d56cb80fa24d978b02f547757659ba9adc329ccef7816620fcaa6963f1aaf7b65fa4d0 SHA512 70f6f2a68208982fae78ff36119d5af688b906ff4f316ce158af799d4e4efd3e3e7fb3e88ceda1ca21c067b3ea87c2de91bd419ae13bdf1a929a2306efdb2460 -MISC metadata.xml 826 BLAKE2B aa8946b6ec0b6062a20b2e5fb86f44888208dbb8eaa2878b681f687a18f09c2fcabbdfed3264ea433e38c5c2661d2f29a009c58fa6740be0325d556768e6855f SHA512 d527c0f90afae9457f8ae69a4b49f2a048eafff6b92cc2d95f63a0e69fdb654a2a175ffba705dc8db9e7f1f1a9f5142967674106f6d462e740b3f7cd1dcdcf90 +EBUILD bpftrace-0.22.0.ebuild 2209 BLAKE2B 7ce4b6824b2273965537acea28c41f9e44e45251b031c2c7717606f1bb54d661bc531d28fbb42e3fcf2d21b6d172396fcc06a0f849c4b9cbcfdb98233ec71360 SHA512 6c27fffa02276944177abab57730d553f6e9e2c6a32e654517266736763e057e52afb320790e59388100d414dbe583dd8565efb29f23ae7005f836596d5ff271 +MISC metadata.xml 907 BLAKE2B 28033587d33daeda712ba67d88ba5133d183a2083778d8282a5d942110720b3b325c7a1c4d1e1da44be202c7cd9959928e71158b0f52166ee3bf2c3341093500 SHA512 ff490c8e3be2d6ab9b9c1934adc5518bbde3ac13fab82f7910488da0bd16d667e59de7c26232f996768bab0c207388cba7989995c1408ab63b49d1278ddc88e1 diff --git a/dev-debug/bpftrace/bpftrace-0.22.0.ebuild b/dev-debug/bpftrace/bpftrace-0.22.0.ebuild new file mode 100644 index 000000000000..ec70ac09d7ec --- /dev/null +++ b/dev-debug/bpftrace/bpftrace-0.22.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 2019-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {15..19} ) + +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}.gh.tar.gz + https://github.com/bpftrace/${PN}/releases/download/v${MAN_V:-${PV}}/man.tar.xz -> ${PN}-${MAN_V:-${PV}}-man.gh.tar.xz +" +S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" + +LICENSE="Apache-2.0" +SLOT="0" + +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="lldb pcap test systemd" + +# lots of fixing needed +RESTRICT="test" + +RDEPEND=" + >=dev-libs/libbpf-1.5:= + >=dev-util/bcc-0.25.0:= + $(llvm_gen_dep ' + lldb? ( =llvm-core/lldb-${LLVM_SLOT}* ) + 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 + 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" + "${FILESDIR}/bpftrace-0.21.3-odr.patch" +) + +pkg_pretend() { + local CONFIG_CHECK=" + ~BPF + ~BPF_EVENTS + ~BPF_JIT + ~BPF_SYSCALL + ~FTRACE_SYSCALLS + ~HAVE_EBPF_JIT + " + + check_extra_config +} + +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 + -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" +} diff --git a/dev-debug/bpftrace/metadata.xml b/dev-debug/bpftrace/metadata.xml index 3c97cc2de533..9e59e7b00694 100644 --- a/dev-debug/bpftrace/metadata.xml +++ b/dev-debug/bpftrace/metadata.xml @@ -19,6 +19,7 @@ </maintainer> <use> <flag name="lldb">Parse debug info using<pkg>llvm-core/lldb</pkg></flag> + <flag name="pcap">Enable skb_output using <pkg>net-libs/libpcap</pkg></flag> </use> <upstream> <remote-id type="github">bpftrace/bpftrace</remote-id> |