Re: MANPATH not handled correctly

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Mon, 9 Jan 2017 22:59:17 -0800
On Mon, Jan 09, 2017 at 10:26:16PM -0800, Simon J. Gerraty wrote:
> Steve Kargl <sgk_at_troutmask.apl.washington.edu> wrote:
> 
> > On Mon, Jan 09, 2017 at 05:19:01PM -0800, Simon J. Gerraty wrote:
> > > Steve Kargl <sgk_at_troutmask.apl.washington.edu> wrote:
> > > 
> > > > MANPATH is not handled correctly.  According to the documentation
> > > > in apropos(1) and whatis(1):
> > > 
> > > Can you clarify where you are seeing this documentation?
> > > I don't see it in 7.x 10.x or current.
> > > 
> > 
> > This an unaltered FreeBSD-current at r311832.
> > 
> > The text I quoted can be seen at 
> > 
> > https://svnweb.freebsd.org/base/head/contrib/mdocml/apropos.1?revision=294113&view=markup
> > 
> 
> But that isn't the man page that gets installed.
> 

Well, yes, it is the manpage that gets installed.

> usr.bin/man/apropos.1
> 
> is the one that matches apropos(1)
> 

>From src/usr.bin/man/Makefile

.if ${MK_MANDOCDB} == no
LINKS+= ${BINDIR}/man ${BINDIR}/apropos \
        ${BINDIR}/man ${BINDIR}/whatis
MAN+=   apropos.1
MLINKS= apropos.1 whatis.1
.endif

I have not set or unset MK_MANDOCDB.  From src.opt.mk

__DEFAULT_YES_OPTIONS = \
...
    MANDOCDB \
...

% svn blame src.opts.mk | grep MANDOC
283777       bapt     MANDOCDB \
% svn log -r 283777
------------------------------------------------------------------------
r283777 | bapt | 2015-05-30 10:41:37 -0700 (Sat, 30 May 2015) | 11 lines

Switch to mandoc's version of makewhatis(8), whatis(1), apropos(1) utilities.

This change among other things improve search capabilities over the manpages
allowing fine grain query.

A new build option WITHOUT_MANDOCDB has been added to keep the ancient version
of the database and the tools. The plan is to entirely remove this option before
11.0-RELEASE.

Differential Revision:  https://reviews.freebsd.org/D2603

-- 
Steve
20161221 https://www.youtube.com/watch?v=IbCHE-hONow
Received on Tue Jan 10 2017 - 05:59:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC