commit:     cd4d45ec421074c7071eb3cef29580adf19e1592
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  5 20:57:44 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep  5 20:58:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd4d45ec

sys-process/htop: disable affinity on Darwin

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/htop/htop-3.1.0_rc1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys-process/htop/htop-3.1.0_rc1.ebuild 
b/sys-process/htop/htop-3.1.0_rc1.ebuild
index 97f75eb53fe..2429313e1be 100644
--- a/sys-process/htop/htop-3.1.0_rc1.ebuild
+++ b/sys-process/htop/htop-3.1.0_rc1.ebuild
@@ -71,6 +71,13 @@ src_configure() {
                        $(use_enable lm-sensors sensors)
                )
        else
+               if use kernel_Darwin ; then
+                       # Upstream default to checking but --enable-affinity
+                       # overrides this. Simplest to just disable on Darwin
+                       # given it works on BSD anyway.
+                       myeconfargs+=( --disable-affinity )
+               fi
+
                myeconfargs+=(
                        --disable-capabilities
                        --disable-delayacct

Reply via email to