commit: 4befc9afad985df29fcce013b05cd0e1748539b1 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> AuthorDate: Thu Dec 2 07:20:34 2021 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Thu Dec 2 07:20:45 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4befc9af
dev-util/bcc: revbump, symlink tools to system path (bug #741466) This is much easier with eapi-dosym.eclass, so let's finally get around to adding this to the ebuild. Closes: https://bugs.gentoo.org/741466 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> dev-util/bcc/{bcc-0.23.0.ebuild => bcc-0.23.0-r1.ebuild} | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev-util/bcc/bcc-0.23.0.ebuild b/dev-util/bcc/bcc-0.23.0-r1.ebuild similarity index 90% rename from dev-util/bcc/bcc-0.23.0.ebuild rename to dev-util/bcc/bcc-0.23.0-r1.ebuild index ed3e78d5e3c5..c9b8d16482cd 100644 --- a/dev-util/bcc/bcc-0.23.0.ebuild +++ b/dev-util/bcc/bcc-0.23.0-r1.ebuild @@ -7,7 +7,7 @@ LUA_COMPAT=( luajit ) PYTHON_COMPAT=( python3_{7..10} ) LLVM_MAX_SLOT=13 -inherit cmake linux-info llvm lua-single python-r1 +inherit cmake eapi8-dosym linux-info llvm lua-single python-r1 DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more" HOMEPAGE="https://iovisor.github.io/bcc/" @@ -111,4 +111,11 @@ src_install() { python_foreach_impl python_optimize newenvd "${FILESDIR}"/60bcc.env 60bcc.env + + local tool name + for tool in "${ED}"/usr/share/bcc/tools/*; do + [[ ! -x ${tool} && ! -L ${tool} || -d ${tool} ]] && continue + name=${tool##*/} + dosym8 -r "${tool#${ED}}" /usr/sbin/${name} + done }