From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 27E381381F3 for ; Sat, 15 Jun 2013 16:16:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8054FE09A2; Sat, 15 Jun 2013 16:16:37 +0000 (UTC) Received: from a1www.kph.uni-mainz.de (a1www.kph.uni-mainz.de [134.93.134.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B070E0980 for ; Sat, 15 Jun 2013 16:16:34 +0000 (UTC) Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id r5FGGXfE012630 for ; Sat, 15 Jun 2013 18:16:33 +0200 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.6/8.14.2) with ESMTP id r5FGGWUE002122; Sat, 15 Jun 2013 18:16:32 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.6/8.14.6/Submit) id r5FGGWF4002118; Sat, 15 Jun 2013 18:16:32 +0200 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20924.37728.751450.362549@a1i15.kph.uni-mainz.de> Date: Sat, 15 Jun 2013 18:16:32 +0200 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Calling die in a subshell In-Reply-To: <51BC9105.5070604@gentoo.org> References: <51BC9105.5070604@gentoo.org> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller X-Archives-Salt: 681b954d-1cfc-41b1-8fd0-c2354c0b7f6a X-Archives-Hash: 06b92c574bff9502c04e1262a7203f8e >>>>> 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