public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] EAPI checking in eclasses
@ 2007-12-31 14:34 Caleb Tennis
  2007-12-31 15:06 ` Ciaran McCreesh
  2008-01-04  5:46 ` Donnie Berkholz
  0 siblings, 2 replies; 3+ messages in thread
From: Caleb Tennis @ 2007-12-31 14:34 UTC (permalink / raw
  To: gentoo-dev

Is it legal for an eclass to check the EAPI version (presumably by using the EAPI
variable) and perform some dependent behavior based on what it sees?  I don't see
any eclasses using EAPI for anything, so I'm curious.


-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] EAPI checking in eclasses
  2007-12-31 14:34 [gentoo-dev] EAPI checking in eclasses Caleb Tennis
@ 2007-12-31 15:06 ` Ciaran McCreesh
  2008-01-04  5:46 ` Donnie Berkholz
  1 sibling, 0 replies; 3+ messages in thread
From: Ciaran McCreesh @ 2007-12-31 15:06 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

On Mon, 31 Dec 2007 09:34:05 -0500 (EST)
"Caleb Tennis" <caleb@gentoo.org> wrote:
> Is it legal for an eclass to check the EAPI version (presumably by
> using the EAPI variable) and perform some dependent behavior based on
> what it sees?  I don't see any eclasses using EAPI for anything, so
> I'm curious.

Yes, so long as that dependent behaviour isn't intended to indicate an
error.

-- 
Ciaran McCreesh

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] EAPI checking in eclasses
  2007-12-31 14:34 [gentoo-dev] EAPI checking in eclasses Caleb Tennis
  2007-12-31 15:06 ` Ciaran McCreesh
@ 2008-01-04  5:46 ` Donnie Berkholz
  1 sibling, 0 replies; 3+ messages in thread
From: Donnie Berkholz @ 2008-01-04  5:46 UTC (permalink / raw
  To: gentoo-dev

On 09:34 Mon 31 Dec     , Caleb Tennis wrote:
> Is it legal for an eclass to check the EAPI version (presumably by 
> using the EAPI variable) and perform some dependent behavior based on 
> what it sees?  I don't see any eclasses using EAPI for anything, so 
> I'm curious.

You can't treat EAPI as an integer, though, which the commit to the qt 
eclass did. You might want to do a case statement instead for string 
matches.

Thanks,
Donnie
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-04  5:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-31 14:34 [gentoo-dev] EAPI checking in eclasses Caleb Tennis
2007-12-31 15:06 ` Ciaran McCreesh
2008-01-04  5:46 ` Donnie Berkholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox