summaryrefslogtreecommitdiff
path: root/dev-util/bcc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-03 20:27:24 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-03 20:27:24 +0000
commit27e5574c9ed56a2633e25f7fa8f591554266a1b4 (patch)
treeeafae39b8faa55ceb7cc8100d5d03a2dfc9b7842 /dev-util/bcc
parent5aede38e7304fc5c3bd8a2034b25758b15a19fa0 (diff)
gentoo auto-resync : 03:01:2023 - 20:27:24
Diffstat (limited to 'dev-util/bcc')
-rw-r--r--dev-util/bcc/Manifest4
-rw-r--r--dev-util/bcc/bcc-0.24.0-r1.ebuild137
-rw-r--r--dev-util/bcc/bcc-0.25.0.ebuild4
3 files changed, 3 insertions, 142 deletions
diff --git a/dev-util/bcc/Manifest b/dev-util/bcc/Manifest
index f1fb74b5aadf..92c8218b0a64 100644
--- a/dev-util/bcc/Manifest
+++ b/dev-util/bcc/Manifest
@@ -3,8 +3,6 @@ AUX bcc-0.14.0-cmakelists.patch 444 BLAKE2B 3832bdfe3fdb3946889fb614c3f89220dae7
AUX bcc-0.23.0-man-compress.patch 704 BLAKE2B 0eceb68e7d7a09b948d24e98c833031751421c829ba99564499b4e4ded9f0bc505b60a2648de7287185d85d847b65f3b929dd08b3fe9f97b1a7aaf9868750ec4 SHA512 7f7c4f4292ab5334201506ba523adc1c9a8e87cd3656a896cf31fe7f48f25e84bb52552f7d02d12442784a72cf7bcb01dec8a63eb2679aa9d84ff935f94d1863
AUX bcc-0.25.0-cmakelists.patch 358 BLAKE2B 0159aa6e483bd5fab0bc920e8416a94a43809d99a29344b17321bc92890614f99cba1bb8bea02522b890be456904250ef2875d2d88b3f6d55022ad2d4ad2910e SHA512 9521e22cb9318b56601e1d27362903d63fcd8954b7539e6e92db267406d8aed6be8261b62f02d186edb82d548d64578bd99674f93c86e36e1fdd43332dc1552a
AUX bcc-0.9.0-no-luajit-automagic-dep.patch 463 BLAKE2B 286ed298055cbdb22d9c3f3f064c77da685cf75cc8c0ab0cad4d4b473f0eac0b1533ca8eb7e6159108d184d16db7a264b0ea9d30ccdc3d988d88bab28be7310d SHA512 6e5c20de22547410ffa566cb8226a47ee0e8c91183bc5b70eb22637a08fe55cfc96fde169ef3ab8d6e8d7c9e356c35e61b164b3ad675835d3ea8d5239a448979
-DIST bcc-0.24.0.tar.gz 4640711 BLAKE2B 91d333c21c55de6a0ae78f9bb0b003803578525746e63ca5047896c0b2ed03ee880e03a84511470576e888e46559c67a8ebfdfe49d8785d094e2361bb20c5c2e SHA512 951672e3a8e5ad56eedf513477317ec3d3b4cf2d594bbfce20f3d19ddf7ce255e9dcfc69d9b05bb765a16e769c8e42d7c57071ddb86fb32437f527d3d25d19b6
DIST bcc-0.25.0.tar.gz 4984989 BLAKE2B 7547e3db293c1eef617b3bb58231f40a4bd3d58f425666dcb58bf77a69d74b468f07d07e01cdf2be89820318c9f3c213047b2d6dd654e08e6a60a3ecc2573252 SHA512 9f71f6c21d1f66054985562168d5848352f5029383e9c65c907a6f044258bc23df842cc65db20bfaaf33789e69c9b8e7b606a32dc882cbdf093b71768c8b521d
-EBUILD bcc-0.24.0-r1.ebuild 3059 BLAKE2B c3461a5ecefbec5f6fc562c99ff805c82da52f009fe387d03417e36d4b3b9b1375fe113000b24f394586fd6a7a15ec835980cb2f9f480140f591d49b6e0a101e SHA512 4ac0e89395db194ac1ff5a2a18db37e4d18bebc49ed46266d2438622e98e58b86f6d466d440f20d99167b282b543acb1e4973192eba9aa9060469077bcacf6e9
-EBUILD bcc-0.25.0.ebuild 3066 BLAKE2B 16c5271454a4a20a56d2709195bb3049c2bec1692048c7fbd90b2510506645a6b14e8090bec44c395ea8f63b6b3500950ba680ebc93549652874b043de524476 SHA512 777b5b40a28fddec53fd48a3b94b7b8c8fead28e1480eef6068b905666a6ff5e1ddd4d154a0dc2c65f6361d8d642c9b17cf179dd2f1971a10c93dcd4dfb8fb7a
+EBUILD bcc-0.25.0.ebuild 3063 BLAKE2B 2d17d42ab8e990464edc581a9b000b5e84e64a435612cc8fd85cd5c1ee6449a90bc3c0a7b4a9fe8effa471ddbdcb4076c2319905a7c03c63997eaa438854fa82 SHA512 b5002cd2ce4e33fe9ccfce8fa4370e8697860f23a776b2a276c5607902176599084afd67a81b8b655ff4d3c343605d91eb0328a23b1a0c7a102af8051b096a85
MISC metadata.xml 533 BLAKE2B b34e30baea99e82348b7f925ab1b4899ea9e4119d2f24f59e11b48dd8efc61edb3029580af40184acd0dfa180caa7e558ef0303247658cc1b3136940f7a735f6 SHA512 c7d4a450c8fe534fd9ab3aede95ac1192aa62f94858b9e0b1efc1b8982d49b0546e012f2d60c1aefc96155b8641d6ebba059af8fbea798827cc8dfeee15390e9
diff --git a/dev-util/bcc/bcc-0.24.0-r1.ebuild b/dev-util/bcc/bcc-0.24.0-r1.ebuild
deleted file mode 100644
index 86a3d50ede4f..000000000000
--- a/dev-util/bcc/bcc-0.24.0-r1.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LUA_COMPAT=( luajit )
-PYTHON_COMPAT=( python3_{8..10} )
-LLVM_MAX_SLOT=14
-
-inherit cmake linux-info llvm lua-single python-r1 toolchain-funcs
-
-DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
-HOMEPAGE="https://iovisor.github.io/bcc/"
-SRC_URI="https://github.com/iovisor/bcc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE="+lua test"
-
-REQUIRED_USE="
- ${PYTHON_REQUIRED_USE}
- lua? ( ${LUA_REQUIRED_USE} )
-"
-
-# tests need root access
-RESTRICT="test"
-
-RDEPEND="
- >=dev-libs/elfutils-0.166:=
- >=dev-libs/libbpf-0.7.0:=[static-libs(-)]
- sys-kernel/linux-headers
- <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
- <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[llvm_targets_BPF(+)]
- ${PYTHON_DEPS}
- lua? ( ${LUA_DEPS} )
-"
-DEPEND="
- ${RDEPEND}
- test? (
- || (
- net-misc/iputils[arping]
- net-analyzer/arping
- )
- net-analyzer/netperf
- net-misc/iperf:*
- )
-"
-BDEPEND="
- virtual/pkgconfig
-"
-
-PATCHES=(
- "${FILESDIR}/bcc-0.9.0-no-luajit-automagic-dep.patch"
- "${FILESDIR}/bcc-0.14.0-cmakelists.patch"
- "${FILESDIR}/bcc-0.23.0-man-compress.patch"
-)
-
-pkg_pretend() {
- local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
- ~HAVE_EBPF_JIT ~BPF_EVENTS ~DEBUG_INFO ~FUNCTION_TRACER ~KALLSYMS_ALL
- ~KPROBES"
-
- check_extra_config
-}
-
-pkg_setup() {
- llvm_pkg_setup
- python_setup
-}
-
-src_prepare() {
- local bpf_link_path
-
- # this avoids bundling
- bpf_link_path="$(realpath --relative-to="${S}/src/cc/libbpf" /usr/include/bpf)" || die
- ln -sfn "${bpf_link_path}" src/cc/libbpf/include || die
-
- # bug 811288
- local script scriptname
- for script in $(find tools/old -type f -name "*.py" || die); do
- scriptname=$(basename ${script} || die)
- mv ${script} tools/old/old-${scriptname} || die
- done
-
- cmake_src_prepare
-}
-
-python_add_impl() {
- bcc_python_impls+="${EPYTHON};"
-}
-
-src_configure() {
- local bcc_python_impls
- python_foreach_impl python_add_impl
-
- local -a mycmakeargs=(
- -DREVISION=${PV%%_*}
- -DENABLE_LLVM_SHARED=ON
- -DCMAKE_USE_LIBBPF_PACKAGE=ON
- -DLIBBPF_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) --cflags-only-I libbpf | sed 's:-I::g')"
- -DKERNEL_INCLUDE_DIRS="${KERNEL_DIR}"
- -DPYTHON_CMD="${bcc_python_impls%;}"
- -Wno-dev
- )
- if use lua && use lua_single_target_luajit; then
- mycmakeargs+=( -DWITH_LUAJIT=1 )
- fi
-
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
-
- python_replicate_script $(grep -Flr '#!/usr/bin/python' "${ED}/usr/share/bcc/tools")
- python_foreach_impl python_optimize
-
- newenvd "${FILESDIR}"/60bcc.env 60bcc.env
- local -A rename_tools=(
- [trace]=1
- )
-
- local tool name
- for tool in "${ED}"/usr/share/bcc/tools/*; do
- [[ ! -x ${tool} && ! -L ${tool} || -d ${tool} ]] && continue
- name=${tool##*/}
- [[ -n ${rename_tools[${name}]} ]] && name=bcc-${name}
- dosym -r "${tool#${ED}}" /usr/sbin/${name}
- done
-
- docompress /usr/share/${PN}/man
-
- newenvd - "70${P}" <<-_EOF_
- MANPATH="${EPREFIX}/usr/share/${PN}/man"
- _EOF_
-}
diff --git a/dev-util/bcc/bcc-0.25.0.ebuild b/dev-util/bcc/bcc-0.25.0.ebuild
index 3587e236d298..f4e7887f0085 100644
--- a/dev-util/bcc/bcc-0.25.0.ebuild
+++ b/dev-util/bcc/bcc-0.25.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -94,7 +94,7 @@ src_configure() {
local bcc_python_impls
python_foreach_impl python_add_impl
- local -a mycmakeargs=(
+ local mycmakeargs=(
-DREVISION=${PV%%_*}
-DENABLE_LLVM_SHARED=ON
-DCMAKE_USE_LIBBPF_PACKAGE=ON