From ff0f55a90c8bd1527a2fd9bff120a49ebf064951 Mon Sep 17 00:00:00 2001 From: Mukundan Ragavan Date: Thu, 18 Feb 2021 17:50:54 -0500 Subject: [PATCH] Enable lm-sensors support. Patch to enable sensors read on AArch64 platforms. --- htop-enable-acpitz-sensors.patch | 10 ++++++++++ htop.spec | 9 ++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 htop-enable-acpitz-sensors.patch diff --git a/htop-enable-acpitz-sensors.patch b/htop-enable-acpitz-sensors.patch new file mode 100644 index 0000000..4b03739 --- /dev/null +++ b/htop-enable-acpitz-sensors.patch @@ -0,0 +1,10 @@ +--- htop-3.0.5/linux/LibSensors.c 2021-01-11 18:18:21.000000000 +0100 ++++ htop-3.0.5-/linux/LibSensors.c 2021-02-18 14:04:22.284009236 +0100 +@@ -89,6 +89,7 @@ + if (!String_startsWith(buffer, "coretemp") && + !String_startsWith(buffer, "cpu_thermal") && + !String_startsWith(buffer, "k10temp") && ++ !String_startsWith(buffer, "acpitz") && + !String_startsWith(buffer, "zenpower")) + continue; + diff --git a/htop.spec b/htop.spec index 61f5097..4b72735 100644 --- a/htop.spec +++ b/htop.spec @@ -1,10 +1,11 @@ Name: htop Version: 3.0.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Interactive process viewer License: GPLv2+ URL: http://hisham.hm/htop/ Source0: https://github.com/htop-dev/htop/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: htop-enable-acpitz-sensors.patch -p1 BuildRequires: desktop-file-utils BuildRequires: ncurses-devel @@ -16,6 +17,7 @@ BuildRequires: python %endif BuildRequires: libtool BuildRequires: make +BuildRequires: lm_sensors-devel %description htop is an interactive text-mode process viewer for Linux, similar to @@ -35,6 +37,7 @@ autoreconf -vfi --enable-vserver \ --enable-taskstats \ --enable-unicode \ + --with-sensors \ --enable-cgroup %make_build @@ -54,6 +57,10 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %{_mandir}/man1/htop.1* %changelog +* Thu Feb 18 2021 Marcin Juszkiewicz - 3.0.5-3 +- Enable lm-sensors support. +- Patch to enable sensors read on AArch64 platforms. + * Tue Jan 26 2021 Fedora Release Engineering - 3.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild