From owner-freebsd-arch@freebsd.org Fri Mar 10 09:51:46 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 58E38D05030; Fri, 10 Mar 2017 09:51:46 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 2457E1085; Fri, 10 Mar 2017 09:51:45 +0000 (UTC) (envelope-from des@des.no) Received: from desk.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 10AFE549E; Fri, 10 Mar 2017 09:50:40 +0000 (UTC) Received: by desk.des.no (Postfix, from userid 1001) id C261571AD; Fri, 10 Mar 2017 10:50:39 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: John Baldwin Cc: freebsd-arch@freebsd.org, Baptiste Daroussin , ports@freebsd.org, arch@freebsd.org Subject: Re: manpath change for ports ? References: <20170306235610.cmpxk27jhoafel6l@ivaldir.net> <86mvcvojzt.fsf@desk.des.no> <2721378.xr7MGKcqvA@ralph.baldwin.cx> Date: Fri, 10 Mar 2017 10:50:39 +0100 In-Reply-To: <2721378.xr7MGKcqvA@ralph.baldwin.cx> (John Baldwin's message of "Thu, 09 Mar 2017 10:20:48 -0800") Message-ID: <86a88tmpe8.fsf@desk.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) 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 09:51:46 -0000 John Baldwin writes: > I wouldn't even mind if we had both /usr/local/man and /usr/local/share/m= an > 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. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no