Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2017 17:03:08 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Dag-Erling =?UTF-8?B?U23DuHJncmF2?= <des@des.no>
Cc:        John Baldwin <jhb@freebsd.org>, ports@freebsd.org, arch@freebsd.org, Baptiste Daroussin <bapt@freebsd.org>, freebsd-arch@freebsd.org
Subject:   Re: manpath change for ports ?
Message-ID:  <20170310170308.65d903d8@kalimero.tijl.coosemans.org>
In-Reply-To: <86a88tmpe8.fsf@desk.des.no>
References:  <20170306235610.cmpxk27jhoafel6l@ivaldir.net> <86mvcvojzt.fsf@desk.des.no> <2721378.xr7MGKcqvA@ralph.baldwin.cx> <86a88tmpe8.fsf@desk.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Mar 2017 10:50:39 +0100 Dag-Erling Sm=C3=B8rgrav <des@des.no> wr=
ote:
> 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. =20
>=20
> The default MANPATH is constructed dynamically from PATH:
>=20
>      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.
>=20
> If we change this to:
>=20
>      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
>=20
> 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.

Ports are installed into a staging area now where files can be moved to
another location.  So a post-install make target could be added that
moves the man pages to share/man if necessary (and prints a warning to
maintainers in that case).  Then all pkg-plist and PLIST_FILES need to
be modified (with sed) and PORTREVISION needs to be bumped (also
scripted).

The same could be done to move info and pkgconfig files.



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