Gentoo Archives: gentoo-pms

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] What is meant by "once the current phase function has returned"?
Date: Thu, 04 Jun 2009 14:50:14
Message-Id: 20090604155003.4f08252f@snowcone
In Reply to: [gentoo-pms] What is meant by "once the current phase function has returned"? by Ulrich Mueller
On Thu, 4 Jun 2009 15:50:24 +0200
Ulrich Mueller <ulm@g.o> wrote:
> in the description of several commands (e.g., "has_version" and > "best_version") I find the following sentence: > > ,---- > | Ebuilds must not run any of these commands once the current phase > | function has returned. > `---- > > Can somebody please enlighten me what is meant by this? (The only > explanation I could think of is that the ebuild should not background > the command, but that seems very far-fetched. ;-)
Yes, that's what it means. Really I wanted to ban ebuilds from spawning any process that lasts beyond the scope of the phase function, but unfortunately some ebuilds do naughty things with init scripts, so we had to make do with things that query package manager internals... I seem to recall this being discussed on gentoo-dev along with the parallelisation stuff, although I can't seem to find an archives link. -- Ciaran McCreesh


File name MIME type
signature.asc application/pgp-signature