diff options
author | wiz <wiz@pkgsrc.org> | 2016-02-10 06:31:28 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-02-10 06:31:28 +0000 |
commit | 13fa7be44c9dd9c60fecbce3249429c980d23d83 (patch) | |
tree | 062d24db917378845ea05baab2476507c1d3e7d5 /sysutils | |
parent | 99377f81239819467bb3c744e92c4675d69837f2 (diff) | |
download | pkgsrc-13fa7be44c9dd9c60fecbce3249429c980d23d83.tar.gz |
Fix build on NetBSD-6.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/py-psutil/distinfo | 3 | ||||
-rw-r--r-- | sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/sysutils/py-psutil/distinfo b/sysutils/py-psutil/distinfo index 32ea504df51..5e1085412cd 100644 --- a/sysutils/py-psutil/distinfo +++ b/sysutils/py-psutil/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.13 2016/01/20 22:59:09 ryoon Exp $ +$NetBSD: distinfo,v 1.14 2016/02/10 06:31:28 wiz Exp $ SHA1 (psutil-release-3.4.2.tar.gz) = 14d6aa8925c782f0d27706901a0af47eb11f13fa RMD160 (psutil-release-3.4.2.tar.gz) = 98f12c89c2ab07cf44932563aa954fa2d9048200 SHA512 (psutil-release-3.4.2.tar.gz) = 84bf7e2ae2558223129917d31f91df6ffb90d38e742b8d09f115d25c0ab4b01b8b20dce96361aa74084850fa2881ea4cd2e9f1e910c32b3c3eb69d9d909a337c Size (psutil-release-3.4.2.tar.gz) = 267700 bytes +SHA1 (patch-psutil___psutil__bsd.c) = cbe2ecbb544917bc6cd91a618dac5c4055f11f4c diff --git a/sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c b/sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c new file mode 100644 index 00000000000..db2c976faa3 --- /dev/null +++ b/sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c @@ -0,0 +1,30 @@ +$NetBSD: patch-psutil___psutil__bsd.c,v 1.4 2016/02/10 06:31:28 wiz Exp $ + +1. chunk: Workaround for DTYPE_VNODE not being available in public +headers, even with _KERNEL set, on NetBSD-6. + +2. chunk: MNT_DISCARD not available on NetBSD-6. + +--- psutil/_psutil_bsd.c.orig 2016-01-20 16:26:28.000000000 +0000 ++++ psutil/_psutil_bsd.c +@@ -100,6 +100,9 @@ + #define _KERNEL + #include <uvm/uvm_extern.h> + #undef _KERNEL ++ #ifndef DTYPE_VNODE ++ #define DTYPE_VNODE 1 ++ #endif + #endif + + +@@ -703,8 +706,10 @@ psutil_disk_partitions(PyObject *self, P + strlcat(opts, ",relatime", sizeof(opts)); + if (flags & MNT_IGNORE) + strlcat(opts, ",ignore", sizeof(opts)); ++#if defined(MNT_DISCARD) + if (flags & MNT_DISCARD) + strlcat(opts, ",discard", sizeof(opts)); ++#endif + if (flags & MNT_EXTATTR) + strlcat(opts, ",extattr", sizeof(opts)); + if (flags & MNT_LOG) |