pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/dtpstree dtpstree: Fix build on NetBSD 8.99.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/dccde70608f0
branches: trunk
changeset: 364977:dccde70608f0
user: kamil <kamil%pkgsrc.org@localhost>
date: Sat Jul 08 12:06:56 2017 +0000
description:
dtpstree: Fix build on NetBSD 8.99.1
Address <sys/user.h> removal.
diffstat:
sysutils/dtpstree/Makefile | 9 +++++++--
sysutils/dtpstree/distinfo | 5 +++--
sysutils/dtpstree/patches/patch-configure.ac | 14 ++++++++++++++
sysutils/dtpstree/patches/patch-dtpstree.cpp | 14 ++++++++++++--
4 files changed, 36 insertions(+), 6 deletions(-)
diffs (84 lines):
diff -r 163365212a12 -r dccde70608f0 sysutils/dtpstree/Makefile
--- a/sysutils/dtpstree/Makefile Sat Jul 08 08:08:25 2017 +0000
+++ b/sysutils/dtpstree/Makefile Sat Jul 08 12:06:56 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2017/01/19 18:52:25 agc Exp $
+# $NetBSD: Makefile,v 1.6 2017/07/08 12:06:56 kamil Exp $
#
DISTNAME= dtpstree-1.0.3
@@ -17,10 +17,15 @@
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
-USE_TOOLS+= gmake
+USE_TOOLS+= gmake bash aclocal autoconf automake
MAKE_FILE= GNUmakefile
+REPLACE_BASH+= autogen.sh
+
.include "options.mk"
+pre-configure:
+ ${RUN} cd ${WRKSRC} && ./autogen.sh
+
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 163365212a12 -r dccde70608f0 sysutils/dtpstree/distinfo
--- a/sysutils/dtpstree/distinfo Sat Jul 08 08:08:25 2017 +0000
+++ b/sysutils/dtpstree/distinfo Sat Jul 08 12:06:56 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 01:32:12 agc Exp $
+$NetBSD: distinfo,v 1.4 2017/07/08 12:06:56 kamil Exp $
SHA1 (dtpstree-1.0.3.tar.xz) = 0faf99b3220247f3656282ac6f059478a4210a75
RMD160 (dtpstree-1.0.3.tar.xz) = 37ff4213515400a9a70725366c4783de863f6f05
SHA512 (dtpstree-1.0.3.tar.xz) = c0b3490bb253890824f36698db8442e2f1565d6c44921f353c45ee1c9314f1fbc69f3d537ef7a005911e4a5052c9df34330d4937fb9c41f790aaacb15d1d750c
Size (dtpstree-1.0.3.tar.xz) = 47784 bytes
-SHA1 (patch-dtpstree.cpp) = d913c217f27364caf005b407ac1c46a88defc8c6
+SHA1 (patch-configure.ac) = 8e9fa4c70d264147a399714ab4a98d08ec40ac92
+SHA1 (patch-dtpstree.cpp) = 2ddec4f347fd4abc7ef116806e4d5e9e9f4123d5
diff -r 163365212a12 -r dccde70608f0 sysutils/dtpstree/patches/patch-configure.ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dtpstree/patches/patch-configure.ac Sat Jul 08 12:06:56 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-configure.ac,v 1.1 2017/07/08 12:06:56 kamil Exp $
+
+--- configure.ac.orig 2010-08-14 03:50:04.000000000 +0000
++++ configure.ac
+@@ -100,7 +100,9 @@ AC_DEFUN([DT_INCLUDES_KVM], [#ifdef HAVE
+ #include <kvm.h>
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <sys/user.h>
++#endif
+ AC_INCLUDES_DEFAULT])
+ AC_DEFUN([DT_CHECK_MEMBERS_KVM],
+ [m4_foreach_w([dt_member_suffix], [pid ppid ruid comm],
diff -r 163365212a12 -r dccde70608f0 sysutils/dtpstree/patches/patch-dtpstree.cpp
--- a/sysutils/dtpstree/patches/patch-dtpstree.cpp Sat Jul 08 08:08:25 2017 +0000
+++ b/sysutils/dtpstree/patches/patch-dtpstree.cpp Sat Jul 08 12:06:56 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-dtpstree.cpp,v 1.1 2013/04/30 22:34:31 joerg Exp $
+$NetBSD: patch-dtpstree.cpp,v 1.2 2017/07/08 12:06:56 kamil Exp $
---- dtpstree.cpp.orig 2013-04-30 19:54:40.000000000 +0000
+--- dtpstree.cpp.orig 2010-08-05 08:01:47.000000000 +0000
+++ dtpstree.cpp
@@ -21,6 +21,7 @@
@@ -10,3 +10,13 @@
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
+@@ -55,7 +56,9 @@
+ #include <pwd.h>
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <sys/user.h>
++#endif
+ #include <sys/utsname.h>
+ #include <unistd.h>
+ #include <vis.h>
Home |
Main Index |
Thread Index |
Old Index