Skip to contentSkip to conversation

htop: Upgrade 3.3.0 -> 3.4.1

PATCH New Leon Anavi 1 participant 1 message Dec 8, 2025

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 htop: Upgrade 3.3.0 -> 3.4.1

Upgrade to release 3.4.1:

- Support for PMAPI v3 for PCP
- PCP code cleanups
- Proper checks for strchrnul
- Code cleanup in the NetworkIOMeter
- Improved documentation for the --user option
- Display stuck processes on Darwin
- Handle issues when the monotonic clock runs backwards
- Fix builds using native curses on NetBSD

htop now prioritizes pkg-config over ncurses*-config to cross-compile. It depends on libnl and a patch is required to fix:

| configure: error: can not find required header files netlink/attr.h, netlink/handlers.h, netlink/msg.h

---
 .../htop/files/0001-Use-pkg-config.patch      | 47 -----------------
 ...nfigure.ac-Remove-usr-include-libnl3.patch | 50 +++++++++++++++++++
 .../htop/{htop_3.3.0.bb => htop_3.4.1.bb}     |  8 +--
 3 files changed, 55 insertions(+), 50 deletions(-)
 delete mode 100644 meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch
 create mode 100644 meta-oe/recipes-support/htop/files/0001-configure.ac-Remove-usr-include-libnl3.patch
 rename meta-oe/recipes-support/htop/{htop_3.3.0.bb => htop_3.4.1.bb} (86%)
meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch deleted +0 -47
deleted file mode 100644
index 3d113efa15..0000000000
@@ -1,47 +0,0 @@
-From 0d49ee6416e389b9a7ba693588c2eaf129306a01 Mon Sep 17 00:00:00 2001
-From: Paul Barker <[email protected]>
-Date: Sun, 5 Nov 2017 22:07:30 +0000
-Subject: [PATCH] htop: Update to v2.0.2
-
-We need to use pkg-config to find the ncurses library instead of the
-ncurses*-config applications.
-
-Signed-off-by: Paul Barker <[email protected]>
-Signed-off-by: Robert Joslyn <[email protected]>
-
-Upstream-Status: Inappropriate [`ncurses*-config` can be used outside of OpenEmbedded]
-
----
- configure.ac | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index e4df238a..2a31b201 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -391,10 +391,10 @@ AC_ARG_ENABLE([unicode],
-               [],
-               [enable_unicode=yes])
- if test "x$enable_unicode" = xyes; then
--   HTOP_CHECK_SCRIPT([ncursesw6], [waddwstr], [HAVE_LIBNCURSESW], "ncursesw6-config",
--    HTOP_CHECK_SCRIPT([ncursesw], [waddwstr], [HAVE_LIBNCURSESW], "ncursesw6-config",
--     HTOP_CHECK_SCRIPT([ncursesw], [wadd_wch], [HAVE_LIBNCURSESW], "ncursesw5-config",
--      HTOP_CHECK_SCRIPT([ncurses], [wadd_wch], [HAVE_LIBNCURSESW], "ncurses5-config",
-+   HTOP_CHECK_SCRIPT([ncursesw6], [waddwstr], [HAVE_LIBNCURSESW], "pkg-config ncursesw6",
-+    HTOP_CHECK_SCRIPT([ncursesw], [waddwstr], [HAVE_LIBNCURSESW], "pkg-config ncursesw6",
-+     HTOP_CHECK_SCRIPT([ncursesw], [wadd_wch], [HAVE_LIBNCURSESW], "pkg-config ncursesw5",
-+      HTOP_CHECK_SCRIPT([ncurses], [wadd_wch], [HAVE_LIBNCURSESW], "pkg-config ncurses5",
-        HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW],
-         HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW],
-          HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW],
-@@ -416,8 +416,8 @@ if test "x$enable_unicode" = xyes; then
-    # (at this point we already link against a working ncurses library with wide character support)
-    AC_SEARCH_LIBS([keypad], [tinfow tinfo])
- else
--   HTOP_CHECK_SCRIPT([ncurses6], [wnoutrefresh], [HAVE_LIBNCURSES], [ncurses6-config],
--    HTOP_CHECK_SCRIPT([ncurses], [wnoutrefresh], [HAVE_LIBNCURSES], [ncurses5-config],
-+   HTOP_CHECK_SCRIPT([ncurses6], [wnoutrefresh], [HAVE_LIBNCURSES], [pkg-config ncurses6],
-+    HTOP_CHECK_SCRIPT([ncurses], [wnoutrefresh], [HAVE_LIBNCURSES], [pkg-config ncurses5],
-      HTOP_CHECK_LIB([ncurses6],  [doupdate], [HAVE_LIBNCURSES],
-       HTOP_CHECK_LIB([ncurses],  [doupdate], [HAVE_LIBNCURSES],
-        HTOP_CHECK_LIB([curses],  [doupdate], [HAVE_LIBNCURSES],
meta-oe/recipes-support/htop/files/0001-configure.ac-Remove-usr-include-libnl3.patch new file +50 -0

50 lines not on this page · raw message

meta-oe/recipes-support/htop/htop_3.4.1.bb renamed from meta-oe/recipes-support/htop/htop_3.3.0.bb +5 -3
similarity index 86%
rename from meta-oe/recipes-support/htop/htop_3.3.0.bb
rename to meta-oe/recipes-support/htop/htop_3.4.1.bb
index efb89bf3ae..e3f8a7fdb4 100644
@@ -4,16 +4,18 @@ SECTION = "console/utils"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-DEPENDS = "ncurses"
+DEPENDS = "ncurses libnl"
 
 SRC_URI = "git://github.com/htop-dev/htop.git;branch=main;protocol=https \
-           file://0001-Use-pkg-config.patch \
+           file://0001-configure.ac-Remove-usr-include-libnl3.patch \
 "
-SRCREV = "68c970c7ef4a0682760ed570b3d82388ae7ccf54"
+SRCREV = "348c0a6bf4f33571835a0b6a1a0f5deb15132128"
 
 
 inherit autotools pkgconfig
 
+CFLAGS += " -I${STAGING_INCDIR}/libnl3"
+
 PACKAGECONFIG ??= " \
     unicode \
     affinity \
Signature · 1 line
2.47.3