From f0e020aac8b88b65137badef0897d8e92a6ab8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Wed, 20 Mar 2024 14:03:12 +0100 Subject: groups.d/231.native_packages_etc.group: adds htop v3.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- groups.d/231.native_packages_etc.group | 7 ++++++- patches/htop-3.3.0.local.patch | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 patches/htop-3.3.0.local.patch diff --git a/groups.d/231.native_packages_etc.group b/groups.d/231.native_packages_etc.group index a8ed9e20..17a96d01 100644 --- a/groups.d/231.native_packages_etc.group +++ b/groups.d/231.native_packages_etc.group @@ -5,7 +5,7 @@ GROUP_TARGET_APPEND="native_packages"; NATIVE_PACKAGES_ETC_PACKAGES=" apr apr_util bdwgc bmake bochs bzip2 cherokee clzip cmake cron dante dosbox doomgeneric emacs enscript expat ffmpeg file gdbm geoip gettext_tiny ghostpdl -giflib gnuchess graphicsmagick gzip hastyhex hexcurse hexer icoutils imagemagick infounzip infozip +giflib gnuchess graphicsmagick gzip hastyhex hexcurse hexer htop icoutils imagemagick infounzip infozip john lbreakout2 lcms less libmetalink lolcode ltris minizip mintty mlogin musl_compat musl_fts ncdu ncurses ncursestw ncursesw npth openjazz openjpeg p7zip pcre pcre2 php popt potrace procps_ng qemu qpdf qrencode rpm rw sdlquake shared_mime_info slang sqlite3 tcl tdnf texinfo @@ -208,6 +208,11 @@ zstd"; : ${PKG_HEXER_LDFLAGS_BUILD_EXTRA:="-L${PREFIX_NATIVE}/lib"}; : ${PKG_HEXER_ENV_VARS_EXTRA:="CC_FOR_BUILD=gcc"}; : ${PKG_HEXER_IN_TREE:=1}; +: ${PKG_HTOP_DEPENDS:="ncursesw"}; +: ${PKG_HTOP_SHA256SUM:=a69acf9b42ff592c4861010fce7d8006805f0d6ef0e8ee647a6ee6e59b743d5c}; +: ${PKG_HTOP_VERSION:=3.3.0}; +: ${PKG_HTOP_URL:=https://github.com/htop-dev/htop/releases/download/${PKG_HTOP_VERSION}/htop-${PKG_HTOP_VERSION}.tar.xz}; +: ${PKG_HTOP_CONFIGURE_ARGS_EXTRA:="--enable-unicode"}; : ${PKG_ICOUTILS_DEPENDS:="libpng"}; : ${PKG_ICOUTILS_SHA256SUM:=17abe02d043a253b68b47e3af69c9fc755b895db68fdc8811786125df564c6e0}; : ${PKG_ICOUTILS_VERSION:=0.32.3}; diff --git a/patches/htop-3.3.0.local.patch b/patches/htop-3.3.0.local.patch new file mode 100644 index 00000000..dc5c1360 --- /dev/null +++ b/patches/htop-3.3.0.local.patch @@ -0,0 +1,26 @@ +diff -ru htop-3.3.0.orig/unsupported/UnsupportedProcessTable.c htop-3.3.0/unsupported/UnsupportedProcessTable.c +--- htop-3.3.0.orig/unsupported/UnsupportedProcessTable.c 2024-01-01 02:08:46.000000000 +0100 ++++ htop-3.3.0/unsupported/UnsupportedProcessTable.c 2024-03-20 14:02:08.294139220 +0100 +@@ -48,11 +48,6 @@ + Process_updateCmdline(proc, "", 0, 0); + Process_updateExe(proc, "/path/to/executable"); + +- const Settings* settings = proc->host->settings; +- if (settings->ss->flags & PROCESS_FLAG_CWD) { +- free_and_xStrdup(&proc->procCwd, "/current/working/directory"); +- } +- + proc->super.updated = true; + + proc->state = RUNNING; +diff -ru htop-3.3.0.orig/unsupported/UnsupportedProcess.h htop-3.3.0/unsupported/UnsupportedProcess.h +--- htop-3.3.0.orig/unsupported/UnsupportedProcess.h 2023-05-16 18:41:42.000000000 +0200 ++++ htop-3.3.0/unsupported/UnsupportedProcess.h 2024-03-20 13:53:11.556451796 +0100 +@@ -8,6 +8,7 @@ + */ + + #include "Machine.h" ++#include "Process.h" + + + typedef struct UnsupportedProcess_ { -- cgit v1.2.3