svn commit: r431492 - in head/sysutils/lsof: . files
Larry Rosenman
ler at FreeBSD.org
Sat Jan 14 19:37:00 UTC 2017
Author: ler
Date: Sat Jan 14 19:36:59 2017
New Revision: 431492
URL: https://svnweb.freebsd.org/changeset/ports/431492
Log:
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
Added:
head/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h (contents, props changed)
head/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c (contents, props changed)
Modified:
head/sysutils/lsof/Makefile
Modified: head/sysutils/lsof/Makefile
==============================================================================
--- head/sysutils/lsof/Makefile Sat Jan 14 19:36:02 2017 (r431491)
+++ head/sysutils/lsof/Makefile Sat Jan 14 19:36:59 2017 (r431492)
@@ -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/ \
Added: head/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h Sat Jan 14 19:36:59 2017 (r431492)
@@ -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)
Added: head/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c Sat Jan 14 19:36:59 2017 (r431492)
@@ -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
+
More information about the svn-ports-all
mailing list