Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Thomas Sachau <tommy@g.o>
Subject: Re: Usage of econf with an additional || die
Date: Tue, 30 Sep 2008 18:47:58 +0200
Jeremy Olexa schrieb:
> Ben de Groot wrote:
> 
>> So, can we have a nice little table of which functions die by themselves
>> and which ones need || die added in ebuilds? Please?
>>
>> Thanks,
>>
> 
> A quick grep of /usr/lib/portage/bin clues you in that every function
> that is an external file does *not* die by itself. So, emake, do*, etc..
> 
> %% grep -c die * |grep -v ":0"
> ebuild.sh:61
> etc-update:14
> isolated-functions.sh:18
> misc-functions.sh:26
> repoman:2
> 
> I believe this is because you can have those functions in a subshell and
> then die won't behave predictably. I'm sure some PM people will correct
> me if I am wrong. ;)
> 
> -Jeremy
> 
> 

From my knowledge and experience with sunrise:

some functions that dont need "|| die":
epatch, econf, eqmake3, eqmake4

some functions that need "|| die":
emake, do*

Afaik die wont work in a subshell independent of how it is called, so the die from econf wont work,
but also the "emake || die" one would also not work.

-- 
Thomas Sachau

Gentoo Linux Developer

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: Usage of econf with an additional || die
-- Matthias Schwarzott
References:
Re: Default src_install for EAPI-2 or following EAPI
-- Ulrich Mueller
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Thomas Sachau
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Bo Ørsted Andresen
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Nirbheek Chauhan
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Thomas Sachau
Usage of econf with an additional || die
-- Thomas Sachau
Re: Usage of econf with an additional || die
-- Peter Volkov
Re: Usage of econf with an additional || die
-- Ben de Groot
Re: Usage of econf with an additional || die
-- Jeremy Olexa
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Usage of econf with an additional || die
Next by thread:
Re: Usage of econf with an additional || die
Previous by date:
Re: [gentoo-commits] gentoo-x86 commit in profiles: package.mask
Next by date:
Re: Re: Default src_install for EAPI-2 or following EAPI


Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.