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 BF6121381F3 for ; Sun, 16 Jun 2013 13:01:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D69FDE08EA; Sun, 16 Jun 2013 13:00:50 +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 CCADDE087F for ; Sun, 16 Jun 2013 13:00:49 +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 r5GD0lV7019127 for ; Sun, 16 Jun 2013 15:00:47 +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 r5GD0l8p018227; Sun, 16 Jun 2013 15:00:47 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.6/8.14.6/Submit) id r5GD0lPf018226; Sun, 16 Jun 2013 15:00:47 +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: <20925.46847.280329.6489@a1i15.kph.uni-mainz.de> Date: Sun, 16 Jun 2013 15:00:47 +0200 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Calling die in a subshell In-Reply-To: <20924.38251.723173.470046@a1i15.kph.uni-mainz.de> References: <51BC9105.5070604@gentoo.org> <20924.37728.751450.362549@a1i15.kph.uni-mainz.de> <51BC941B.8090602@gentoo.org> <20924.38251.723173.470046@a1i15.kph.uni-mainz.de> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller X-Archives-Salt: a14ccd6d-189a-4d70-af87-ac3efdd07062 X-Archives-Hash: dae1318019a016ab0a32428250c8f663 >>>>> 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