pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

htop-git: Sync with upstream changes



Module Name:	pkgsrc-wip
Committed By:	Santhosh Raju <fox%NetBSD.org@localhost>
Pushed By:	fox
Date:		Tue Jan 9 14:03:47 2024 +0100
Changeset:	0be6a1e828009be46921f5689511c665e57e245a

Modified Files:
	htop-git/Makefile
	htop-git/distinfo
Removed Files:
	htop-git/patches/patch-netbsd_NetBSDMachine.c
	htop-git/patches/patch-netbsd_NetBSDProcess.c
	htop-git/patches/patch-netbsd_NetBSDProcessTable.c

Log Message:
htop-git: Sync with upstream changes

- Fixes the NetBSD build errors and warnings.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0be6a1e828009be46921f5689511c665e57e245a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 htop-git/Makefile                                  |  4 +--
 htop-git/distinfo                                  |  9 ++---
 htop-git/patches/patch-netbsd_NetBSDMachine.c      | 41 ----------------------
 htop-git/patches/patch-netbsd_NetBSDProcess.c      | 17 ---------
 htop-git/patches/patch-netbsd_NetBSDProcessTable.c | 26 --------------
 5 files changed, 5 insertions(+), 92 deletions(-)

diffs:
diff --git a/htop-git/Makefile b/htop-git/Makefile
index ef6585e2b9..48c9ddd6e8 100644
--- a/htop-git/Makefile
+++ b/htop-git/Makefile
@@ -1,10 +1,10 @@
 # $NetBSD$
 
-DISTNAME=	htop-3.2.2.20240101
+DISTNAME=	htop-3.2.2.20240109
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_GITHUB:=htop-dev/}
 GITHUB_PROJECT=	htop
-GITHUB_TAG=     c3b4a770c02c28662980014b5a893e01451ec2b2
+GITHUB_TAG=     f9fb93aaf8712934ee0c78d5d887882fd29b6e36
 
 MAINTAINER=	fox%NetBSD.org@localhost
 HOMEPAGE=	https://htop.dev/
diff --git a/htop-git/distinfo b/htop-git/distinfo
index 8e7fc92acc..424af2554d 100644
--- a/htop-git/distinfo
+++ b/htop-git/distinfo
@@ -1,8 +1,5 @@
 $NetBSD$
 
