From 759058bfb832161eb0d21f5c51a49c8361e727bc Mon Sep 17 00:00:00 2001 From: Robert Joslyn Date: Sat, 9 Jan 2021 15:43:00 -0800 Subject: htop: Update to 3.0.4 Along with the update, make a few cleanups to the recipe: * Refresh patch with devtool. * The cgroup and taskstats configure options are no longer provided by upstream. * Add ancient-vserver configure option. Leave it disabled by default since it is rarly used. * Reorder PACKAGECONFIG options to match upstream ./configure --help output to make future updates easier. * Add new sensors PACKAGECONFIG option that adds lmsensors integration. htop will dlopen libsensors. Disable by default to avoid pulling in excess dependencies. * Package new icon. Signed-off-by: Robert Joslyn Signed-off-by: Khem Raj --- .../htop/files/0001-Use-pkg-config.patch | 19 +++++++++---- meta-oe/recipes-support/htop/htop_3.0.1.bb | 31 -------------------- meta-oe/recipes-support/htop/htop_3.0.4.bb | 33 ++++++++++++++++++++++ 3 files changed, 47 insertions(+), 36 deletions(-) delete mode 100644 meta-oe/recipes-support/htop/htop_3.0.1.bb create mode 100644 meta-oe/recipes-support/htop/htop_3.0.4.bb 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 index fc0d86e335..93d6d58573 100644 --- a/meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch +++ b/meta-oe/recipes-support/htop/files/0001-Use-pkg-config.patch @@ -1,3 +1,8 @@ +From 14100c6fc2cce7260ca5ace81094aee0ae40dd07 Mon Sep 17 00:00:00 2001 +From: Paul Barker +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. @@ -7,11 +12,15 @@ Signed-off-by: Robert Joslyn 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 559dc4d..77aea22 100644 +index 115d894..0e0a1eb 100644 --- a/configure.ac +++ b/configure.ac -@@ -185,10 +185,10 @@ m4_define([HTOP_CHECK_LIB], +@@ -205,10 +205,10 @@ AS_VAR_POPDEF([CACHEVAR])dnl AC_ARG_ENABLE(unicode, [AS_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") if test "x$enable_unicode" = xyes; then @@ -26,9 +35,9 @@ index 559dc4d..77aea22 100644 HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW], -@@ -201,8 +201,8 @@ if test "x$enable_unicode" = xyes; then - [AC_CHECK_HEADERS([ncurses/curses.h],[:], - [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) +@@ -225,8 +225,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], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", - HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", diff --git a/meta-oe/recipes-support/htop/htop_3.0.1.bb b/meta-oe/recipes-support/htop/htop_3.0.1.bb deleted file mode 100644 index d677e36c01..0000000000 --- a/meta-oe/recipes-support/htop/htop_3.0.1.bb +++ /dev/null @@ -1,31 +0,0 @@ -SUMMARY = "Interactive process viewer" -HOMEPAGE = "https://htop.dev" -SECTION = "console/utils" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=4099d367cd5e59b6d4fc1ee33accb891" - -DEPENDS = "ncurses" - -SRC_URI = "git://github.com/htop-dev/htop.git \ - file://0001-Use-pkg-config.patch \ - " -SRCREV = "dace850fa6e27b5626115b366059258cfe4d60c9" - -S = "${WORKDIR}/git" - -inherit autotools pkgconfig - -PACKAGECONFIG ??= "cgroup \ - taskstats \ - unicode \ - linux-affinity \ - delayacct" -PACKAGECONFIG[openvz] = "--enable-openvz,--disable-openvz" -PACKAGECONFIG[cgroup] = "--enable-cgroup,--disable-cgroup" -PACKAGECONFIG[vserver] = "--enable-vserver,--disable-vserver" -PACKAGECONFIG[taskstats] = "--enable-taskstats,--disable-taskstats" -PACKAGECONFIG[unicode] = "--enable-unicode,--disable-unicode" -PACKAGECONFIG[linux-affinity] = "--enable-linux-affinity,--disable-linux-affinity" -PACKAGECONFIG[hwloc] = "--enable-hwloc,--disable-hwloc,hwloc" -PACKAGECONFIG[setuid] = "--enable-setuid,--disable-setuid" -PACKAGECONFIG[delayacct] = "--enable-delayacct,--disable-delayacct,libnl" diff --git a/meta-oe/recipes-support/htop/htop_3.0.4.bb b/meta-oe/recipes-support/htop/htop_3.0.4.bb new file mode 100644 index 0000000000..49d53ec98f --- /dev/null +++ b/meta-oe/recipes-support/htop/htop_3.0.4.bb @@ -0,0 +1,33 @@ +SUMMARY = "Interactive process viewer" +HOMEPAGE = "https://htop.dev" +SECTION = "console/utils" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=4099d367cd5e59b6d4fc1ee33accb891" + +DEPENDS = "ncurses" + +SRC_URI = "git://github.com/htop-dev/htop.git \ + file://0001-Use-pkg-config.patch \ + " +SRCREV = "0b989ee38ce37eb4a50265faa11df2bd7ed8e5c3" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +PACKAGECONFIG ??= " \ + unicode \ + linux-affinity \ + delayacct \ +" +PACKAGECONFIG[openvz] = "--enable-openvz,--disable-openvz" +PACKAGECONFIG[vserver] = "--enable-vserver,--disable-vserver" +PACKAGECONFIG[ancient-vserver] = "--enable-ancient-vserver,--disable-ancient-vserver" +PACKAGECONFIG[unicode] = "--enable-unicode,--disable-unicode" +PACKAGECONFIG[hwloc] = "--enable-hwloc,--disable-hwloc,hwloc" +PACKAGECONFIG[linux-affinity] = "--enable-linux-affinity,--disable-linux-affinity" +PACKAGECONFIG[setuid] = "--enable-setuid,--disable-setuid" +PACKAGECONFIG[delayacct] = "--enable-delayacct,--disable-delayacct,libnl" +PACKAGECONFIG[sensors] = "--with-sensors,--without-sensors,lmsensors,lmsensors-libsensors" + +FILES_${PN} += "${datadir}/icons/hicolor/scalable/apps/htop.svg" -- cgit v1.2.3-54-g00ecf