Index: head/sysutils/lsof/Makefile =================================================================== --- head/sysutils/lsof/Makefile (revision 507356) +++ head/sysutils/lsof/Makefile (revision 507357) @@ -1,44 +1,44 @@ # Created by: David O'Brien # $FreeBSD$ PORTNAME= lsof DISTVERSION= 4.93.2 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 8 CATEGORIES= sysutils MAINTAINER= ler@FreeBSD.org COMMENT= Lists information about open files (similar to fstat(1)) LICENSE= lsof LICENSE_NAME= lsof LICENSE_FILE= ${FILESDIR}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept USES= shebangfix tar:bzip2 HAS_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= lsof-org SHEBANG_FILES= scripts/sort_res.perl5 .include CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= -n freebsd CONFIGURE_ENV= LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys" .if !exists(${SRC_BASE}/sys/kern/kern_lockf.c) IGNORE+= requires kernel sources .endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/Lsof.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/lsof.8 @${MKDIR} ${STAGEDIR}${PREFIX}/share/lsof ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${STAGEDIR}${PREFIX}/share/lsof @${CHMOD} 0444 ${STAGEDIR}${PREFIX}/share/lsof/00* .include Index: head/sysutils/lsof/files/patch-dialects-freebsd-dlsof.h =================================================================== --- head/sysutils/lsof/files/patch-dialects-freebsd-dlsof.h (revision 507356) +++ head/sysutils/lsof/files/patch-dialects-freebsd-dlsof.h (revision 507357) @@ -1,15 +1,28 @@ ---- dialects/freebsd/dlsof.h.orig 2019-05-22 14:37:20 UTC +--- dialects/freebsd/dlsof.h.orig 2019-05-08 07:32:25 UTC +++ dialects/freebsd/dlsof.h @@ -45,6 +45,12 @@ #include #include +#if FREEBSDV>=13000 +/* This header is a huge mess. Please don't support EOL FreeBSD releases. */ +#define _KERNEL 1 +#include +#undef _KERNEL +#endif /* FREEBSDV>=13000 */ # if FREEBSDV>=4000 # if FREEBSDV>=5000 # if FREEBSDV<6020 +@@ -104,6 +110,12 @@ typedef struct device *device_t; + + + #include ++ ++/* ++ * include for refcount(9) ++ */ ++#include ++ + + # if defined(HAS_VM_MEMATTR_T) + #undef vm_memattr_t