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: Mon Nov 23 13:22:33 UTC 2026
Modified Files:
pkgsrc/misc/py-shellingham: distinfo
pkgsrc/misc/py-shellingham/patches: patch-src_shellingham_posix_proc.py
Log Message:
py-shellingham: update patch after feedback
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/misc/py-shellingham/distinfo
cvs rdiff -u -r1.1 -r1.2 \
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/distinfo
diff -u pkgsrc/misc/py-shellingham/distinfo:1.6 pkgsrc/misc/py-shellingham/distinfo:1.7
--- pkgsrc/misc/py-shellingham/distinfo:1.6 Sun Nov 22 20:28:59 2026
+++ pkgsrc/misc/py-shellingham/distinfo Mon Nov 23 13:22:33 2026
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2026/11/22 20:28:59 wiz Exp $
+$NetBSD: distinfo,v 1.7 2026/11/23 13:22:33 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
+SHA1 (patch-src_shellingham_posix_proc.py) = 337952c9b5c6e52c0475932222961ac6c4602570
Index: pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py
diff -u pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py:1.1 pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py:1.2
--- pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py:1.1 Sun Nov 22 20:28:59 2026
+++ pkgsrc/misc/py-shellingham/patches/patch-src_shellingham_posix_proc.py Mon Nov 23 13:22:33 2026
@@ -1,9 +1,9 @@
-$NetBSD: patch-src_shellingham_posix_proc.py,v 1.1 2026/11/22 20:28:59 wiz Exp $
+$NetBSD: patch-src_shellingham_posix_proc.py,v 1.2 2026/11/23 13:22:33 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.orig 2023-10-24 01:51:22.000000000 +0000
+++ src/shellingham/posix/proc.py
@@ -6,7 +6,7 @@ from ._core import Process
from ._core import Process
@@ -14,12 +14,19 @@ https://github.com/sarugaku/shellingham/
# DragonFlyBSD: https://www.dragonflybsd.org/cgi/web-man?command=procfs
BSD_STAT_PPID = 2
-@@ -26,7 +26,7 @@ def detect_proc():
+@@ -26,9 +26,12 @@ 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
+- if os.path.exists(os.path.join("/proc", str(pid), name)):
+- return name
++ if _use_bsd_stat_format():
++ if os.path.exists(os.path.join("/proc", str(pid), "status")):
++ return "status"
++ else:
++ if os.path.exists(os.path.join("/proc", str(pid), "stat")):
++ return "stat"
raise ProcFormatError("unsupported proc format")
+
+
Home |
Main Index |
Thread Index |
Old Index