diff options
| -rw-r--r-- | meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch | 47 | ||||
| -rw-r--r-- | meta-oe/recipes-support/htop/files/0001-configure.ac-Remove-usr-include-libnl3.patch | 50 | ||||
| -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 @@ | |||
| 1 | From 0d49ee6416e389b9a7ba693588c2eaf129306a01 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Paul Barker <pbarker@toganlabs.com> | ||
| 3 | Date: Sun, 5 Nov 2017 22:07:30 +0000 | ||
| 4 | Subject: [PATCH] htop: Update to v2.0.2 | ||
| 5 | |||
| 6 | We need to use pkg-config to find the ncurses library instead of the | ||
| 7 | ncurses*-config applications. | ||
| 8 | |||
| 9 | Signed-off-by: Paul Barker <pbarker@toganlabs.com> | ||
| 10 | Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> | ||
| 11 | |||
| 12 | Upstream-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 | |||
| 18 | diff --git a/configure.ac b/configure.ac | ||
| 19 | index 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 @@ | |||
| 1 | From 87d66b3b60176197e785670214b0bbc5bedd6552 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Leon Anavi <leon.anavi@konsulko.com> | ||
| 3 | Date: Mon, 8 Dec 2025 11:06:01 +0000 | ||
| 4 | Subject: [PATCH] configure.ac: Remove /usr/include/libnl3 | ||
| 5 | |||
| 6 | Fixes: | ||
| 7 | |||
| 8 | | configure: error: can not find required header files | ||
| 9 | netlink/attr.h, netlink/handlers.h, netlink/msg.h | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [OE-specific] | ||
| 12 | |||
| 13 | Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> | ||
| 14 | --- | ||
| 15 | configure.ac | 6 +++--- | ||
| 16 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/configure.ac b/configure.ac | ||
| 19 | index 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 | -- | ||
| 49 | 2.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" | |||
| 4 | LICENSE = "GPL-2.0-only" | 4 | LICENSE = "GPL-2.0-only" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 6 | 6 | ||
| 7 | DEPENDS = "ncurses" | 7 | DEPENDS = "ncurses libnl" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://github.com/htop-dev/htop.git;branch=main;protocol=https \ | 9 | SRC_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 | " |
| 12 | SRCREV = "68c970c7ef4a0682760ed570b3d82388ae7ccf54" | 12 | SRCREV = "348c0a6bf4f33571835a0b6a1a0f5deb15132128" |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | inherit autotools pkgconfig | 15 | inherit autotools pkgconfig |
| 16 | 16 | ||
| 17 | CFLAGS += " -I${STAGING_INCDIR}/libnl3" | ||
| 18 | |||
| 17 | PACKAGECONFIG ??= " \ | 19 | PACKAGECONFIG ??= " \ |
| 18 | unicode \ | 20 | unicode \ |
| 19 | affinity \ | 21 | affinity \ |
