Gentoo Archives: gentoo-portage-dev

From: Ned Ludd <solar@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] prefix portage chaining
Date: Thu, 26 Mar 2009 17:08:19
Message-Id: 1238087295.16056.9.camel@hangover
In Reply to: Re: [gentoo-portage-dev] prefix portage chaining by Markus Duft
1 On Thu, 2009-03-26 at 08:26 +0100, Markus Duft wrote:
2 > On Wed, 2009-03-25 at 11:44 -0700, Ned Ludd wrote:
3 > [snip]
4 > >
5 > >
6 > > While much of what you are talking about here mainly applies to prefix,
7 > > it looks to me from glancing over the code that you might of solved a
8 > > long standing problem in the embedded world with cross compiling via
9 > > portage. 222895 If that is the case, then I owe you a beer. one about
10 > > the size of a keg.
11 > >
12 >
13 > lol, thx for the beer ;)
14 >
15 > hmm... looking over that patch again, the only EPREFIX dependent thing
16 > is, that i'm removing EPREFIX from the vartree class again :) so this
17 > should pretty much plain apply to main too, and simply work. you may
18 > want to rename READONLY_EPREFIX to READONLY_ROOT, but thats it :)
19 >
20 > the other stuff besides portage modification (baselayout patchery, etc.
21 > is prefix specific again, so all you'd need is the portage changes.
22 >
23 > if you will try it, please let me know if it worked :) with the attached
24 > patch "sed -i -e 's,READONLY_EPREFIX,READONLY_ROOT,g'", and applying to
25 > an installed /usr/lib/portage should enable you to do it.
26 > (backup /usr/lib/portage - i trust my work, but... we never know for
27 > sure :))
28 >
29 > then add to make.conf: READONLY_ROOT=/my/other/root:DEPEND
30 >
31 > i hope this is what you where looking for...! and i hope it doesn't
32 > somehow clash with the existing cross compile logic in portage regarding
33 > where to merge to...
34 >
35 > Cheers, Markus
36
37
38 patch failed a few hunks for me on ~arch vanilla-portage. I did point
39 out the patch to one of the gentoo embedded/openmoko guys. Think they
40 will be the most eager to test this.
41
42 In our case if the code did work out whatever you call READONLY_ROOT we
43 would probably need to expand to allow for more that one ROOT if it has
44 to be defined in the parent /etc/make.conf
45
46
47 --
48 Ned Ludd <solar@g.o>
49 Gentoo Linux

Replies

Subject Author
Re: [gentoo-portage-dev] prefix portage chaining Markus Duft <mduft@g.o>