pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/py-shellingham



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Nov 22 20:28:59 UTC 2026

Modified Files:
        pkgsrc/misc/py-shellingham: Makefile distinfo
Added Files:
        pkgsrc/misc/py-shellingham/patches: patch-src_shellingham_posix_proc.py

Log Message:
py-shellingham: fix bug that broke users of this package on NetBSD

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/misc/py-shellingham/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/misc/py-shellingham/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py

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

Modified files:

Index: pkgsrc/misc/py-shellingham/Makefile
diff -u pkgsrc/misc/py-shellingham/Makefile:1.7 pkgsrc/misc/py-shellingham/Makefile:1.8
--- pkgsrc/misc/py-shellingham/Makefile:1.7     Sat Apr 12 07:43:09 2025
+++ pkgsrc/misc/py-shellingham/Makefile Sun Nov 22 20:28:59 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2025/04/12 07:43:09 adam Exp $
+# $NetBSD: Makefile,v 1.8 2026/11/22 20:28:59 wiz Exp $
 
 DISTNAME=      shellingham-1.5.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/post//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    misc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/shellingham/}
 

Index: pkgsrc/misc/py-shellingham/distinfo
diff -u pkgsrc/misc/py-shellingham/distinfo:1.5 pkgsrc/misc/py-shellingham/distinfo:1.6
--- pkgsrc/misc/py-shellingham/distinfo:1.5     Sun Oct 29 17:49:58 2023
+++ pkgsrc/misc/py-shellingham/distinfo Sun Nov 22 20:28:59 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2023/10/29 17:49:58 adam Exp $
+$NetBSD: distinfo,v 1.6 2026/11/22 20:28:59 wiz Exp $
 
 BLAKE2s (shellingham-1.5.4.tar.gz) = c22cc080cbc59216dd6b87eeb4b430a18e795c84576bb6693915ae341b7f8c6e
 SHA512 (shellingham-1.5.4.tar.gz) = 6eeacda73c35f24ad35f82c92409b3ac9aaf6b265f07af2ceeea7e1cd3072fadf763a014e002932e8314598189bdee273a9a1e9ea10cee3bea1129d92957d707
 Size (shellingham-1.5.4.tar.gz) = 10310 bytes
+SHA1 (patch-src_shellingham_posix_proc.py) = 1136bc962d814ce8b77c5d55294ba2ca455a5f45

Added files:

Index: pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py
diff -u /dev/null pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py:1.1
--- /dev/null   Sun Nov 22 20:28:59 2026
+++ pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py      Sun Nov 22 20:28:59 2026
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_shellingham_posix_proc.py,v 1.1 2026/11/22 20:28:59 wiz Exp $
+
+Avoid using Linux procfs on NetBSD.
+https://github.com/sarugaku/shellingham/issues/99
+
+--- src/shellingham/posix/proc.py.orig 2026-11-22 20:18:17.540838591 +0000
++++ src/shellingham/posix/proc.py
+@@ -6,7 +6,7 @@ from ._core import Process
+ from ._core import Process
+ 
+ # FreeBSD: https://www.freebsd.org/cgi/man.cgi?query=procfs
+-# NetBSD: https://man.netbsd.org/NetBSD-9.3-STABLE/mount_procfs.8
++# NetBSD: https://man.netbsd.org/mount_procfs.8
+ # DragonFlyBSD: https://www.dragonflybsd.org/cgi/web-man?command=procfs
+ BSD_STAT_PPID = 2
+ 
+@@ -26,7 +26,7 @@ def detect_proc():
+     * `status`: BSD-style, i.e. ``/proc/{pid}/status``.
+     """
+     pid = os.getpid()
+-    for name in ("stat", "status"):
++    for name in ("status", "stat"):
+         if os.path.exists(os.path.join("/proc", str(pid), name)):
+             return name
+     raise ProcFormatError("unsupported proc format")



Home | Main Index | Thread Index | Old Index