diff options
author | kamil <kamil@pkgsrc.org> | 2017-06-22 22:01:47 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2017-06-22 22:01:47 +0000 |
commit | 637c27eced7b503cf6328f823e938f3f2b9eba34 (patch) | |
tree | cb099a385375c6ffd5fe199c833e1f6e399f851c | |
parent | 94c4018c50bbb88ca00633314b610f18117a769c (diff) | |
download | pkgsrc-637c27eced7b503cf6328f823e938f3f2b9eba34.tar.gz |
Correct build of py-psutil on NetBSD 8.99.1.
Address <sys/user.h> removal fallout on NetBSD.
-rw-r--r-- | sysutils/py-psutil/distinfo | 4 | ||||
-rw-r--r-- | sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c | 17 | ||||
-rw-r--r-- | sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c | 14 |
3 files changed, 34 insertions, 1 deletions
diff --git a/sysutils/py-psutil/distinfo b/sysutils/py-psutil/distinfo index 66126eea79a..68b7acf26a7 100644 --- a/sysutils/py-psutil/distinfo +++ b/sysutils/py-psutil/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.18 2017/05/29 16:02:40 adam Exp $ +$NetBSD: distinfo,v 1.19 2017/06/22 22:01:47 kamil Exp $ SHA1 (psutil-5.2.2.tar.gz) = e22e2f6abdff051d438626f9a59a8782ace1a63e RMD160 (psutil-5.2.2.tar.gz) = bdf3d28e5072b936b86056d8da28524b43de734d SHA512 (psutil-5.2.2.tar.gz) = df4878d03a6ff98beb611969edd5a4d704ac269d38dc286d84def3ca271936e03367241470f2a192e0d71d0f64fe1f252223b0d67e964918146334a807d1a997 Size (psutil-5.2.2.tar.gz) = 348413 bytes +SHA1 (patch-psutil___psutil__bsd.c) = 3d1166abdd74e3f3b4bec3098b03e7d05a67df04 +SHA1 (patch-psutil_arch_bsd_netbsd.c) = be6d5a5cc1db77cd513eab8717af3194f9c5270b 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..c9d3680de97 --- /dev/null +++ b/sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c @@ -0,0 +1,17 @@ +$NetBSD: patch-psutil___psutil__bsd.c,v 1.8 2017/06/22 22:01:47 kamil Exp $ + +Don't include <sys/user.h> on every BSD. +It's absent on NetBSD and unused on OpenBSD. + +--- psutil/_psutil_bsd.c.orig 2017-03-26 08:09:27.000000000 +0000 ++++ psutil/_psutil_bsd.c +@@ -30,7 +30,9 @@ + #include <sys/types.h> + #include <sys/param.h> + #include <sys/sysctl.h> ++#if defined(__FreeBSD__) || defined(__DragonFly__) + #include <sys/user.h> ++#endif + #include <sys/proc.h> + #include <sys/file.h> + #include <sys/socket.h> diff --git a/sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c b/sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c new file mode 100644 index 00000000000..17a7b368220 --- /dev/null +++ b/sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c @@ -0,0 +1,14 @@ +$NetBSD: patch-psutil_arch_bsd_netbsd.c,v 1.6 2017/06/22 22:01:47 kamil Exp $ + +Don't include <sys/user.h> on NetBSD. + +--- psutil/arch/bsd/netbsd.c.orig 2017-03-26 08:09:27.000000000 +0000 ++++ psutil/arch/bsd/netbsd.c +@@ -22,7 +22,6 @@ + #include <sys/types.h> + #include <sys/param.h> + #include <sys/sysctl.h> +-#include <sys/user.h> + #include <sys/proc.h> + #include <sys/swap.h> // for swap_mem + #include <signal.h> |