public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <mjo@gentoo.org>
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:26:10 -0400	[thread overview]
Message-ID: <60f1e5dc-9886-860b-8162-c4bd6366f477@gentoo.org> (raw)
In-Reply-To: <20200514125530.53978bd3@digimed.co.uk>

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.


  parent reply	other threads:[~2020-05-14 13:26 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
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 [this message]
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=60f1e5dc-9886-860b-8162-c4bd6366f477@gentoo.org \
    --to=mjo@gentoo.org \
    --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