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:
Torsten Blum 2022-06-22 04:58:58 +08:00 committed by Po-Chuan Hsieh
parent 81d2af56be
commit 030111b816
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 11 additions and 0 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= psutil
PORTVERSION= 5.9.1
PORTREVISION= 1
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

View 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>