Re: [gentoo-dev] EAPI placement

2007-12-22 Thread Carsten Lohrke
On Mittwoch, 12. Dezember 2007, Ciaran McCreesh wrote: > On Wed, 12 Dec 2007 23:14:24 +0100 > There is no way for an eclass to throw an error. Nor, with the current > way Portage implements EAPI, is there a way to add such a way. It's not perfect, but _pkg_setup() { something_wrong && die } s

Re: [gentoo-dev] EAPI placement

2007-12-22 Thread Carsten Lohrke
On Mittwoch, 12. Dezember 2007, Santiago M. Mola wrote: > Nobody said that eclasses can't use new features. Using new features in ebuilds or eclasses relates. EAPI A using ebuild with EAPI B using eclass (but not defining any EAPI) is your hard nut. Shouldn't happen, but will. And bugs in eclas

Re: [gentoo-dev] EAPI placement

2007-12-15 Thread Marius Mauch
On Sat, 15 Dec 2007 10:43:35 +0100 Vlastimil Babka <[EMAIL PROTECTED]> wrote: > Ciaran McCreesh wrote: > > On Wed, 12 Dec 2007 23:14:24 +0100 > > Carsten Lohrke <[EMAIL PROTECTED]> wrote: > >> I disagree here. It would be annoying and possibly even hindering > >> in future not being able to use hi

Re: [gentoo-dev] EAPI placement

2007-12-15 Thread Vlastimil Babka
Ciaran McCreesh wrote: > On Wed, 12 Dec 2007 23:14:24 +0100 > Carsten Lohrke <[EMAIL PROTECTED]> wrote: >> I disagree here. It would be annoying and possibly even hindering in >> future not being able to use higher EAPI features in eclasses. Point >> is the eclass has to check, if the author of an

Re: [gentoo-dev] EAPI placement

