Using KVM_NO_FILES is enough to make it work without setgid/kmem...
and shows noone is using this.

It shows a process graph, but also visual artifacts on window resize.

pkgsrc are the only ones besides us still packaging this as per repology.

I'd just remove this;  just use top(1) or ps(1) -f.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/xps/Makefile,v
diff -u -p -r1.29 Makefile
--- Makefile    27 Sep 2023 17:16:37 -0000      1.29
+++ Makefile    21 Oct 2026 23:29:52 -0000
@@ -1,5 +1,5 @@
 DISTNAME=       xps-4.2
-REVISION=      10
+REVISION=      11
 CATEGORIES=     sysutils x11
 
 SITES=         ${SITE_SOURCEFORGE:=motif-pstree/}
Index: patches/patch-src_NetBSD_os_c
===================================================================
RCS file: /cvs/ports/sysutils/xps/patches/patch-src_NetBSD_os_c,v
diff -u -p -r1.5 patch-src_NetBSD_os_c
--- patches/patch-src_NetBSD_os_c       11 Mar 2022 19:58:12 -0000      1.5
+++ patches/patch-src_NetBSD_os_c       21 Oct 2026 23:38:08 -0000
@@ -1,8 +1,9 @@
 yes, I know there's a src/OpenBSD in there too.
 it's not used somehow...
 
---- src/NetBSD/os.c.orig       Thu Apr 24 02:21:29 2003
-+++ src/NetBSD/os.c    Tue Sep 24 00:05:20 2013
+Index: src/NetBSD/os.c
+--- src/NetBSD/os.c.orig
++++ src/NetBSD/os.c
 @@ -26,7 +26,9 @@
  #include <fcntl.h>
  #include <limits.h>
@@ -13,6 +14,15 @@ it's not used somehow...
  #include <X11/Intrinsic.h>
  #include <X11/StringDefs.h>
  #include <Xm/Xm.h>
+@@ -73,7 +75,7 @@ GetProcInfo(void)
+   NumProcs = 0;
+   
+   if (kd == NULL)
+-      kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf);
++      kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf);
+   if (kd == NULL) {
+     char msg[_POSIX2_LINE_MAX * 2];
+ 
 @@ -82,11 +84,7 @@ GetProcInfo(void)
      exit(5);
    }
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/xps/pkg/PLIST,v
diff -u -p -r1.5 PLIST
--- pkg/PLIST   11 Mar 2022 19:58:12 -0000      1.5
+++ pkg/PLIST   21 Oct 2026 23:40:45 -0000
@@ -1,8 +1,4 @@
 @pkgpath sysutils/xps,lesstif
-@group kmem
-@mode 2555
-bin/xps
-@mode
-@group
+@bin bin/xps
 lib/X11/app-defaults/Xps
 @man man/man1/xps.1

Reply via email to