>>>>> On Sat, 15 Jun 2013, Mike Gilbert wrote:

> The devmanual warns that calling die in a subshell does not work.

> http://devmanual.gentoo.org/ebuild-writing/error-handling/index.html

> This warning has been obsolete for some time; modern versions of
> Portage handle die in a subshell just fine.

> In fact, at least a couple of eclasses rely on this behavior. For
> example, python-r1 uses subshells created by multiprocessing.eclass
> to implement parallel "sub-phase" functions, any of which may call
> die on failure.

> Are there any objections to removing this warning from the
> devmanual?

PMS doesn't guarantee that die works correctly in a subshell:
http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-12800011.3.3

So the devmanual agrees with the spec, and the eclasses need to be
fixed.

Ulrich

Reply via email to