Re: lsof marked ignored
21.03.2020 4:30, @lbutlr wrote: > On 20 Mar 2020, at 14:10, Robert Huff 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-unsubscr...@freebsd.org"
Re: lsof marked ignored
On 03/20/2020 9:09 pm, Robert Huff wrote: Larry Rosenman writes: I'd love to see the kernel folks make better interfaces. I've been saying that for 2 years. Can you be one step more specific on what interface it needs? Respectfully, Robert Huff No, because I'm not a great C programmer, and don't know the kernel real well. I've been maintaining lsof for the last 5 years, mostly as a proxy for Vic Abell (the original Author, now retired at 80+ years old). We have a github project (https://github.com/lsof-org). I'm still officially the maintainer, but need some help from the kernel folks to clean up all the #ifdef mess going back to FreeBSD 2.2(if not earlier). and modernize the interfaces between lsof<->kernel. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: l...@lerctr.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
Larry Rosenman writes: > I'd love to see the kernel folks make better interfaces. > > I've been saying that for 2 years. Can you be one step more specific on what interface it needs? Respectfully, Robert Huff ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
On 03/20/2020 5:53 pm, Adam Weinberger wrote: On Fri, Mar 20, 2020 at 4:45 PM Dave Horsfall wrote: On Fri, 20 Mar 2020, Adam Weinberger wrote: > 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. Does it not require kernel header files only? Only distributed with the source, which annoyed me because at the time I didn't have the room... That's a good question. I'm not sure whether it requires just the headers or kernel sources beyond that. The lsof/Makefile explicitly checks for sys/kern/kern_lockf.c so the port is definitely looking for more than the headers. If you want to save space, you should probably be safe checking out just /usr/src/sys. Please let me know if I'm wrong about that; you're certainly neither the first nor the last person to want lsof without needing the entire src tree. # Adam it needs the sources. I'd love to see the kernel folks make better interfaces. I've been saying that for 2 years. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: l...@lerctr.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
On Fri, Mar 20, 2020 at 4:45 PM Dave Horsfall wrote: > > On Fri, 20 Mar 2020, Adam Weinberger wrote: > > > 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. > > Does it not require kernel header files only? Only distributed with the > source, which annoyed me because at the time I didn't have the room... That's a good question. I'm not sure whether it requires just the headers or kernel sources beyond that. The lsof/Makefile explicitly checks for sys/kern/kern_lockf.c so the port is definitely looking for more than the headers. If you want to save space, you should probably be safe checking out just /usr/src/sys. Please let me know if I'm wrong about that; you're certainly neither the first nor the last person to want lsof without needing the entire src tree. # Adam -- Adam Weinberger ad...@adamw.org https://www.adamw.org ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
On Fri, 20 Mar 2020, Adam Weinberger wrote: 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. Does it not require kernel header files only? Only distributed with the source, which annoyed me because at the time I didn't have the room... -- Dave ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
On 20 Mar 2020, at 15:30, @lbutlr wrote: > PORTS+MODULE=sysutils/lsof Oops. -- Say, give it up, give it up, television's taking its toll That's enough, that's enough, gimme the remote control I've been nice, I've been good, please don't do this to me Turn it off, turn it off, I don't want to have to see ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
On 20 Mar 2020, at 14:10, Robert Huff 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) > My solution has been to add "sysutils/lsof" to PORTS_MODULES in > /etc/make.conf. How does this help? # cat /etc/make.conf DEFAULT_VERSIONS+=ssl=openssl apache=2.4 php=7.2 perl5=5.30 mysql=10.3m PORTS+MODULE=sysutils/lsof Building lsof still fails pkg install works. -- Sarah, age 18, says "man, once you go Crayola you can't go back.” ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
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. My solution has been to add "sysutils/lsof" to PORTS_MODULES in /etc/make.conf. Respectfully, Robert Huff ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: lsof marked ignored
On Fri, Mar 20, 2020 at 1:02 PM @lbutlr wrote: > > Got this when trying tu update lsof: > > ===>>> lsof-4.93.2_9,8 > ===>>> New version available: lsof-4.93.2_10,8 > > ===>>> Currently installed version: lsof-4.93.2_9,8 > ===>>> Port directory: /usr/ports/sysutils/lsof > > ===>>> This port is marked IGNORE > ===>>> requires kernel sources > > Don’t see anything in MOVED or UPDATIN about changes to lsof? > > Since I built the previous version should I just comment the IGNORE line in > the makefile and not worry about why I > got this error (didn’t get it before). 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. # Adam -- Adam Weinberger ad...@adamw.org https://www.adamw.org ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
lsof marked ignored
Got this when trying tu update lsof: ===>>> lsof-4.93.2_9,8 ===>>> New version available: lsof-4.93.2_10,8 ===>>> Currently installed version: lsof-4.93.2_9,8 ===>>> Port directory: /usr/ports/sysutils/lsof ===>>> This port is marked IGNORE ===>>> requires kernel sources Don’t see anything in MOVED or UPDATIN about changes to lsof? Since I built the previous version should I just comment the IGNORE line in the makefile and not worry about why I got this error (didn’t get it before). -- 'Things either exist or they don't,' said Jeremy. 'I am very clear about that. I have medicine.' --The Thief of Time ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"