Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Calling die in a subshell
Date: Sat, 15 Jun 2013 16:16:42
Message-Id: 20924.37728.751450.362549@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] Calling die in a subshell by Mike Gilbert
1 >>>>> On Sat, 15 Jun 2013, Mike Gilbert wrote:
2
3 > The devmanual warns that calling die in a subshell does not work.
4
5 > http://devmanual.gentoo.org/ebuild-writing/error-handling/index.html
6
7 > This warning has been obsolete for some time; modern versions of
8 > Portage handle die in a subshell just fine.
9
10 > In fact, at least a couple of eclasses rely on this behavior. For
11 > example, python-r1 uses subshells created by multiprocessing.eclass
12 > to implement parallel "sub-phase" functions, any of which may call
13 > die on failure.
14
15 > Are there any objections to removing this warning from the
16 > devmanual?
17
18 PMS doesn't guarantee that die works correctly in a subshell:
19 http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-12800011.3.3
20
21 So the devmanual agrees with the spec, and the eclasses need to be
22 fixed.
23
24 Ulrich

Replies

Subject Author
Re: [gentoo-dev] Calling die in a subshell hasufell <hasufell@g.o>
Re: [gentoo-dev] Calling die in a subshell Mike Gilbert <floppym@g.o>
Re: [gentoo-dev] Calling die in a subshell Tom Wijsman <TomWij@g.o>