pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/py-psutil Correct build of py-psutil on NetBS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/37a71e007ed5
branches:  trunk
changeset: 364274:37a71e007ed5
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Thu Jun 22 22:01:47 2017 +0000

description:
Correct build of py-psutil on NetBSD 8.99.1.

Address <sys/user.h> removal fallout on NetBSD.

diffstat:

 sysutils/py-psutil/distinfo                               |   4 ++-
 sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c   |  17 +++++++++++++++
 sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c |  14 ++++++++++++
 3 files changed, 34 insertions(+), 1 deletions(-)

diffs (52 lines):

diff -r 17508ed962ef -r 37a71e007ed5 sysutils/py-psutil/distinfo
--- a/sysutils/py-psutil/distinfo       Thu Jun 22 21:44:49 2017 +0000
+++ b/sysutils/py-psutil/distinfo       Thu Jun 22 22:01:47 2017 +0000
@@ -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 -r 17508ed962ef -r 37a71e007ed5 sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c   Thu Jun 22 22:01:47 2017 +0000
@@ -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 -r 17508ed962ef -r 37a71e007ed5 sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c Thu Jun 22 22:01:47 2017 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index