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.