public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-dev] RFD: EAPI specification in ebuilds
  @ 2012-03-09 16:29 99%                       ` Michał Górny
  0 siblings, 0 replies; 1+ results
From: Michał Górny @ 2012-03-09 16:29 UTC (permalink / raw
  To: gentoo-dev; +Cc: michael

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

On Fri, 09 Mar 2012 00:35:14 -0500
Michael Orlitzky <michael@orlitzky.com> wrote:

> On 03/09/2012 12:04 AM, Michał Górny wrote:
> >>
> >> This is of course isomorphic to requiring a specific EAPI=4 format,
> >> but does allow you to do stupid things like x=`seq 4 4`; eapi $x;
> >> if you want.
> >
> > What advantage does it give us? We still can't change ebuild syntax
> > in global scope because bash will barf.
> >
> 
> Not in EAPI=5, no, but once all PMs are using the eapi function we
> could.
> 
> The function can do any crazy thing you want. Right now, we need to 
> source the entire ebuild to get at its environment. Before we source
> it for real, we just want to know the value of $EAPI. Since eapi()
> will be the first function called, it can be our interface to this
> variable.

What if bash starts to parse the script completely and barfs at 'syntax
error' before it starts executing stuff?

-- 
Best regards,
Michał Górny

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

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-03-07 20:41     [gentoo-dev] RFD: EAPI specification in ebuilds Ulrich Mueller
2012-03-07 22:14     ` Michael Orlitzky
2012-03-08 12:03       ` Michał Górny
2012-03-08 15:56         ` Michael Orlitzky
2012-03-08 17:28           ` Michał Górny
2012-03-08 17:48             ` Michael Orlitzky
2012-03-08 17:53               ` Ciaran McCreesh
2012-03-08 18:37                 ` Michael Orlitzky
2012-03-08 18:48                   ` Ciaran McCreesh
2012-03-08 21:35                     ` Michael Orlitzky
2012-03-09  5:04                       ` Michał Górny
2012-03-09  5:35                         ` Michael Orlitzky
2012-03-09 16:29 99%                       ` Michał Górny

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