pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/lsof



Module Name:    pkgsrc
Committed By:   kim
Date:           Thu Apr 23 21:23:12 UTC 2026

Modified Files:
        pkgsrc/sysutils/lsof: distinfo
Added Files:
        pkgsrc/sysutils/lsof/patches: patch-dialects_n+obsd_dproc.c

Log Message:
lsof: Do not include _STABLE, _RC, etc. suffixes in version comparison.

Avoid (some) unnecessary system version warnings on NetBSD.  The ABI
should not change between 11.0_BETA, 11.0_RC*, 11.0, and 11.0_STABLE.
In fact it should not change between 11.0, 11.1, 11.2, and so forth.

The only exception is *.99.* (e.g. 11.99.5), where the full version
should be compared.

XXX:  This could be improved to only compare the major version when
      the minor version is less than 99.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 pkgsrc/sysutils/lsof/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/lsof/patches/patch-dialects_n+obsd_dproc.c

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

Modified files:

Index: pkgsrc/sysutils/lsof/distinfo
diff -u pkgsrc/sysutils/lsof/distinfo:1.112 pkgsrc/sysutils/lsof/distinfo:1.113
--- pkgsrc/sysutils/lsof/distinfo:1.112 Sun Apr 19 09:27:43 2026
+++ pkgsrc/sysutils/lsof/distinfo       Thu Apr 23 21:23:11 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.112 2026/04/19 09:27:43 wiz Exp $
+$NetBSD: distinfo,v 1.113 2026/04/23 21:23:11 kim Exp $
 
 BLAKE2s (lsof_4.91.tar.bz2) = 77109e036c36f7d1483e69f2aae2314830dc4d2bdc3bf88a4031832f17e6afef
 SHA512 (lsof_4.91.tar.bz2) = 49f811941dd6303f7cb0655fddb8b1177af5d1b18f2bd1edfab09d2c128aea73daecf09c7a5375979c66ba764c88a6e70c9086b55c3634e3be01ab1aa12e9f92
@@ -12,5 +12,6 @@ SHA1 (patch-af) = 96228c315f850341e4e361
 SHA1 (patch-ag) = d973ccfced801b57c9dbefd97ee624d4fa2e002c
 SHA1 (patch-ah) = 2de22b9a3733f958298af5e33b66c0653c320f59
 SHA1 (patch-dialects_n+obsd_dnode1.c) = dc8c766760aca4eb2e7d7af3944260dd49795c09
+SHA1 (patch-dialects_n+obsd_dproc.c) = a7e4f1f64319906520a392bf0faf291e445c3d19
 SHA1 (patch-dialects_n+obsd_dsock.c) = dadbb0196024c12f59d77b838917036bf90a4e35
 SHA1 (patch-lib_Makefile.skel) = abfb9d50eef60c5d43cbf4978bf179de0ebe371e

Added files:

Index: pkgsrc/sysutils/lsof/patches/patch-dialects_n+obsd_dproc.c
diff -u /dev/null pkgsrc/sysutils/lsof/patches/patch-dialects_n+obsd_dproc.c:1.1
--- /dev/null   Thu Apr 23 21:23:12 2026
+++ pkgsrc/sysutils/lsof/patches/patch-dialects_n+obsd_dproc.c  Thu Apr 23 21:23:11 2026
@@ -0,0 +1,26 @@
+$NetBSD: patch-dialects_n+obsd_dproc.c,v 1.1 2026/04/23 21:23:11 kim Exp $
+
+Do not include _STABLE, _RC, etc. suffixes in version comparison.
+
+--- dialects/n+obsd/dproc.c.orig       2005-05-11 15:54:00.000000000 +0300
++++ dialects/n+obsd/dproc.c    2025-07-18 11:02:20.123676193 +0300
+@@ -81,6 +81,19 @@
+               Pn, strerror(errno));
+           Exit(1);
+       }
++
++#ifdef __NetBSD__
++/*
++ * Major release version indicates ABI compatibility.
++ */
++      {
++          char *vp;
++          vp = strchr(v, '_');
++          if (vp != NULL)
++              *vp = '\0';
++      }
++#endif
++
+ /*
+  * Warn if the actual and expected releases don't match.
+  */



Home | Main Index | Thread Index | Old Index