dev-util/0xtools: replace xtop launcher

Closes: https://bugs.gentoo.org/940266
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2024-09-28 17:00:36 +02:00
parent 501f57bed5
commit fcb9d022ea
@@ -52,7 +52,7 @@ src_install() {
# C executables and scripts
exeinto /usr/bin
doexe bin/{cpumhz,vmtop,xcapture,xtop}
doexe bin/{cpumhz,vmtop,xcapture}
doexe bin/{run_xcapture.sh,run_xcpu.sh}
# Python executables
@@ -73,6 +73,10 @@ src_install() {
doins bin/xcapture-bpf.c
make_wrapper xcapture-bpf "/lib/${PN}/xcapture/xcapture-bpf"
# There is a upstream command "xtop" that wraps around "xcapture-bpf"
# but its broken because of dynamic path lookup for "xcapture-bpf".
make_wrapper xtop "xcapture-bpf --xtop --clear-screen"
# Service config
insinto /etc/default
newins xcapture.default xcapture