commit:     58e83c9f75f8ce452c0376065d69c482a1ec3d7a
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Fri May  9 13:46:13 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 21:24:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e83c9f

sys-process/htop: sync live

Closes: https://bugs.gentoo.org/846635
Closes: https://bugs.gentoo.org/954884
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Part-of: https://github.com/gentoo/gentoo/pull/41975
Closes: https://github.com/gentoo/gentoo/pull/41975
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/htop/htop-9999.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-process/htop/htop-9999.ebuild 
b/sys-process/htop/htop-9999.ebuild
index f5474a69edef..f1186e3c78ec 100644
--- a/sys-process/htop/htop-9999.ebuild
+++ b/sys-process/htop/htop-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 # We avoid xdg.eclass here because it'll pull in glib, desktop utils on
 # htop which is often used on headless machines. bug #787470
-inherit linux-info optfeature xdg-utils
+inherit fcaps linux-info optfeature xdg-utils
 
 DESCRIPTION="Interactive process viewer"
 HOMEPAGE="https://htop.dev/ https://github.com/htop-dev/htop";
@@ -39,7 +39,7 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
-DOCS=( ChangeLog README )
+DOCS=( ChangeLog README.md )
 
 CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS"
 
@@ -96,6 +96,8 @@ pkg_postinst() {
        xdg_desktop_database_update
        xdg_icon_cache_update
 
+       fcaps cap_sys_ptrace /usr/bin/${PN}
+
        optfeature "Viewing processes accessing certain files" sys-process/lsof
 }
 

Reply via email to