htop: build with CONFIG_HTOP_LMSENSORS=y
authorJohn Audia <therealgraysky@proton.me>
Thu, 21 Mar 2024 09:48:18 +0000 (05:48 -0400)
committerJohn Audia <therealgraysky@proton.me>
Sun, 31 Mar 2024 13:35:51 +0000 (09:35 -0400)
Default CONFIG_HTOP_LMSENSORS to y so users just need to install
libsensors, no need to build your own, but no need to pay the
size price when you don't use it.  Closes #23700.

Signed-off-by: John Audia <therealgraysky@proton.me>
admin/htop/Makefile

index 1553631068db6f3f1a3912a3d6b53d63a01dc14b..f54ce4d1b9395c4f73341c82b6b694a126fe2a62 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=htop
 PKG_VERSION:=3.3.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/htop-dev/htop/tar.gz/$(PKG_VERSION)?
@@ -48,11 +48,12 @@ define Package/htop/config
        config HTOP_LMSENSORS
                bool "Compile Htop with lm-sensors support"
                depends on PACKAGE_htop
-               default y if TARGET_x86
+               default y
                help
                        Build htop with lm-sensors support.
-                       This doesn't add lm-sensors as dependency,
-                       if present it'll loaded using dlopen().
+                       This increases the binary by approx 5 kB.
+                       Users wanting this functionality need to
+                       install libsensors.
 endef
 
 CONFIGURE_ARGS += \