make sysutils/py-psutil build on SecBSD
This commit is contained in:
parent
09b3080379
commit
e2e2ced49d
15 changed files with 528 additions and 3 deletions
23
sysutils/py-psutil/patches/patch-psutil__common_py
Normal file
23
sysutils/py-psutil/patches/patch-psutil__common_py
Normal file
|
@ -0,0 +1,23 @@
|
|||
Index: psutil/_common.py
|
||||
--- psutil/_common.py.orig
|
||||
+++ psutil/_common.py
|
||||
@@ -49,7 +49,7 @@ _DEFAULT = object()
|
||||
__all__ = [
|
||||
# OS constants
|
||||
'FREEBSD', 'BSD', 'LINUX', 'NETBSD', 'OPENBSD', 'MACOS', 'OSX', 'POSIX',
|
||||
- 'SUNOS', 'WINDOWS',
|
||||
+ 'SECBSD', 'SUNOS', 'WINDOWS',
|
||||
# connection constants
|
||||
'CONN_CLOSE', 'CONN_CLOSE_WAIT', 'CONN_CLOSING', 'CONN_ESTABLISHED',
|
||||
'CONN_FIN_WAIT1', 'CONN_FIN_WAIT2', 'CONN_LAST_ACK', 'CONN_LISTEN',
|
||||
@@ -90,8 +90,9 @@ MACOS = sys.platform.startswith("darwin")
|
||||
OSX = MACOS # deprecated alias
|
||||
FREEBSD = sys.platform.startswith(("freebsd", "midnightbsd"))
|
||||
OPENBSD = sys.platform.startswith("openbsd")
|
||||
+SECBSD = sys.platform.startswith("secbsd")
|
||||
NETBSD = sys.platform.startswith("netbsd")
|
||||
-BSD = FREEBSD or OPENBSD or NETBSD
|
||||
+BSD = FREEBSD or OPENBSD or SECBSD or NETBSD
|
||||
SUNOS = sys.platform.startswith(("sunos", "solaris"))
|
||||
AIX = sys.platform.startswith("aix")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue