From owner-freebsd-ports@freebsd.org Fri Mar 10 16:38:35 2017 Return-Path: Delivered-To: freebsd-ports@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 06F0ED06914 for ; Fri, 10 Mar 2017 16:38:35 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id E37DA1F93 for ; Fri, 10 Mar 2017 16:38:34 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: by mailman.ysv.freebsd.org (Postfix) id DF781D06912; Fri, 10 Mar 2017 16:38:34 +0000 (UTC) Delivered-To: ports@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 DF0ADD06911; Fri, 10 Mar 2017 16:38:34 +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 AA5DB1F92; Fri, 10 Mar 2017 16:38:34 +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 v2AGcUvu046399 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 10 Mar 2017 08:38:30 -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 v2AGcU6t046398; Fri, 10 Mar 2017 08:38:30 -0800 (PST) (envelope-from sgk) Date: Fri, 10 Mar 2017 08:38:30 -0800 From: Steve Kargl To: Tijl Coosemans Cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , ports@freebsd.org, arch@freebsd.org, Baptiste Daroussin , John Baldwin , freebsd-arch@freebsd.org Subject: Re: manpath change for ports ? Message-ID: <20170310163830.GA46344@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20170306235610.cmpxk27jhoafel6l@ivaldir.net> <86mvcvojzt.fsf@desk.des.no> <2721378.xr7MGKcqvA@ralph.baldwin.cx> <86a88tmpe8.fsf@desk.des.no> <20170310170308.65d903d8@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170310170308.65d903d8@kalimero.tijl.coosemans.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 16:38:35 -0000 On Fri, Mar 10, 2017 at 05:03:08PM +0100, Tijl Coosemans wrote: > On Fri, 10 Mar 2017 10:50:39 +0100 Dag-Erling Smørgrav wrote: > > John Baldwin writes: > >> I wouldn't even mind if we had both /usr/local/man and /usr/local/share/man > >> so long as our default MANPATH included both if that means applying fewer > >> patches to ports. > > > > The default MANPATH is constructed dynamically from PATH: > > > > 1. From each component of the user's PATH for the first of: > > - pathname/man > > - pathname/MAN > > - If pathname ends with /bin: pathname/../man > > Note: Special logic exists to make /bin and /usr/bin look in > > /usr/share/man for manual files. > > > > If we change this to: > > > > 1. From each component of the user's PATH for the first of: > > - pathname/man > > - pathname/MAN > > - If pathname ends with /bin or /sbin: pathname/../man and > > pathname/../share/man > > > > we wouldn't need any "special logic", but I really don't like the idea > > of having different ports installing man pages in different locations. > > I grepped the ports tree and found nearly 5700 ports. That's a lot to > change all at once but it may be doable. It depends on how much fallout > there is in the exp-run. ln -s /usr/local/share/man /usr/local/man should cause the manpages to land where you want. Then port maintainers can sweep ports/ to allow for the removal of symlink. On a side note, it is unfortunate that one cannot set the environmental variable MANPATH as documented without either a mysterious vanishing of man pages or an idiotic warning appear with each invocation of man, apropos, ... -- Steve 20161221 https://www.youtube.com/watch?v=IbCHE-hONow