Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 680012

Summary: net-misc/openssh-7.9_p1-r4: manpages installed in wrong dir if only mandoc is installed
Product: Gentoo Linux Reporter: Patrick Steinhardt <onzalkvpkz>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mantype patch

Description Patrick Steinhardt 2019-03-11 07:46:04 UTC
Created attachment 568534 [details, diff]
mantype patch

If the system has only app-text/mandoc installed instead of using sys-apps/man-db, then net-misc/openssh-7.9_p1-r4 and older will install manpages into "/usr/share/man/cat?/" instead of installing them into "/usr/share/man/man?/", even though app-text/mandoc is configured to make use of the latter, too.

The bug is caused by configure.ac, where openssh tries to auto-detect which type of manpages the system has available. If none of "nroff" or "awf" are installed, then it will assume that MANTYPE is "cat" and install into the wrong location.

The bug can easily be fixed by configuring openssh with "--with-mantype=man", a patch is attached.