Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2017 08:38:30 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Tijl Coosemans <tijl@FreeBSD.org>
Cc:        Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>, ports@freebsd.org, arch@freebsd.org, Baptiste Daroussin <bapt@freebsd.org>, John Baldwin <jhb@freebsd.org>, freebsd-arch@freebsd.org
Subject:   Re: manpath change for ports ?
Message-ID:  <20170310163830.GA46344@troutmask.apl.washington.edu>
In-Reply-To: <20170310170308.65d903d8@kalimero.tijl.coosemans.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <des@des.no> wrote:
> > John Baldwin <jhb@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170310163830.GA46344>