1 |
On Fri, May 15, 2020 at 12:53:16PM +0200, Michael Haubenwallner wrote: |
2 |
> Hi François-Xavier, |
3 |
> |
4 |
> What you're after is known as "Prefix/Stack", where you have some "base" |
5 |
> Prefix, which's portage does manage packages in another - stacked - Prefix. |
6 |
> |
7 |
> While this does work already with "Prefix/Guest" as base Prefix, there is no |
8 |
> technical reason to not work with "Prefix/Standalone" or even "Gentoo Linux" |
9 |
> as the base Prefix. The only problem maybe is that "Prefix/Guest" does use |
10 |
> a portage version with additional patches. |
11 |
> |
12 |
> But still, you can get an idea about how this works, using "Prefix/Guest": |
13 |
> |
14 |
> $ docker run -t -i gentooprefix/prefix-guest-64bit-fedora -c /bin/bash |
15 |
> |
16 |
> At the docker prompt: |
17 |
> |
18 |
> Enter the Guest Prefix preinstalled to /tmp/gentoo: |
19 |
> $ /tmp/gentoo/startprefix |
20 |
> |
21 |
> Set up your stacked Prefix: |
22 |
> $ prefix-stack-setup --eprefix=$HOME/stack --profile=/tmp/gentoo/etc/portage/make.profile |
23 |
> Note that "~/stack" will not work here, bash refuses to resolve '~' after '='. |
24 |
> |
25 |
> Leave the Guest Prefix: |
26 |
> $ exit |
27 |
> |
28 |
> Enter your just created stacked Prefix: |
29 |
> $ ~/stack/startprefix |
30 |
> |
31 |
> Emerge your package, for example: |
32 |
> $ emerge sys-libs/zlib |
33 |
> |
34 |
> Have fun! |
35 |
> |
36 |
> HTH, |
37 |
> /haubi/ |
38 |
> |
39 |
|
40 |
Thanks, this looks great! I'll play with it and see how it works :) |