From owner-freebsd-arch@freebsd.org Fri Mar 10 16:04:40 2017 Return-Path: Delivered-To: freebsd-arch@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 D7DB9D04AE0; Fri, 10 Mar 2017 16:04:40 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay110.isp.belgacom.be (mailrelay110.isp.belgacom.be [195.238.20.137]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 83CFF3DA; Fri, 10 Mar 2017 16:04:39 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2C1FgCbzcJY/0nD8VFdHAEBBAEBCgEBg?= =?us-ascii?q?1FBEIEag2CLAZBdKQGVDoIOhiICgj9BFwECAQEBAQEBAWsohRYBBSMzIxALGAI?= =?us-ascii?q?CBSECAg8qHgYTigSxaYImimsBAQEBBgEBAQEkgQuKMoRUgwaCXwWcPJIrdpA7k?= =?us-ascii?q?0AhAjSBAzgsCIcVPzWKGgEBAQ?= X-IPAS-Result: =?us-ascii?q?A2C1FgCbzcJY/0nD8VFdHAEBBAEBCgEBg1FBEIEag2CLAZB?= =?us-ascii?q?dKQGVDoIOhiICgj9BFwECAQEBAQEBAWsohRYBBSMzIxALGAICBSECAg8qHgYTi?= =?us-ascii?q?gSxaYImimsBAQEBBgEBAQEkgQuKMoRUgwaCXwWcPJIrdpA7k0AhAjSBAzgsCIc?= =?us-ascii?q?VPzWKGgEBAQ?= Received: from 73.195-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.195.73]) by relay.skynet.be with ESMTP; 10 Mar 2017 17:03:10 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id v2AG39F5099444; Fri, 10 Mar 2017 17:03:09 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Fri, 10 Mar 2017 17:03:08 +0100 From: Tijl Coosemans To: Dag-Erling =?UTF-8?B?U23DuHJncmF2?= Cc: John Baldwin , ports@freebsd.org, arch@freebsd.org, Baptiste Daroussin , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 16:04:40 -0000 On Fri, 10 Mar 2017 10:50:39 +0100 Dag-Erling Sm=C3=B8rgrav wr= ote: > 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. =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.