From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8E6B01382C5 for ; Thu, 14 May 2020 13:26:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4C8CE09AB; Thu, 14 May 2020 13:26:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2323FE0973 for ; Thu, 14 May 2020 13:26:18 +0000 (UTC) Subject: Re: [gentoo-user] Building packages in different prefix without rebuilding system packages To: gentoo-user@lists.gentoo.org References: <20200514050205.GA15477.ref@pc-fx> <20200514050205.GA15477@pc-fx> <495ff3d5-ce2f-71e6-caac-1eb5cdbf988d@gmail.com> <02e101d629cc$3c3c4ba0$b4b4e2e0$@jsteward.moe> <20200514110704.3dac9373@digimed.co.uk> <02eb01d629d8$d33ca4d0$79b5ee70$@jsteward.moe> <20200514125530.53978bd3@digimed.co.uk> From: Michael Orlitzky Message-ID: <60f1e5dc-9886-860b-8162-c4bd6366f477@gentoo.org> Date: Thu, 14 May 2020 09:26:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <20200514125530.53978bd3@digimed.co.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: 938eb311-66af-4e5a-9d36-94a8415a96a4 X-Archives-Hash: 5d913be6066688f2a38a090732c75e6b On 5/14/20 7:55 AM, Neil Bothwick wrote: > On Thu, 14 May 2020 18:17:06 +0800, Pengcheng Xu wrote: > >> That seems interesting. Do we need to include Portage install prefix >> (/var/tmp/portage/category/package/..., the image path prefix before >> actually merging with /)? >> >> Regards, > > No, just the --prefix=/home/blah/ that you want added to the ./configure > invocation. > This is a good way to install packages that you've built by hand into (say) your home directory, but it will cause problems if you try to trick portage into doing it. The big problem is that no other packages are going to know where to find the thing you just installed. Everything else in the Gentoo repository is designed to use standard values of PATH, LD_LIBRARY_PATH, the compiler's include dir, PKG_CONFIG_PATH, etc. If you take one program and put it somewhere non-standard, then every package depending on it is going to break. If you install an *additional* copy (built by hand) in your home directory, that's fine -- the system copy will still be in the right place -- you just don't want to hide the system copy where nobody can find it.