[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-ports
Subject: Re: lsof marked ignored
From: Eugene Grosbein <eugen () grosbein ! net>
Date: 2020-03-21 2:24:49
Message-ID: 032c7d12-6d60-3d08-f747-fce6b3ca03f9 () grosbein ! net
[Download RAW message or body]
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.
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic