Created attachment 216998 [details] rename fd_lastfile to fd_nfiles (makepatch & svn diff) Port devel/sigar does not build on 13-CURRENT since base r363214. See bug #248453 for links to pkg logs about the breakage. The attached patch fixes it. The fix was suggested in a reply to https://lists.freebsd.org/pipermail/freebsd-ports/2020-August/119093.html by Mateusz Guzik (mjg). "I don't know what they used the counter for, the name "total" is a little worrisome. Nonetheless, I suspect the code will be fine enough by unconditionally doing: procfd->total = filed.fd_nfiles; However, this likely wants to stop using kvm in the first place. The kernel exports all necessary info using sysctls, see procstat." The code in the port is highly undocumented, but AFAIK it tries to get the number of open files of the current process. If this is committed it obsoletes bug #248453.
A commit references this bug: Author: fernape Date: Thu Aug 13 09:17:53 UTC 2020 New revision: 544794 URL: https://svnweb.freebsd.org/changeset/ports/544794 Log: devel/sigar: build after filedesc struct change In base revision r363214[1] we dropped the fd_lastfile field of the filedesc struct. This breaks devel/sigar. The applied solution was proposed by mjg@ in this[2] mail thread. [1] https://svnweb.freebsd.org/changeset/base/363214 [2] https://lists.freebsd.org/pipermail/freebsd-ports/2020-August/119093.html PR: 248460 Submitted by: ronald-lists@klop.ws Changes: head/devel/sigar/files/patch-src_os_darwin_darwin__sigar.c
Committed, Thanks!
Is quarterly broken on current as well?
(In reply to Kubilay Kocak from comment #3) Yep... I'd like to hear from someone using bleeding edge current with quite conservative quaterly branch :)
A commit references this bug: Author: fernape Date: Thu Aug 13 11:33:04 UTC 2020 New revision: 544804 URL: https://svnweb.freebsd.org/changeset/ports/544804 Log: MFH: r544794 devel/sigar: build after filedesc struct change In base revision r363214[1] we dropped the fd_lastfile field of the filedesc struct. This breaks devel/sigar. The applied solution was proposed by mjg@ in this[2] mail thread. [1] https://svnweb.freebsd.org/changeset/base/363214 [2] https://lists.freebsd.org/pipermail/freebsd-ports/2020-August/119093.html PR: 248460 Submitted by: ronald-lists@klop.ws Approved by: ports-secteam (blanket, build fix) Changes: _U branches/2020Q3/ branches/2020Q3/devel/sigar/files/patch-src_os_darwin_darwin__sigar.c
MFH'ed. Thanks koobs@ for the heads up!