Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902861 - sys-process/htop-3.2.2: USE=hwloc broken
Summary: sys-process/htop-3.2.2: USE=hwloc broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-24 05:22 UTC by Enne Eziarc
Modified: 2024-01-14 03:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enne Eziarc 2023-03-24 05:22:25 UTC
When USE=hwloc is enabled the program behaves as if CPU affinity support is disabled entirely. The "a" key is absent from the help screen and does nothing. With the flag flipped off the vanilla affinity screen works as expected.

src_configure output (and config.log) claims it's enabled:
---
checking pkg-config is at least version 0.9.0... yes
checking for hwloc... yes
[…]
  htop 3.2.2

  platform:                  linux
  os-release file:           /etc/os-release
  (Linux) proc directory:    /proc
  (Linux) openvz:            no
  (Linux) vserver:           no
  (Linux) ancient vserver:   no
  (Linux) delay accounting:  no
  (Linux) sensors:           yes
  (Linux) capabilities:      yes
  unicode:                   yes
  affinity:                  no
  unwind:                    no
  hwloc:                     yes
  debug:                     no
  static:                    no
---
...however digging into the generated config.h says it isn't, which is weird.

I'm not sure which version this started happening in (one of the 3.x series) but it's been this way for at least a few months. It *did* work when the flag was first added.


emerge --info:
---
Portage 3.0.45.2 (python 3.11.2-final-0, default/linux/amd64/17.1, gcc-12, glibc-2.37-r1, 6.2.7-zen-01873-g1b75b785337d x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.2.7-zen-01873-g1b75b785337d-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.37
KiB Mem:    65769332 total,  17691384 free
KiB Swap:   32884664 total,  32882104 free
Timestamp of repository gentoo: Thu, 16 Mar 2023 17:30:01 +0000
Head commit of repository gentoo: 363e05a22674e95a8f580aff3e78f5115f22a4c6
sh dash 0.5.12
ld GNU ld (Gentoo 2.40 p3) 2.40.0
ccache version 4.8 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust-bin:         1.67.1-r1::gentoo
dev-util/ccache:           4.8::gentoo
dev-util/cmake:            3.26.0::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r1::gentoo
Repositories:

gentoo
    location: /mnt/nfs/portage/repositories/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24

crossdev
    location: /mnt/nfs/portage/repositories/crossdev
    masters: gentoo flussence
    volatile: True

flussence
    location: /mnt/nfs/portage/repositories/flussence
    masters: gentoo
    volatile: True

steam-overlay
    location: /mnt/nfs/portage/repositories/steam-overlay
    masters: gentoo
    volatile: True

Installed sets: @mine-desktop
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver2 -mtune=znver2     --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtls-dialect=gnu2 -floop-interchange -floop-nest-optimize -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=znver2 -mtune=znver2     --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtls-dialect=gnu2 -floop-interchange -floop-nest-optimize -ftree-vectorize"
DISTDIR="/mnt/nfs/portage/cache/distfiles"
EMERGE_DEFAULT_OPTS="--unordered-display --alert --jobs=2 --load=20 --jobs=24 --load=16"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK=" /usr/share/locale -/usr/share/locale/en_GB /usr/share/man/* -/usr/share/man/man* /usr/share/wine-*/man -/usr/share/wine-*/man/man* /usr/share/gcc-data/*/*/locale /usr/share/binutils-data/*/*/locale /var/db/repos/ /usr/share/git-core/templates/*"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,combreloc,-z,relro,-z,now"
LEX="flex"
MAKEOPTS="-j24 -l24"
PKGDIR="/mnt/nfs/portage/pkgdir/x86_64-pc-linux-gnu"
PORTAGE_COMPRESS=""
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=znver2"
SHELL="/bin/bash"
USE="amd64 bzip2 caps cli crypt dri egl fortran iconv ipv6 libglvnd libtirpc linguas_en_GB multilib ncurses nls nptl opencl openmp pcre readline seccomp split-usr ssl test-rust unicode verify-sig vulkan wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

sys-process/htop-3.2.2::gentoo was built with the following:
USE="caps hwloc lm-sensors unicode -debug -delayacct -llvm-libunwind -openvz -unwind -vserver" ABI_X86="(64)"


sys-apps/hwloc-2.9.0::gentoo was built with the following:
USE="cpuid pci -X -cairo -cuda -debug -nvml -static-libs -svg -udev -xml" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="-nvidia"
Comment 2 Larry the Git Cow gentoo-dev 2024-01-14 03:40:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=749ac0676681c2688522ea4b4bd5c4cac3c51fda

commit 749ac0676681c2688522ea4b4bd5c4cac3c51fda
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-14 03:30:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-14 03:31:51 +0000

    sys-process/htop: add 3.3.0
    
    Closes: https://bugs.gentoo.org/902861
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-process/htop/Manifest                          |   1 +
 .../files/htop-3.3.0-display-running-tasks.patch   |  24 +++++
 sys-process/htop/htop-3.3.0.ebuild                 | 109 +++++++++++++++++++++
 3 files changed, 134 insertions(+)