public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Pengcheng Xu" <i@jsteward.moe>
To: <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] Building packages in different prefix without rebuilding system packages
Date: Thu, 14 May 2020 16:46:58 +0800	[thread overview]
Message-ID: <02e101d629cc$3c3c4ba0$b4b4e2e0$@jsteward.moe> (raw)
In-Reply-To: <495ff3d5-ce2f-71e6-caac-1eb5cdbf988d@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2511 bytes --]

François-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 Gentoo Prefix project [1].  In a word, Portage installs _everything_ inside the prefix, and uses nothing except the kernel (and some user files under home) outside the prefix.  It is widely used in supercomputing and corporate infrastructure where the user does not have escalated permissions and the existing 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=...` 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 installs 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,
-- 
Pengcheng Xu
https://jsteward.moe

> -----Original Message-----
> From: Dale <rdalek1967@gmail.com>
> 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
> 
> François-Xavier Carton wrote:
> 
> 
> 	Hi,
> 
> 	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.
> 
> 	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.
> 
> 	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?
> 
> 	Thanks,
> 	-François-Xavier
> 
> 
> 
> 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.
> 
> Just thought I'd mention just in case it would help.
> 
> Dale
> 
> :-)  :-)

[-- Attachment #2: openpgp-digital-signature.asc --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

  parent reply	other threads:[~2020-05-14  8:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200514050205.GA15477.ref@pc-fx>
2020-05-14  5:02 ` [gentoo-user] Building packages in different prefix without rebuilding system packages François-Xavier Carton
2020-05-14  5:13   ` Dale
2020-05-14  8:07     ` Michael
2020-05-14  8:37       ` François-Xavier Carton
2020-05-14  8:46     ` Pengcheng Xu [this message]
2020-05-14 10:07       ` Neil Bothwick
2020-05-14 10:17         ` Pengcheng Xu
2020-05-14 11:55           ` Neil Bothwick
2020-05-14 13:09             ` Pengcheng Xu
2020-05-14 13:26             ` Michael Orlitzky
2020-05-14 22:32               ` François-Xavier Carton
2020-05-15 10:53   ` [gentoo-user] " Michael Haubenwallner
2020-05-15 21:44     ` François-Xavier Carton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='02e101d629cc$3c3c4ba0$b4b4e2e0$@jsteward.moe' \
    --to=i@jsteward.moe \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox