sysutils/py-psutil: Fix failing __FreeBSD_version check
- Bump PORTREVISION for package change psutil 5.9.1 does not include <sys/param.h> in arch/freebsd/mem.c, causing the __FreeBSD_version check there not not work properly and thus breaking the port on systems without COMPAT_FREEBSD7. PR: 264807 Reference: https://github.com/giampaolo/psutil/issues/2113
This commit is contained in:
parent
81d2af56be
commit
030111b816
2 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
PORTNAME= psutil
|
||||
PORTVERSION= 5.9.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
|
10
sysutils/py-psutil/files/patch-psutil_arch_freebsd_mem.c
Normal file
10
sysutils/py-psutil/files/patch-psutil_arch_freebsd_mem.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- psutil/arch/freebsd/mem.c.orig 2022-01-17 12:10:50 UTC
|
||||
+++ psutil/arch/freebsd/mem.c
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
|
||||
#include <Python.h>
|
||||
+#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/vmmeter.h>
|
||||
#include <vm/vm_param.h>
|
Loading…
Reference in a new issue