Gentoo Archives: gentoo-alt

From: Markus Duft <mduft@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] prefix chaining
Date: Thu, 26 Mar 2009 07:50:45
Message-Id: 1238053750.6046.27.camel@localhost
In Reply to: Re: [gentoo-alt] prefix chaining by Markus Duft
On Wed, 2009-03-25 at 15:22 +0100, Markus Duft wrote:
[snip]
> i thought about that before, but i need to do things a little different. > my startprefix looks like this: > > 3 . "@GENTOO_PORTAGE_EPREFIX@"/sbin/functions.sh > 4 einfo "entering chained prefix @GENTOO_PORTAGE_EPREFIX@ ..." > 5 . "@GENTOO_PORTAGE_EPREFIX@"/etc/profile > 6 > 7 # if there is no local portage, foreign portage instances need to > know where to merge to. > 8 [[ -x "@GENTOO_PORTAGE_EPREFIX@"/usr/bin/emerge ]] || export > EPREFIX="@GENTOO_PORTAGE_EPREFIX@" > 9 > 10 ${BASH} --noprofile > 11 einfo "leaving chained prefix @GENTOO_PORTAGE_EPREFIX@ ..." > > i need to --noprofile, since the bash i'm starting may not come from > EPREFIX, but one of the parents in the chain. since i want my profile as > the first one, which recurses down through the whole chain, i need to do > it like that... (btw. functions.sh is in my own EPREFIX, since i require > a baselayout installed in EPREFIX)
any more to say on this? i guess i'll leave startprefix with me for now.
> > >
[snip] here's the changes i'm waiting to commit right now: A app-portage/prefix-chain-setup A app-portage/prefix-chain-setup/files A app-portage/prefix-chain-setup/files/prefix-chain-setup.in A app-portage/prefix-chain-setup/Manifest A app-portage/prefix-chain-setup/prefix-chain-setup-0.2.ebuild D sys-apps/portage/files/portage-2.2.00.12574-cross-prefix.patch D sys-apps/portage/files/portage-2.2.00.12540-cross-prefix.patch D sys-apps/portage/files/portage-2.2.00.12425-cross-prefix.patch A sys-apps/portage/files/portage-2.2.00.13133-prefix-chaining.patch M sys-apps/portage/Manifest M sys-apps/portage/portage-2.2.00.13133.ebuild A sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining.patch M sys-apps/baselayout-prefix/Manifest D sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r5.ebuild A + sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r6.ebuild A sys-apps/prefix-chain-utils A sys-apps/prefix-chain-utils/files A sys-apps/prefix-chain-utils/files/startprefix.in A sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in A sys-apps/prefix-chain-utils/Manifest A sys-apps/prefix-chain-utils/prefix-chain-utils-0.2.ebuild i version bumped baselayout, although i guess it would not be strictly neccessary - just to be safe. there are two new packages - app-portage/prefix-chain-setup provides the prefix-chain-setup script, which is used to bootstrap chained eprefixes. sys-apps/prefix-chain-utils contains startprefix, and a toolchain wrapper making it possible to use the native toolchain of another prefix with chaining (making paths of all prefixes in play appear on the command line - this may be slow where exec is slow, and the chain is long - i can live with that). i attached a complete diff (without manifests) FYI, if you like to glance over it again - or just the parts you haven't seen. (i'll start writing changelog right now, so those are not there... :)) Cheers, Markus
> Cheers, Markus > > >
[snip]
>

Attachments

File name MIME type
xx.patch.gz application/x-gzip

Replies

Subject Author
Re: [gentoo-alt] prefix chaining Fabian Groffen <grobian@g.o>