From owner-freebsd-hackers@freebsd.org Tue Jan 10 06:59:19 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03CF2CA851E; Tue, 10 Jan 2017 06:59:19 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B9233125C; Tue, 10 Jan 2017 06:59:18 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id v0A6xH7W019168 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 9 Jan 2017 22:59:17 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id v0A6xHHE019167; Mon, 9 Jan 2017 22:59:17 -0800 (PST) (envelope-from sgk) Date: Mon, 9 Jan 2017 22:59:17 -0800 From: Steve Kargl To: "Simon J. Gerraty" Cc: freebsd-doc@freebsd.org, freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: MANPATH not handled correctly Message-ID: <20170110065917.GA19146@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20170108192633.GA42537@troutmask.apl.washington.edu> <78804.1484011141@kaos.jnpr.net> <20170110015413.GA17884@troutmask.apl.washington.edu> <85392.1484029576@kaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85392.1484029576@kaos.jnpr.net> User-Agent: Mutt/1.7.2 (2016-11-26) X-Mailman-Approved-At: Tue, 10 Jan 2017 12:40:45 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2017 06:59:19 -0000 On Mon, Jan 09, 2017 at 10:26:16PM -0800, Simon J. Gerraty wrote: > Steve Kargl wrote: > > > On Mon, Jan 09, 2017 at 05:19:01PM -0800, Simon J. Gerraty wrote: > > > Steve Kargl 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