FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 03-07-2009, 09:06 AM
Nirbheek Chauhan
 
Default x-modular.eclass: A modified approach to EAPI support

On Sat, Mar 7, 2009 at 3:20 PM, Ulrich Mueller <ulm@gentoo.org> wrote:
>>>>>> On Fri, 06 Mar 2009, Donnie Berkholz wrote:
>
>> Any thoughts?
>
>> + * * * * * * *)
>> + * * * * * * * * * * die "Unknown EAPI ${EAPI}"
>> + * * * * * * * * * * * * ;;
>
> Is is safe to assume that an unknown EAPI will provide a "die"
> function?
>

If we get all Ciaran-ey about that, then we can't even assume the
existence of a case statement in some future version of bash (which is
required by some EAPI)


--
~Nirbheek Chauhan
 
Old 03-08-2009, 07:23 PM
Alistair Bush
 
Default x-modular.eclass: A modified approach to EAPI support

Nirbheek Chauhan wrote:

On Sat, Mar 7, 2009 at 3:20 PM, Ulrich Mueller <ulm@gentoo.org> wrote:

On Fri, 06 Mar 2009, Donnie Berkholz wrote:

Any thoughts?
+ *)
+ die "Unknown EAPI ${EAPI}"
+ ;;

Is is safe to assume that an unknown EAPI will provide a "die"
function?



If we get all Ciaran-ey about that, then we can't even assume the
existence of a case statement in some future version of bash (which is
required by some EAPI)




I think in these cases we just have to use common sense. If a function
is deprecated or "known to be 'on the way out'" then using them would
obviously be a bad idea. On the other hand even if they are used,
surely someone would test an ebuild and discover this case pretty quickly.
 

Thread Tools




All times are GMT. The time now is 01:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org