Welcome to CRUX bug tracking.

FS#1808 - Man page of lsof cannot be displayed

Attached to Project: CRUX
Opened by Christophe Gottheimer (cgh) - Friday, 22 May 2020, 05:26 GMT
Last edited by Juergen Daubert (jue) - Friday, 22 May 2020, 10:28 GMT
Task Type Bug Report
Category ports → core/opt
Status Closed
Assigned To No-one
Operating System CRUX
Severity Low
Priority Normal
Reported Version 3.5
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


After installing lsof package from opt, the man lsof command failed:

# man 8 lsof
man: can't open /usr/share/man/./version: No such file or directory
No manual entry for lsof in section 8

I suggest to modify the Pkgfile in /usr/ports/opt/lsof as follow:
--- /usr/ports/opt/lsof/Pkgfile 2020-05-14 08:38:54.262602135 +0200
+++ /usr/ports/local/lsof/Pkgfile 2020-05-22 07:18:20.936666727 +0200
@@ -12,6 +12,7 @@ build() {
cd $name-$version
yes "" | ./Configure linux
sed -i -e "s/-DLINUXV/${CFLAGS} -DLINUXV/" Makefile
+ sed -i "/^\.so \.\/version/d;/^\.so \.\/00DIALECTS/d" Lsof.8
install -D -m 755 lsof $PKG/usr/sbin/lsof
install -D -m 644 Lsof.8 $PKG/usr/share/man/man8/lsof.8

After rebuilding and installing the lsof package, the man 8 lsof is displayed correctly.


This task depends upon

Closed by  Juergen Daubert (jue)
Friday, 22 May 2020, 10:28 GMT
Reason for closing:  Fixed
Comment by Juergen Daubert (jue) - Friday, 22 May 2020, 10:27 GMT
Thanks for the report. However, fixed differently by using soelim to include the version information.