Date: Wed, 22 May 2019 02:34:40 +0000 (UTC) From: Larry Rosenman <ler@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r502243 - in head/sysutils/lsof: . files Message-ID: <201905220234.x4M2Yelq003589@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ler Date: Wed May 22 02:34:39 2019 New Revision: 502243 URL: https://svnweb.freebsd.org/changeset/ports/502243 Log: sysutils/lsof: fix build on -CURRENT. sys/_lock.h is no longer implicitly included in such a way that the #ifdef _KERNEL #error in lockmgr.h is bypassed after r347984. Fix lsof to explicitly include _lock.h with _KERNEL defined on 13. Submitted by: cem Reported by: pkg-fallout Differential Revision: https://reviews.freebsd.org/D20341 Added: head/sysutils/lsof/files/patch-dialects-freebsd-dlsof.h (contents, props changed) Modified: head/sysutils/lsof/Makefile Modified: head/sysutils/lsof/Makefile ============================================================================== --- head/sysutils/lsof/Makefile Wed May 22 02:33:44 2019 (r502242) +++ head/sysutils/lsof/Makefile Wed May 22 02:34:39 2019 (r502243) @@ -3,6 +3,7 @@ PORTNAME= lsof DISTVERSION= 4.93.2 +PORTREVISION= 1 PORTEPOCH= 8 CATEGORIES= sysutils 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 Wed May 22 02:34:39 2019 (r502243) @@ -0,0 +1,21 @@ +Index: sysutils/lsof/files/patch-dialects-freebsd-dlsof.h +=================================================================== +--- /dev/null ++++ sysutils/lsof/files/patch-dialects-freebsd-dlsof.h +@@ -0,0 +1,16 @@ ++--- dialects/freebsd/dlsof.h.orig 2019-05-08 07:32:25 UTC +++++ dialects/freebsd/dlsof.h ++@@ -45,6 +45,13 @@ ++ #include <signal.h> ++ #include <unistd.h> ++ +++#if FREEBSDV>=13000 +++/* This header is a huge mess. Please don't support EOL FreeBSD releases. */ +++#define _KERNEL 1 +++#include <sys/_lock.h> +++#undef _KERNEL +++#endif /* FREEBSDV>=13000 */ +++ ++ # if FREEBSDV>=4000 ++ # if FREEBSDV>=5000 ++ # if FREEBSDV<6020
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905220234.x4M2Yelq003589>