summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-09-24 12:17:00 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-09-24 12:22:30 +0200
commit2733ec05fac90169287bcbec2e6e669a57629e7d (patch)
treeda1775f86b27dbe079978c3a04fe798b75128439 /dev-util
parentdev-qt/qtwebview: add 6.8.0_rc (diff)
downloadgentoo-2733ec05fac90169287bcbec2e6e669a57629e7d.tar.gz
gentoo-2733ec05fac90169287bcbec2e6e669a57629e7d.tar.bz2
gentoo-2733ec05fac90169287bcbec2e6e669a57629e7d.zip
dev-util/0xtools: fix dependencies
Closes: https://bugs.gentoo.org/939913 Closes: https://bugs.gentoo.org/939914 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/0xtools/0xtools-2.0.3-r1.ebuild (renamed from dev-util/0xtools/0xtools-2.0.3.ebuild)24
1 files 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
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