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 4BB6A1382C5 for ; Thu, 14 May 2020 08:47:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 877B4E0929; Thu, 14 May 2020 08:47:04 +0000 (UTC) Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (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 41793E084E for ; Thu, 14 May 2020 08:47:04 +0000 (UTC) Received: by mail-pf1-x42a.google.com with SMTP id n18so1036738pfa.2 for ; Thu, 14 May 2020 01:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jsteward.moe; s=google; h=from:to:references:in-reply-to:subject:date:message-id:thread-index :content-language:mime-version; bh=pT+0Rjm/44Wu8RrxcgT2/XgxdobXtzbmVt7zD9kCaho=; b=bjA6YlQt8j5bS69VJ9kfZvpfF1C69agUBXEbBtdBw5LsKZPQZ8OFG8Lop8rvzobLBw gVVlXYqEWJEnbRJwEOO5fuvodP4Fp7RcW6Nc2CSyRfx7RaVVE+RpK3wqQgtUXc+a1Nml FGL02+achqdHpZO4z2p3ksGtKSNqkOrUCIfrxWYfeEsnmlp/wf2KI06Md6gVQ0TVijZ8 uvE32pdj8sFiBPfUvw26POmVxRbZBoH4cScQlNMODLhPaUO3ExAHQoNbE8/0ZguluAU5 LCwieKccScCtAlg02Gmua6vtyHAWLzZL+ful2/dc9ZPDey/FD+AwJbTpy+p7hRFvtxt6 POLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:thread-index:content-language:mime-version; bh=pT+0Rjm/44Wu8RrxcgT2/XgxdobXtzbmVt7zD9kCaho=; b=fpfnLeJOOR6lttKNyzXnejmcVlO2cC+58ny1CA+aBAkNsuD0ZR1pVKdpT4a+h0z3uS 2bwUtBdy78sUDgEJHXDR5/3u6ZXSjwV6Y7s5RyvJ8RFn6+asdiJTOu1kNzg7L7OixcxU EufmiC1qDC6Xize659EyKVCdKAi+43m03SJiBwEv4WJl5TyAQufIQu6SxIS/eXsbsayT Lz/iJs5NXHbSh3ILamvL52qa9+t6kpFvyw5I0IQvsc4QOa9PGClkIQCqu7cOqb1lMNSa QqLEIeq/4Oz9hSWnSbW1YEf8w5pq9CvY7zgNalyRjKKcg2AVqxt4u1I1jaxL9ufMVFSq qSsQ== X-Gm-Message-State: AOAM53055SixYT7AgLDL9Wc+gb6NaRGLCDao7WzIQd5NuVP2oOrrcmFj VwRrbSu2CKsu2CmpGBm673tZ5n6XOkj+bs38 X-Google-Smtp-Source: ABdhPJwH2jcmNp54lRAhni21L9QBGFR21mbii9KkOPTyO7At0FK0RUByQTTwIxWVsyoeuGlEkvqbFA== X-Received: by 2002:aa7:9484:: with SMTP id z4mr3547451pfk.144.1589446022686; Thu, 14 May 2020 01:47:02 -0700 (PDT) Received: from KAGE ([2400:8901:e001:ab:4c2a:f0f0:0:4]) by smtp.gmail.com with ESMTPSA id c10sm1732322pfm.50.2020.05.14.01.47.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2020 01:47:01 -0700 (PDT) From: "Pengcheng Xu" To: References: <20200514050205.GA15477.ref@pc-fx> <20200514050205.GA15477@pc-fx> <495ff3d5-ce2f-71e6-caac-1eb5cdbf988d@gmail.com> In-Reply-To: <495ff3d5-ce2f-71e6-caac-1eb5cdbf988d@gmail.com> Subject: RE: [gentoo-user] Building packages in different prefix without rebuilding system packages Date: Thu, 14 May 2020 16:46:58 +0800 Message-ID: <02e101d629cc$3c3c4ba0$b4b4e2e0$@jsteward.moe> X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGv0SLFSqYCIF7cNAVg/2yuacK4ggFoWxuuAgzv39Go2EnBgA== Content-Language: ja 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; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-=Nkql8OEPdU5gd/=-=" X-Archives-Salt: f1554eb6-8891-4b6c-9b73-1a5b4d4d86ea X-Archives-Hash: 69b0b99dd8c8e7d7e1e4313952edb701 This is a multipart message in MIME format. --=-=Nkql8OEPdU5gd/=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fran=C3=A7ois-Xavier's first email didn't make its way to my inbox, so I'm = replying to this one instead. EPREFIX is specifically designed for the Gen= too Prefix project [1]. In a word, Portage installs _everything_ inside th= e prefix, and uses nothing except the kernel (and some user files under hom= e) outside the prefix. It is widely used in supercomputing and corporate i= nfrastructure where the user does not have escalated permissions and the ex= isting packages are too old or missing (CentOS 5) for whatever the user is = trying to do. What you're trying to achieve sounded a lot like `./configure --prefix=3D..= .` to me. If you're just dealing a small amount of things, I would suggest= modifying the ebuild (in a local overlay) and changes where the program in= stalls to. That means no special handling on Portage's side, just the app'= s installed to somewhere else rather than the default prefix (in most cases= '/usr'). [1]: https://wiki.gentoo.org/wiki/Project:Prefix Regards, --=20 Pengcheng Xu https://jsteward.moe > -----Original Message----- > From: Dale > Sent: Thursday, May 14, 2020 1:14 PM > To: gentoo-user@lists.gentoo.org > Subject: Re: [gentoo-user] Building packages in different prefix without > rebuilding system packages >=20 > Fran=C3=A7ois-Xavier Carton wrote: >=20 >=20 > 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 >=20 >=20 > I'm clueless on EPREFIX but if you want to avoid compiling a package twic= e, > would the -k option help? If you have portage set to save the binaries y= ou > compiled before, it would install from that instead of compiling things t= wice. >=20 > Just thought I'd mention just in case it would help. >=20 > Dale >=20 > :-) :-) --=-=Nkql8OEPdU5gd/=-= Content-Type: application/pgp-signature; name="openpgp-digital-signature.asc" Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEDwqrvuDZbn+NMYrRObYNsFSJJP8FAl69BXsACgkQObYNsFSJ JP+vfw/+JQWJbcz0ycuJwaXbLVlk7f8MvGuSXaS+/e3nVjiUdcXhPF5qcYswvZrw 9kiFalpww5U6JTY8Tw6UpMGgOM9CdZkyOOeA2XexRVaFJOIQV1q82xC3MXtxwMEP kyrw+mYBjMU1Ue/V21uTftjumb0rYZ2AErVRHWH0PyLa9V6QoMEzv4ctoAtaUI0+ LZaPGCgtme65yaHzL+ZayoaGg87ZGf/h17d7g+anomlJZ+/PytzctlR4eabYaaGH mACrbZ0fvaBI27u/HJGKuYwxnXgR4afKd1wgSLyFmdLAPROr+t4tLSBjyqGBZaMC VTvrhb3y833UV2k/duDgYQWNHoDSz2LTPrvfQhIKS9+L0L/u5TymEaZZezJjLLUp MbumH/W9s2XioHrL39LP6DUphzwvr2bkdG31zbhl+euDHBJNRBEpac+goklk4b9O /bhnkUBQwhaE8sWmUCnkIcLDnp78JvlNa/+1ezuyvxvbWoBNl7wuybU+OZuf6CXl VIKwx2dVmqTL3hYiJ/zCB6sXdHb4URfN4FF/LP77vbs5wGiLeKAKFJBFSn3O0d1P /DSA/itBCxf0nr5uNKi9T73pVqb1i8OIYuwksa5Xlz2UnBjRkIR4SfvKEMJRGz7A gCWK5AH9hNl3ZTSWCF9XLXLjb/ewvhJGuuzxhoKkyx4d8PKJ79c= =+3Zm -----END PGP SIGNATURE----- --=-=Nkql8OEPdU5gd/=-=--