>>>>> On Sat, 15 Jun 2013, Ulrich Mueller wrote:

>>> 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.

>> How does that make any sense?

> It makes perfect sense. The specification doesn't require that the
> package manager's die function works in a subshell, so ebuilds and
> eclasses cannot rely on such behaviour.

It turns out that killing the main process (as both Portage and
Paludis do) isn't sufficient in all cases, thanks to Ciaran for
pointing this out. It will already fail for something simple like:

    foo | ( bar || die )

See bug 465008 comment #2 and following.

> If you want a different behaviour for future EAPIs, then PMS
> needs to be changed.

Ulrich

Reply via email to