summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorLarry Rosenman <ler@FreeBSD.org>2017-01-14 19:36:59 +0000
committerLarry Rosenman <ler@FreeBSD.org>2017-01-14 19:36:59 +0000
commit56d3763b693f4c966296f7f90884f48945eab1d8 (patch)
tree957d86a1785469171fb9929a8d9eb2e2d6498820 /sysutils
parent- Strip installed binaries. (diff)
Fix sysutils/lsof on arm.
This fixes the case where ARM_NARCH and ARM_NMMUS are 0, since the lsof(1) sources get hacky access to kernel structures. PR: 216065 Submitted by: samm os2 kiev ua Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D9176
Notes
Notes: svn path=/head/; revision=431492
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lsof/Makefile1
-rw-r--r--sysutils/lsof/files/patch-dialects_freebsd_dlsof.h10
-rw-r--r--sysutils/lsof/files/patch-dialects_freebsd_dnode2.c11
3 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index afaea171d81b..40a7adcd7259 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -3,6 +3,7 @@
PORTNAME= lsof
DISTVERSION= 4.90G
+PORTREVISION= 1
PORTEPOCH= 8
CATEGORIES= sysutils
MASTER_SITES= http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \
diff --git a/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h b/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h
new file mode 100644
index 000000000000..5e802cc96f93
--- /dev/null
+++ b/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h
@@ -0,0 +1,10 @@
+--- dialects/freebsd/dlsof.h.orig 2016-09-22 20:02:53 UTC
++++ dialects/freebsd/dlsof.h
+@@ -87,6 +87,7 @@
+ #define boolean_t int
+ # endif /* defined(NEEDS_BOOLEAN_T) */
+
++#define KLD_MODULE
+ #include <sys/conf.h>
+
+ # if defined(HAS_VM_MEMATTR_T)
diff --git a/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c b/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c
new file mode 100644
index 000000000000..3b46e7607c77
--- /dev/null
+++ b/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c
@@ -0,0 +1,11 @@
+--- dialects/freebsd/dnode2.c.orig 2016-09-22 20:02:53 UTC
++++ dialects/freebsd/dnode2.c
+@@ -51,7 +51,7 @@ static char *rcsid = "$Id: dnode2.c,v 1.
+ */
+ #define VOP_UNLOCK(vp, f) ((void)0)
+ # endif /* defined(__clang__) */
+-
++#define KLD_MODULE
+ #include <sys/zfs_znode.h>
+ #undef _KERNEL
+