Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Markus Duft <mduft@g.o>
Subject: Re: portage prefix chaining support
Date: Fri, 03 Apr 2009 09:36:59 +0200
On Fri, 2009-04-03 at 09:04 +0200, Markus Duft wrote:
> On Thu, 2009-04-02 at 22:22 +0200, Fabian Groffen wrote:
> [snip]
[snip]
> > 
> > Now your chaining patches.
> > 
> > Apparently you take the total opposite direction now, where you first
> > have a Portage in EPREFIX (how you got it is questionable), and within
> > this Portage you expect it to take stuff it works with (bash, sed) from
> > a different location, let's call it CPREFIX.

another thing i'd like to propose. prefix-chaining does not change the
behaviour of anything as long as no READONLY_EPREFIX is set in
make.conf. i'm taking much care not to break things by accidently taking
executables for example from / or from somewhere they might be broken.
this is true for all of portage/baselayout/etc. (i think i manage to do
it right ;)), but aparently not for the ebuilds.

in some places i simply put a type -P instead of EPREFIX/... as you
said, this is wrong. so i'd like to do something like the portage
function i added yesterday: a function that does this (pseudocode):

find_in_eprefix_or_ro_root(path) {
	if -x $EPREFIX/$path
		return $EPREFIX/$path

	for root in readonly_roots {
		if allows_DEPEND($root) && -x $root/$path
			return $root/$path
	}

	return $EPREFIX/$path
}

i'd like to add this to prefix.eclass. this does not change the
behaviour of an evuild if there is no readonly root set, but makes it
work if there is...

ideas?

Cheers, Markus

[snip]
> Cheers, Markus
> 
> > 
> > 
> 
> 



References:
portage prefix chaining support
-- Markus Duft
Re: portage prefix chaining support
-- Fabian Groffen
Re: portage prefix chaining support
-- Markus Duft
Re: portage prefix chaining support
-- Fabian Groffen
Re: portage prefix chaining support
-- Markus Duft
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: portage prefix chaining support
Next by thread:
Re: portage prefix chaining support
Previous by date:
Re: portage prefix chaining support
Next by date:
Re: portage prefix chaining support


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.