summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch47
-rw-r--r--meta-oe/recipes-support/htop/files/0001-configure.ac-Remove-usr-include-libnl3.patch50
-rw-r--r--meta-oe/recipes-support/htop/htop_3.4.1.bb (renamed from meta-oe/recipes-support/htop/htop_3.3.0.bb)8
3 files changed, 55 insertions, 50 deletions
diff --git a/meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch b/meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch
deleted file mode 100644
index 3d113efa15..0000000000
--- a/meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From 0d49ee6416e389b9a7ba693588c2eaf129306a01 Mon Sep 17 00:00:00 2001
2From: Paul Barker <pbarker@toganlabs.com>
3Date: Sun, 5 Nov 2017 22:07:30 +0000
4Subject: [PATCH] htop: Update to v2.0.2
5
6We need to use pkg-config to find the ncurses library instead of the
7ncurses*-config applications.
8
9Signed-off-by: Paul Barker <pbarker@toganlabs.com>
10Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
11
12Upstream-Status: Inappropriate [`ncurses*-config` can be used outside of OpenEmbedded]
13
14---
15 configure.ac | 12 ++++++------
16 1 file changed, 6 insertions(+), 6 deletions(-)
17
18diff --git a/configure.ac b/configure.ac
19index e4df238a..2a31b201 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -391,10 +391,10 @@ AC_ARG_ENABLE([unicode],
23 [],
24 [enable_unicode=yes])
25 if test "x$enable_unicode" = xyes; then
26- HTOP_CHECK_SCRIPT([ncursesw6], [waddwstr], [HAVE_LIBNCURSESW], "ncursesw6-config",
27- HTOP_CHECK_SCRIPT([ncursesw], [waddwstr], [HAVE_LIBNCURSESW], "ncursesw6-config",
28- HTOP_CHECK_SCRIPT([ncursesw], [wadd_wch], [HAVE_LIBNCURSESW], "ncursesw5-config",
29- HTOP_CHECK_SCRIPT([ncurses], [wadd_wch], [HAVE_LIBNCURSESW], "ncurses5-config",
30+ HTOP_CHECK_SCRIPT([ncursesw6], [waddwstr], [HAVE_LIBNCURSESW], "pkg-config ncursesw6",
31+ HTOP_CHECK_SCRIPT([ncursesw], [waddwstr], [HAVE_LIBNCURSESW], "pkg-config ncursesw6",
32+ HTOP_CHECK_SCRIPT([ncursesw], [wadd_wch], [HAVE_LIBNCURSESW], "pkg-config ncursesw5",
33+ HTOP_CHECK_SCRIPT([ncurses], [wadd_wch], [HAVE_LIBNCURSESW], "pkg-config ncurses5",
34 HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW],
35 HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW],
36 HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW],
37@@ -416,8 +416,8 @@ if test "x$enable_unicode" = xyes; then
38 # (at this point we already link against a working ncurses library with wide character support)
39 AC_SEARCH_LIBS([keypad], [tinfow tinfo])
40 else
41- HTOP_CHECK_SCRIPT([ncurses6], [wnoutrefresh], [HAVE_LIBNCURSES], [ncurses6-config],
42- HTOP_CHECK_SCRIPT([ncurses], [wnoutrefresh], [HAVE_LIBNCURSES], [ncurses5-config],
43+ HTOP_CHECK_SCRIPT([ncurses6], [wnoutrefresh], [HAVE_LIBNCURSES], [pkg-config ncurses6],
44+ HTOP_CHECK_SCRIPT([ncurses], [wnoutrefresh], [HAVE_LIBNCURSES], [pkg-config ncurses5],
45 HTOP_CHECK_LIB([ncurses6], [doupdate], [HAVE_LIBNCURSES],
46 HTOP_CHECK_LIB([ncurses], [doupdate], [HAVE_LIBNCURSES],
47 HTOP_CHECK_LIB([curses], [doupdate], [HAVE_LIBNCURSES],
diff --git a/meta-oe/recipes-support/htop/files/0001-configure.ac-Remove-usr-include-libnl3.patch b/meta-oe/recipes-support/htop/files/0001-configure.ac-Remove-usr-include-libnl3.patch
new file mode 100644
index 0000000000..f00f3ac4db
--- /dev/null
+++ b/meta-oe/recipes-support/htop/files/0001-configure.ac-Remove-usr-include-libnl3.patch
@@ -0,0 +1,50 @@
1From 87d66b3b60176197e785670214b0bbc5bedd6552 Mon Sep 17 00:00:00 2001
2From: Leon Anavi <leon.anavi@konsulko.com>
3Date: Mon, 8 Dec 2025 11:06:01 +0000
4Subject: [PATCH] configure.ac: Remove /usr/include/libnl3
5
6Fixes:
7
8| configure: error: can not find required header files
9netlink/attr.h, netlink/handlers.h, netlink/msg.h
10
11Upstream-Status: Inappropriate [OE-specific]
12
13Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
14---
15 configure.ac | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
17
18diff --git a/configure.ac b/configure.ac
19index 9f2f46b3..f3906692 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -980,14 +980,14 @@ case "$enable_delayacct" in
23 enable_delayacct=no
24 else
25 old_CFLAGS="$CFLAGS"
26- CFLAGS="$CFLAGS -I/usr/include/libnl3"
27+ CFLAGS="$CFLAGS"
28 AC_CHECK_HEADERS([netlink/attr.h netlink/handlers.h netlink/msg.h], [enable_delayacct=yes], [enable_delayacct=no])
29 CFLAGS="$old_CFLAGS"
30 fi
31 ;;
32 yes)
33 old_CFLAGS="$CFLAGS"
34- CFLAGS="$CFLAGS -I/usr/include/libnl3"
35+ CFLAGS="$CFLAGS"
36 AC_CHECK_HEADERS([netlink/attr.h netlink/handlers.h netlink/msg.h], [], [AC_MSG_ERROR([can not find required header files netlink/attr.h, netlink/handlers.h, netlink/msg.h])])
37 CFLAGS="$old_CFLAGS"
38 ;;
39@@ -997,7 +997,7 @@ case "$enable_delayacct" in
40 esac
41 if test "$enable_delayacct" = yes; then
42 AC_DEFINE([HAVE_DELAYACCT], [1], [Define if delay accounting support should be enabled.])
43- AM_CFLAGS="$AM_CFLAGS -I/usr/include/libnl3"
44+ AM_CFLAGS="$AM_CFLAGS"
45 fi
46 AM_CONDITIONAL([HAVE_DELAYACCT], [test "$enable_delayacct" = yes])
47
48--
492.47.3
50
diff --git a/meta-oe/recipes-support/htop/htop_3.3.0.bb b/meta-oe/recipes-support/htop/htop_3.4.1.bb
index efb89bf3ae..e3f8a7fdb4 100644
--- a/meta-oe/recipes-support/htop/htop_3.3.0.bb
+++ b/meta-oe/recipes-support/htop/htop_3.4.1.bb
@@ -4,16 +4,18 @@ SECTION = "console/utils"
4LICENSE = "GPL-2.0-only" 4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6 6
7DEPENDS = "ncurses" 7DEPENDS = "ncurses libnl"
8 8
9SRC_URI = "git://github.com/htop-dev/htop.git;branch=main;protocol=https \ 9SRC_URI = "git://github.com/htop-dev/htop.git;branch=main;protocol=https \
10 file://0001-Use-pkg-config.patch \ 10 file://0001-configure.ac-Remove-usr-include-libnl3.patch \
11" 11"
12SRCREV = "68c970c7ef4a0682760ed570b3d82388ae7ccf54" 12SRCREV = "348c0a6bf4f33571835a0b6a1a0f5deb15132128"
13 13
14 14
15inherit autotools pkgconfig 15inherit autotools pkgconfig
16 16
17CFLAGS += " -I${STAGING_INCDIR}/libnl3"
18
17PACKAGECONFIG ??= " \ 19PACKAGECONFIG ??= " \
18 unicode \ 20 unicode \
19 affinity \ 21 affinity \