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 ED26C1382C5 for ; Thu, 14 May 2020 08:08:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4EBDE0931; Thu, 14 May 2020 08:08:01 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.75]) (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 8B4A9E0909 for ; Thu, 14 May 2020 08:08:01 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 0072D601E5E9 for ; Thu, 14 May 2020 09:08:00 +0100 (BST) X-ASG-Debug-ID: 1589443679-05541315aa8499c0001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id rw649BpyTbtewX4c (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 14 May 2020 09:07:59 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Apparent-Source-IP: 149.255.58.40 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud307.thundercloud.uk (Postfix) with ESMTPSA id AEE3ACA3B52 for ; Thu, 14 May 2020 09:07:58 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1589443679; bh=TTU6MlWHp5i/YJiCL922Z6Tl7ecP+a94aSgAjp8MCJw=; h=From:To:Subject; b=ciYp7b6I2UmOrHhwA5/FKHHSBpaadwRoM/rBcvDJdY7t31o+3Pl4M1xnBKesGvkVe Eg2/GfU+6ihBG6YlnqnGQpwdvmmWPhBV+5CGwECHcjy7zXoE9aLGByMPhkt9MPOnHx 7QqXUMu5cs1EuQTCYGPe7p1LiglieMyE8Lch12kA= Authentication-Results: cloud307.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=lenovo.localdomain Received-SPF: pass (cloud307.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Building packages in different prefix without rebuilding system packages Date: Thu, 14 May 2020 09:07:43 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] Building packages in different prefix without rebuilding system packages Message-ID: <3049712.aeNJFYEL58@lenovo.localdomain> In-Reply-To: <495ff3d5-ce2f-71e6-caac-1eb5cdbf988d@gmail.com> References: <20200514050205.GA15477.ref@pc-fx> <20200514050205.GA15477@pc-fx> <495ff3d5-ce2f-71e6-caac-1eb5cdbf988d@gmail.com> 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: multipart/signed; boundary="nextPart3055556.44csPzL39Z"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20200514080759.100432.86914@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1589443679 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 2927 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.81840 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: bed7fbcd-54f6-4964-8619-709ed624e4b0 X-Archives-Hash: 3166697f8bdc7ef24c2c1ad5a044d213 --nextPart3055556.44csPzL39Z Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Thursday, 14 May 2020 06:13:33 BST Dale wrote: > Fran=C3=A7ois-Xavier Carton wrote: > > Hi, > >=20 > > Is there a way of installing packages in a different prefix while still > > using system packages? I've tried setting EPREFIX, however doing that > > will install all dependencies in the prefix, even if there are already > > installed in the system. > >=20 > > I was hoping to install some packages in user directories, but I also > > don't want to duplicate the packages installed globally. For example, > > most packages eventually depend on gcc, which I definitely don't want to > > compile twice. So ideally, only dependencies that are not installed > > globally should be pulled in. > >=20 > > I was not able to find a way of doing that, but I feel like it shouldn't > > be too hard, because EPREFIX almost does what I want. Does someone know > > if it's possible without too much tweaking? > >=20 > > Thanks, > > -Fran=C3=A7ois-Xavier >=20 > I'm clueless on EPREFIX but if you want to avoid compiling a package > twice, would the -k option help? If you have portage set to save the > binaries you compiled before, it would install from that instead of > compiling things twice.=20 >=20 > Just thought I'd mention just in case it would help.=20 >=20 > Dale >=20 > :-) :-)=20 The whole concept of EPREFIX is predicated on installing a Gentoo system=20 within a different path/filesystem than the / of the host installation and= =20 being able to run it as a non-root user. As I understand it, using librari= es=20 from the main system and potentially altering them in the process is not go= ing=20 to work without changing Gentoo's eprefix intended design. It should be possible to change the prefix paths selectively, in particular= =20 the LD_LIBRARY_PATH to link binaries from within the prefix to libraries in= =20 the host system, but I'm not sure what privileges are needed to install/run= =20 such a hybrid linkage and how an update of the host system will break=20 installed packages within the EPREFIX and vice versa. We're talking of a=20 =46rankenstein build here with the potential of install operations on one s= ystem=20 would be breaking the other, including portage itself.=20 With containerisation of applications there may be easier ways to achieve w= hat =20 =46ran=C3=A7ois-Xavier is looking for. I am thinking of running sandboxed= =20 applications in the likes of flatpack, snap, zero-install, appimage and=20 whatever else may have been devised lately. However, with these systems yo= u=20 end up using what's already been developed and any static libraries their d= evs=20 considered desirable. If you want a bespoke installation optimised for you= r=20 hardware and chosen compilation flags, then you are probably looking to=20 develop a containerised application for your own use. Someone more knowledgeable in both Gentoo's EPREFIX project and containeris= ed=20 apps should chime in soon to offer more helpful advice. --nextPart3055556.44csPzL39Z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl68/E8ACgkQseqq9sKV ZxngchAA3wiT97kmrGUzX7BPOcQJ+kytC8bbRH/D64aVPePrO5ssymjB5GKviu6u Fu+rTEdwHiYmaMJEhKXSLEOu7kADl6doh/drYofvTKfroNlL6qT3W6fj1kKXO+Lg yD08BTSgLSt7Mb5cWD+Zknvbt2GfrKv6+13ujx5+GDaKLNi3TcHeYDNyiHQAlOQu ucb224Lhf75zCVXCHOblzFeA3X4hDEzygDI9A09cS48OoXJUYNopdFT5Py4JyEle QbotkwA+1S2Bemxhh5WdDp+OS0bqJQXn7UgwK+pe7Bam6gj8D3cdDBy9U2FbM1XP kUPL4oLIqkQ/D63Svouew57/gFsVPM9ktWqh5zB0wUYpR5W1LhomKdOjAMgDdKeX fsl9W94JZScXQ0R6FwQHN3RLAHCNwZEpM8rYJTRyRAdeOYQKOw2VrEXF+jaiRx/i e2smge5h/VPC9KcI/OUR0yo+pRpGch6dVUebkPeDAMQ/Oc4xMVaaHWjybJGX/7U6 I2P0xN0JHFA8XJr6mbu1ms0QO9vu92kHt8Vvi3UMvwocTzkf9GWrUJg+vywuS/Ou x7zNlgk9/PaS6kyNu1furcpezdTmxSi30xTlsXYTNj08A6aQ92br3gVDrn4VuRwv MqxRDXzz0W5xZeEofHCbmHftITWRY0x69NVy9jXcklk8djo0MJs= =9/6D -----END PGP SIGNATURE----- --nextPart3055556.44csPzL39Z--