commit: 2733ec05fac90169287bcbec2e6e669a57629e7d Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Tue Sep 24 10:17:00 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Tue Sep 24 10:22:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2733ec05
dev-util/0xtools: fix dependencies Closes: https://bugs.gentoo.org/939913 Closes: https://bugs.gentoo.org/939914 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> ...xtools-2.0.3.ebuild => 0xtools-2.0.3-r1.ebuild} | 24 +++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/dev-util/0xtools/0xtools-2.0.3.ebuild b/dev-util/0xtools/0xtools-2.0.3-r1.ebuild similarity index 72% rename from dev-util/0xtools/0xtools-2.0.3.ebuild rename to dev-util/0xtools/0xtools-2.0.3-r1.ebuild index 8f4e383cb9f6..395a7ccf798a 100644 --- a/dev-util/0xtools/0xtools-2.0.3.ebuild +++ b/dev-util/0xtools/0xtools-2.0.3-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..12} ) -inherit python-single-r1 systemd toolchain-funcs +inherit python-single-r1 systemd toolchain-funcs wrapper DESCRIPTION="Always-on profiling for production systems" HOMEPAGE="https://0x.tools/ @@ -26,11 +26,15 @@ LICENSE="GPL-2+" SLOT="0" REQUIRED_USE="${PYTHON_REQUIRED_USE}" -RDEPEND=" +BDEPEND=" ${PYTHON_DEPS} " -BDEPEND=" - ${RDEPEND} +RDEPEND=" + ${BDEPEND} + sys-power/cpupower + $(python_gen_cond_dep ' + dev-util/bcc[${PYTHON_USEDEP}] + ') " DOCS=( CHANGELOG.md README.md ) @@ -43,9 +47,12 @@ src_compile() { } src_install() { + # "cpumhzturbo" requires "turbostat", which is not packaged, + # see bug: https://bugs.gentoo.org/939913 + # C executables and scripts exeinto /usr/bin - doexe bin/{cpumhz,cpumhzturbo,vmtop,xcapture,xtop} + doexe bin/{cpumhz,vmtop,xcapture,xtop} doexe bin/{run_xcapture.sh,run_xcpu.sh} # Python executables @@ -59,6 +66,13 @@ src_install() { systemd_dounit xcapture-restart.service systemd_dounit xcapture-restart.timer + # Setup for "xcapture-bpf". + exeinto "/lib/${PN}/xcapture" + doexe bin/xcapture-bpf + insinto "/lib/${PN}/xcapture" + doins bin/xcapture-bpf.c + make_wrapper xcapture-bpf "/lib/${PN}/xcapture/xcapture-bpf" + # Service config insinto /etc/default newins xcapture.default xcapture