-BLAKE2s (htop-3.2.2.20240101-c3b4a770c02c28662980014b5a893e01451ec2b2.tar.gz) = 1dbc7c8e11c85d7b4b6e6616e999e0092da7c4bda7e6606bdf02a31143c5c811
-SHA512 (htop-3.2.2.20240101-c3b4a770c02c28662980014b5a893e01451ec2b2.tar.gz) = 40e4ccf1aa3b312d4bc69d2e560969cef623dd22856f14fd54b0ecbaf51ac8e6d96a594848d25f6081c150c091e09fe979fd1993430cdaaa1006e9a40cc99bfb
-Size (htop-3.2.2.20240101-c3b4a770c02c28662980014b5a893e01451ec2b2.tar.gz) = 405036 bytes
-SHA1 (patch-netbsd_NetBSDMachine.c) = c963b30a1b34d86409a913a55f5b51e483e70e2d
-SHA1 (patch-netbsd_NetBSDProcess.c) = 498fb3f92ef7b42bf28c2705b69e2058523d9a7e
-SHA1 (patch-netbsd_NetBSDProcessTable.c) = 6edce0026f026a0b68952321d38f906ce20e912f
+BLAKE2s (htop-3.2.2.20240109-f9fb93aaf8712934ee0c78d5d887882fd29b6e36.tar.gz) = e016ac322736b5809959e20bd74ea083d3973aeb6d726a7abe93046da8811be2
+SHA512 (htop-3.2.2.20240109-f9fb93aaf8712934ee0c78d5d887882fd29b6e36.tar.gz) = a1234b6ddbd9c55be3ed383c0618ba352d41527034f07a8e1d13df16fc11efbc884ab059ea3b6bcac3a8e330113a6cc45efdf732b9494a86a6d7130d12b87007
+Size (htop-3.2.2.20240109-f9fb93aaf8712934ee0c78d5d887882fd29b6e36.tar.gz) = 405112 bytes
diff --git a/htop-git/patches/patch-netbsd_NetBSDMachine.c b/htop-git/patches/patch-netbsd_NetBSDMachine.c
deleted file mode 100644
index a0c4ac77a6..0000000000
--- a/htop-git/patches/patch-netbsd_NetBSDMachine.c
+++ /dev/null
@@ -1,41 +0,0 @@
-$NetBSD$
-
-Fix build due to upstream changes.
-
-https://github.com/htop-dev/htop/pull/1360
-
---- netbsd/NetBSDMachine.c.orig	2023-12-29 15:52:13.000000000 +0000
-+++ netbsd/NetBSDMachine.c
-@@ -81,7 +81,7 @@ static void NetBSDMachine_updateCPUcount
-    }
- 
-    if (value != super->existingCPUs) {
--      opl->cpuData = xReallocArray(this->cpuData, value + 1, sizeof(CPUData));
-+      this->cpuData = xReallocArray(this->cpuData, value + 1, sizeof(CPUData));
-       super->existingCPUs = value;
-       change = true;
-    }
-@@ -127,7 +127,7 @@ Machine* Machine_new(UsersTable* usersTa
-       CRT_fatalError("kvm_openfiles() failed");
-    }
- 
--   return this;
-+   return super;
- }
- 
- void Machine_delete(Machine* super) {
-@@ -268,11 +268,11 @@ static void NetBSDMachine_scanCPUFrequen
- void Machine_scan(Machine* super) {
-    NetBSDMachine* this = (NetBSDMachine*) super;
- 
--   NetBSDProcessTable_scanMemoryInfo(this);
--   NetBSDProcessTable_scanCPUTime(this);
-+   NetBSDMachine_scanMemoryInfo(this);
-+   NetBSDMachine_scanCPUTime(this);
- 
-    if (super->settings->showCPUFrequency) {
--      NetBSDProcessTable_scanCPUFrequency(npl);
-+      NetBSDMachine_scanCPUFrequency(this);
-    }
- }
- 
diff --git a/htop-git/patches/patch-netbsd_NetBSDProcess.c b/htop-git/patches/patch-netbsd_NetBSDProcess.c
deleted file mode 100644
index 254cb59ff0..0000000000
--- a/htop-git/patches/patch-netbsd_NetBSDProcess.c
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD$
-
-Fix build due to upstream changes.
-
-https://github.com/htop-dev/htop/pull/1360
-
---- netbsd/NetBSDProcess.c.orig	2023-12-29 15:52:13.000000000 +0000
-+++ netbsd/NetBSDProcess.c
-@@ -237,7 +237,7 @@ static void NetBSDProcess_rowWriteField(
-    switch (field) {
-    // add NetBSD-specific fields here
-    default:
--      Process_writeField(np->super, str, field);
-+      Process_writeField(&np->super, str, field);
-       return;
-    }
- 
diff --git a/htop-git/patches/patch-netbsd_NetBSDProcessTable.c b/htop-git/patches/patch-netbsd_NetBSDProcessTable.c
deleted file mode 100644
index 5dfa2a20d4..0000000000
--- a/htop-git/patches/patch-netbsd_NetBSDProcessTable.c
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD$
-
-Fix build due to upstream changes.
-
-https://github.com/htop-dev/htop/pull/1360
-
---- netbsd/NetBSDProcessTable.c.orig	2023-12-29 15:52:13.000000000 +0000
-+++ netbsd/NetBSDProcessTable.c
-@@ -151,7 +151,7 @@ static double getpcpu(const NetBSDMachin
- }
- 
- static void NetBSDProcessTable_scanProcs(NetBSDProcessTable* this) {
--   const Machine* host = this->super.host;
-+   const Machine* host = this->super.super.host;
-    const NetBSDMachine* nhost = (const NetBSDMachine*) host;
-    const Settings* settings = host->settings;
-    bool hideKernelThreads = settings->hideKernelThreads;
-@@ -182,7 +182,7 @@ static void NetBSDProcessTable_scanProcs
-          ProcessTable_add(&this->super, proc);
- 
-          proc->tty_nr = kproc->p_tdev;
--         const char* name = ((dev_t)kproc->p_tdev != KERN_PROC_TTY_NODEV) ? devname(kproc->p_tdev, S_IFCHR) : NULL;
-+         const char* name = devname(kproc->p_tdev, S_IFCHR);
-          if (!name) {
-             free(proc->tty_name);
-             proc->tty_name = NULL;


Home | Main Index | Thread Index | Old Index