2007-12-13 Thread Petteri Räty
Ciaran McCreesh kirjoitti: > On Wed, 12 Dec 2007 15:08:36 +0100 > "Santiago M. Mola" <[EMAIL PROTECTED]> wrote: >> Would it be possible to have eclass/eapiBLAH/foo.eclass? > > No. Not even with an EAPI change. This is one of the deficiencies in > the way EAPI was designed -- an EAPI cannot change

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Marius Mauch
On Tue, 11 Dec 2007 20:00:51 -0500 Doug Klima <[EMAIL PROTECTED]> wrote: > When you could simply have $pkg_manager execute an eclass as 1 > EAPI, another eclass as another and the ebuild as a third EAPI and > simplify it for the eclass maintenance. Which doesn't work at all. Simple example would

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Ciaran McCreesh
On Wed, 12 Dec 2007 23:14:24 +0100 Carsten Lohrke <[EMAIL PROTECTED]> wrote: > I disagree here. It would be annoying and possibly even hindering in > future not being able to use higher EAPI features in eclasses. Point > is the eclass has to check, if the author of an ebuild sets another > EAPI and

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Santiago M. Mola
On Dec 12, 2007 11:14 PM, Carsten Lohrke <[EMAIL PROTECTED]> wrote: > On Mittwoch, 12. Dezember 2007, Ciaran McCreesh wrote: > > * Eclasses may not set EAPI. > > > > * Eclasses may not assume a particular EAPI. > > I disagree here. It would be annoying and possibly even hindering in future > not be

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Carsten Lohrke
On Mittwoch, 12. Dezember 2007, Ciaran McCreesh wrote: > * Eclasses may not set EAPI. > > * Eclasses may not assume a particular EAPI. I disagree here. It would be annoying and possibly even hindering in future not being able to use higher EAPI features in eclasses. Point is the eclass has to ch

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Doug Klima
Ciaran McCreesh wrote: > On Wed, 12 Dec 2007 09:20:02 -0500 > Doug Klima <[EMAIL PROTECTED]> wrote: > >> And I brough up valid reasons with zmedico why putting it before the >> inherit line was flawed currently since it could lead to some >> seriously unexpected behavior. >> > > It's only u

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Piotr Jaroszyński
On Wednesday 12 of December 2007 15:20:19 Ciaran McCreesh wrote: > The .ebuild-eapi proposal didn't have this problem, but unfortunately it > was rejected for political reasons... I wasn't around then, but the requirment of actually sourcing the ebuild to read the EAPI value is extremely stupid i

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Ciaran McCreesh
On Wed, 12 Dec 2007 09:22:41 -0500 Doug Klima <[EMAIL PROTECTED]> wrote: > My point is it's fine to state this, however there needs to be > enforcement of this in the associated utilities. repoman, etc. > Unfortunately, eclasses are not checked at all at commit time, which > would allow developers

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Ciaran McCreesh
On Wed, 12 Dec 2007 09:20:02 -0500 Doug Klima <[EMAIL PROTECTED]> wrote: > And I brough up valid reasons with zmedico why putting it before the > inherit line was flawed currently since it could lead to some > seriously unexpected behavior. It's only unexpected if people screw up. If everyone unde

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Doug Klima
Ciaran McCreesh wrote: > On Tue, 11 Dec 2007 16:59:28 -0500 > Doug Klima <[EMAIL PROTECTED]> wrote: > >> discuss. >> > > * EAPI may only be set before the 'inherit' in an ebuild. > > * Eclasses may not set EAPI. > > * Eclasses may not assume a particular EAPI. > > * If an eclass needs to wo

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Ciaran McCreesh
On Wed, 12 Dec 2007 15:08:36 +0100 "Santiago M. Mola" <[EMAIL PROTECTED]> wrote: > Would it be possible to have eclass/eapiBLAH/foo.eclass? No. Not even with an EAPI change. This is one of the deficiencies in the way EAPI was designed -- an EAPI cannot change the behaviour of inherit, nor can it i

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Doug Klima
Petteri Räty wrote: > Doug Klima kirjoitti: > >> Since it doesn't appear the question was answered by the last thread. >> I'm starting a new thread. >> >> > > http://article.gmane.org/gmane.linux.gentoo.devel/52981/match=eapi > > I think it was answered. > > Regards, > Petteri > > And I

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Santiago M. Mola
On Dec 12, 2007 1:21 PM, Ciaran McCreesh <[EMAIL PROTECTED]> wrote: > On Tue, 11 Dec 2007 16:59:28 -0500 > Doug Klima <[EMAIL PROTECTED]> wrote: > > discuss. > > * EAPI may only be set before the 'inherit' in an ebuild. > > * Eclasses may not set EAPI. > > * Eclasses may not assume a particular EAP

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Ciaran McCreesh
On Tue, 11 Dec 2007 16:59:28 -0500 Doug Klima <[EMAIL PROTECTED]> wrote: > discuss. * EAPI may only be set before the 'inherit' in an ebuild. * Eclasses may not set EAPI. * Eclasses may not assume a particular EAPI. * If an eclass needs to work with multiple EAPIs, EAPI-specific code should be

Re: [gentoo-dev] EAPI placement

2007-12-12 Thread Petteri Räty
Doug Klima kirjoitti: > Since it doesn't appear the question was answered by the last thread. > I'm starting a new thread. > http://article.gmane.org/gmane.linux.gentoo.devel/52981/match=eapi I think it was answered. Regards, Petteri signature.asc Description: OpenPGP digital signature

Re: [gentoo-dev] EAPI placement

2007-12-11 Thread Doug Klima
Marius Mauch wrote: On Tue, 11 Dec 2007 16:59:28 -0500 Doug Klima <[EMAIL PROTECTED]> wrote: Since it doesn't appear the question was answered by the last thread. I'm starting a new thread. The only sane solution I can think of is that eclasses shouldn't be allowed to change EAPI, but use con

Re: [gentoo-dev] EAPI placement

2007-12-11 Thread Marius Mauch
On Tue, 11 Dec 2007 16:59:28 -0500 Doug Klima <[EMAIL PROTECTED]> wrote: > Since it doesn't appear the question was answered by the last thread. > I'm starting a new thread. The only sane solution I can think of is that eclasses shouldn't be allowed to change EAPI, but use conditionals to behave

[gentoo-dev] EAPI placement

2007-12-11 Thread Doug Klima
Since it doesn't appear the question was answered by the last thread. I'm starting a new thread. did we decide where EAPI goes in an ebuild? yes, just above the inherit that's the safest and simplest thing to do, anyway zmedico: what if I have EAPI=2 above the inherit but an eclass has EAPI=1