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 2D9B41382C5 for ; Thu, 14 May 2020 22:31:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 353DAE0C2A; Thu, 14 May 2020 22:31:12 +0000 (UTC) Received: from sonic311-31.consmr.mail.ir2.yahoo.com (sonic311-31.consmr.mail.ir2.yahoo.com [77.238.176.163]) (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 B3B58E0C08 for ; Thu, 14 May 2020 22:31:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1589495470; bh=5fHDFCH9TCw7nbgvdeg6mmKnsKzo6EK7Z4cUOeN/5NI=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=M/ZrNpmYfUQqxtJaXvi0fMK0H8t1cO18V8GtPwYuytZXRRMnfWksq2bfOV/sWMUAYtfJkJCXFVhHJvfM9f7nuMPDmuHTR7dBnflbJ4zjmurNCwAikHUycbDLubYGt4BHl7yI+2h9MdgAagZbniIy2cxqATuENKNMI+ffocjgaPdMXql5SN907eJrR3qgXAK2J6vYkXn9/YbyqyAUxUE6CRQlA2epBP0TSTBjJm52iYNaUc6ggf6k17BKxPQqu/MIIxDfR8F5Hc4+pUAvEkoxzdrQkVNpcyKyDjbuaa2+E39q3L6oxSZ4ygFAiTcO2NvYYAMy8c2XysQ2T/V9W6rZBA== X-YMail-OSG: gCqmteUVM1mrZWurbjq2e3_ddGmWKkbo2N6cw.5FRGNmrQzm2mgneDpWizHCXwC 1eaUEyQyvx2OPH_RYpLt5mXOAy1F4p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48Z1lVnP1.T0snfbtTvxkm_faa9c6IrKCMplLCjuHLE8 rVvOhmK1qNcbkx5g4.Edo6_U2FXypVpk4n.HbWpj8b0dlmQ_8GTby0ISXMGgZH4hwmKeL_lrE67r 5cSdBvP3677VYBiZsKvhUKubIKTYrdqXMVrwBFxC31YX9.y0.BdCrcKUHsk49hQzReTyckvdSicX xf4O1OEVcqKkAQlt66zJx2bv1vIFhDU9rzoEBKAkR_Yur1agDSmCkKbKbKOtY5bzXHviUlDLmfDM - Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ir2.yahoo.com with HTTP; Thu, 14 May 2020 22:31:10 +0000 Received: by smtp410.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 768d1c1dc8647d6a4da45f66bbb3d175; Thu, 14 May 2020 22:31:08 +0000 (UTC) Date: Fri, 15 May 2020 00:32:55 +0200 From: =?utf-8?Q?Fran=C3=A7ois-Xavier?= Carton To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Building packages in different prefix without rebuilding system packages Message-ID: <20200514223255.GA18920@pc-fx> Mail-Followup-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> <60f1e5dc-9886-860b-8162-c4bd6366f477@gentoo.org> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <60f1e5dc-9886-860b-8162-c4bd6366f477@gentoo.org> X-Mailer: WebService/1.1.15942 hermes_yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) X-Archives-Salt: 44ff2d8b-98f2-4aac-86de-9a133c71569d X-Archives-Hash: 99cfb9b26957a96b73e4e2d7a86a3b29 On Thu, May 14, 2020 at 09:26:10AM -0400, Michael Orlitzky wrote: > 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. > In my case, this wouldn't be a problem: I don't want the packages to be accessed by anyone, just one user. I can set PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH and MANPATH for that user. I already do that for things I build manually anyway. EXTRA_ECONF is nice, I didn't know about it. It looks like MYCMAKEARGS can be used for cmake ebuilds. For other build systems, it might be necessary to edit the ebuild, or set different variables. I still kinda think that being able to install with a prefix (like EPREFIX) but using the base system would be a nice feature. As discussed previously, there would be the problem of updates; but it isn't very different from installing software manually. If I clone something and build it locally, a world update might break break it, and portage cannot rebuild it automatically since it's not aware of it. This is why I think it would be nice if portage supported it; that way, after an update of the base system, updating the prefix system would solve the problems. It's probably difficult to implement that in portage, though.