From owner-freebsd-arch@freebsd.org Wed Mar 8 15:39:51 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 AB16CD03146 for ; Wed, 8 Mar 2017 15:39:51 +0000 (UTC) (envelope-from des@des.no) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB7811CE for ; Wed, 8 Mar 2017 15:39:51 +0000 (UTC) (envelope-from des@des.no) Received: by mailman.ysv.freebsd.org (Postfix) id 9716CD03144; Wed, 8 Mar 2017 15:39:51 +0000 (UTC) Delivered-To: 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 96A72D03143; Wed, 8 Mar 2017 15:39:51 +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 617B111CD; Wed, 8 Mar 2017 15:39:51 +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 EF59A10B68; Wed, 8 Mar 2017 15:39:49 +0000 (UTC) Received: by desk.des.no (Postfix, from userid 1001) id 120637022; Wed, 8 Mar 2017 16:39:50 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Baptiste Daroussin Cc: arch@FreeBSD.org, ports@FreeBSD.org Subject: Re: manpath change for ports ? References: <20170306235610.cmpxk27jhoafel6l@ivaldir.net> Date: Wed, 08 Mar 2017 16:39:50 +0100 In-Reply-To: <20170306235610.cmpxk27jhoafel6l@ivaldir.net> (Baptiste Daroussin's message of "Tue, 7 Mar 2017 00:56:10 +0100") Message-ID: <86mvcvojzt.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: Wed, 08 Mar 2017 15:39:51 -0000 Baptiste Daroussin writes: > I would like to propose a change in the localbase hier for ports > > I think we should add /usr/local/share/man in the manpath along with > at first and maybe instead of in long term. 2) plus info -> share/info as suggested by jbeich 3) plus libdata/pkgconfig -> lib/pkgconfig These three items will ensure that "./configure --prefix=3D/usr/local && make install" will do the right thing out of the box - by changing our definition of "the right thing" to match what the GNU autotools have been doing for at least 15 years. 4) Remove the hardcoded library path in lang/gcc* This makes it possible to work on software that includes both libraries and programs while an earlier copy of the same software is already installed. With the current state of gcc, the programs you are working on will be linked against the version of the library that's already installed instead of the version you just compiled, and there is nothing you can do to prevent it. You won't notice anything if all you ever do is "make && make install", because the new library will replace the old, but if you try to run your program directly from the build tree, it will use the wrong library. This can be incredibly frustrating if you're not aware of it - imagine you're trying to fix a bug in that library and no matter what you do, your regression test keeps failing... DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no