Summary: | sysutils/lsof: Build fails on 13-CURRENT after base r356432 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Yasuhiro Kimura <yasu> |
Component: | Individual Port(s) | Assignee: | Larry Rosenman <ler> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | mjg |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(ler) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Yasuhiro Kimura
2020-01-08 03:22:50 UTC
@mjg can you look at this? Thanks. This will do the trick. @@ -560,7 +560,7 @@ * Get the pseudo vnode tag type for FreeBSD >= 5. */ vtag = VT_UNKNOWN; - if (v->v_tag && !kread((KA_T)v->v_tag, (char *)&vtbuf, sizeof(vtbuf))) + if (!kread((KA_T)v->v_lock.lock_object.lo_name, (char *)&vtbuf, sizeof(vtbuf))) { vtbuf[sizeof(vtbuf) - 1] = '\0'; vtbp = vtbuf; Will that also work on earlier versions or do I need to make it conditional? I did not check how far this goes, but should work at least since stuff released after 2005. So I just checked, this will work at least since FreeBSD 5.0 which also happens to match the version check. iow you can just apply this. A commit references this bug: Author: ler Date: Fri Jan 10 00:02:33 UTC 2020 New revision: 522545 URL: https://svnweb.freebsd.org/changeset/ports/522545 Log: sysutils/lsof: fix after base r356432. PR: 243172 Submitted by: mjg Reported by: yasu@utahime.org Changes: head/sysutils/lsof/Makefile head/sysutils/lsof/files/patch-dialects_freebsd_dnode.c head/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c Committed. Thanks! A commit references this bug: Author: ler Date: Tue Jan 21 16:46:44 UTC 2020 New revision: 523728 URL: https://svnweb.freebsd.org/changeset/ports/523728 Log: MFH: r522273 r522545 r522582 r523727 sysutils/lsof: fix build following base r356337. I took the patch from 243122 as it was more correct. PR: 243122, 243083 Submitted by: cy, yasu@utahime.org sysutils/lsof: fix after base r356432. PR: 243172 Submitted by: mjg Reported by: yasu@utahime.org sysutils/lsof: add a PPC64 work around for needing -lzpool PR: 242833 Submitted by: luciano@vespaperitivo.it sysutils/lsof: fix build on powerpc, powerpc64, powerpcse PR: 242758 Submitted by: pkubaj Approved by: ports-secteam (joneum) Changes: _U branches/2020Q1/ branches/2020Q1/sysutils/lsof/Makefile branches/2020Q1/sysutils/lsof/files/patch-dialects_freebsd_dnode.c branches/2020Q1/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c |