Created attachment 210553 [details]
Original Lsof.8 uses '.so' to include other files and it causes lsof(8) is not found by man command. So replace such lines with contents of included files.
Yep, I noticed this.
Larry, if you remember, I posted a fix for this a while back (bug #239686)
Unfortunately, there's a bug in the latest version of mandoc (that now ships with FreeBSD) that means this is no longer working. (I've reported it upstream)
In the meantime, here's a more robust fix.
Unlike the fix from Yasuhiro, this includes the "include" files rather than simply ignoring them.
Created attachment 213926 [details]
Ooops, probably a good idea to bump the revision too, as current installs won't be able to see the manpage unless they reinstall.
(In reply to Yasuhiro KIMURA from comment #0)
Apologies, I misread your patch... Must have more coffee!!!
However, I humbly suggest using "soelim(1)" which is specifically written as a generic pre-processor for .so requests.
The line it replaces in my patch was the previous fix, that due to the above mentioned mandoc changes, no longer does anything.
A commit references this bug:
Date: Thu Apr 30 01:13:24 UTC 2020
New revision: 533405
sysutils/lsof: handle the .so's in the manpage, working around a mandoc bug.
Submitted by: email@example.com
Reported by: firstname.lastname@example.org
Committed Jamies's fix.
(In reply to Jamie Landeg-Jones from comment #1)
Just in case anyone comes here from a google search, I've had an update from Ingo Schwarze - the mandoc method is no longer supported (it was a bit of a hacky solution anyway)
The "soelim" fix we are now using is now the recommended method.