Date: Sat, 21 Mar 2020 09:24:49 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: "@lbutlr" <kremels@kreme.com>, FreeBSD <freebsd-ports@freebsd.org> Subject: Re: lsof marked ignored Message-ID: <032c7d12-6d60-3d08-f747-fce6b3ca03f9@grosbein.net> In-Reply-To: <B39CB252-B54C-44BC-B6F5-8A539D79071C@kreme.com> References: <37AE5B1C-8F5C-4CE7-BB8C-8FD631C5F394@kreme.com> <CAP7rwchVCaH=cFzPWnWXap%2BSj3wL7Mqfp%2BqVjA0AhtTjumZa9A@mail.gmail.com> <24181.8991.414308.19079@jerusalem.litteratus.org> <B39CB252-B54C-44BC-B6F5-8A539D79071C@kreme.com>
next in thread | previous in thread | raw e-mail | index | archive | help
21.03.2020 4:30, @lbutlr wrote: > On 20 Mar 2020, at 14:10, Robert Huff <roberthuff@rcn.com> wrote: >> Adam Weinberger writes: >> >>>> ===>>> Currently installed version: lsof-4.93.2_9,8 >>>> ===>>> Port directory: /usr/ports/sysutils/lsof >>>> >>>> ===>>> This port is marked IGNORE >>>> ===>>> requires kernel sources >>> >>> That error should only occur if system sources are missing from >>> /usr/src. Check that they're still there, and if not then check them >>> out from svn. >> >> (Last time I checked ....) >> Not only does it require kernel sources, but those sources need >> to match the running kernel. > > Why was this changed (I did not install the source and my /usr/src/ directory is empty and has been since I moved to 12.1) Nothing changed really. lsof needs the whole file sys/fs/pseudofs/pseudofs.h for struct pfs_node and all other parts (types etc.) it uses from same file and it needs the definition of struct lock_owner from sys/kern/kern_lock.c. It tastes some other files in sys/ to enable -DHAS_LOCKF_ENTRY -DHAS_PAUSE_SBT -DHAS_CDEV2PRIV -DHASFUSEFS -DHAS_ZFS but does not really needs their contents, so these flags could be enabled unconditionally by the port. So if we could "export" pseudofs.h and struct lock_owner to /usr/include, then lsof could be built without need of kernel sources.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?032c7d12-6d60-3d08-f747-fce6b3ca03f9>