From: Brian Harring <ferringb@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] PATCH: initial EAPI awareness
Date: Fri, 2 Sep 2005 01:04:53 -0500 [thread overview]
Message-ID: <20050902060453.GD8478@nightcrawler> (raw)
In-Reply-To: <4317E2D0.2080401@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2376 bytes --]
On Thu, Sep 01, 2005 at 10:27:44PM -0700, Zac Medico wrote:
> Paul de Vrieze wrote:
> >On Wednesday 31 August 2005 14:57, Brian Harring wrote:
> >
> >>Re: tagging EAPI at the top of a file, infra would probably shoot me for
> >>doing such- till a live, fully compatible and *roughly* equivalent parser
> >>is available, portage would have to do a bit of grepping, jacking up the
> >>regen times.
> >
> >
> >If in cache EAPI can be gotten from the cache. If not, I don't think it
> >matters where in the file EAPI occurs from the standpoint of getting it's
> >value. The only thing would be that in the future a fast EAPI parser could
> >be made that would just look at EAPI and get its version. I could easilly
> >write you such a parser.
>
> It is impossible write a parser for an unconstrained and unknown format
> that may exist in the future. If we put a constraint on the format, in
> order to parse the EAPI, then we contradict our original goal (to
> unconstrain the format).
>
> A better approach IMO would be to store the EAPI in a separate file such as
> metadata.xml. This would allow *absolute* flexibility in the "ebuild"
> format. Portage would be able to select an appropriate parser with no need
> to examine the "ebuild" itself.
Disallows eclasses from ever setting eapi.
Like I've said, EAPI is ebuild specific. Ebuild is a format; eapi
defines revisions of it, in my mind a minor revision of the ebuild 1
format. Any form of loss of backwards compatability *should* be a
different format, .ebuild2 for all I care.
Trying to use EAPI to allow for N different formats into one format is
wrong from where I sit; you would need a container format for it,
which ebuild wasn't designed for (nor is it easily extensible to be
made so I posit).
EAPI's original specification was for handling addition of new funcs,
different hooks in the ebuild; I prefer it remain as this. The core
rewrite is format agnostic, if a new format is defined (whether a
massively managled version of ebuild or flat out new), it's a seperate
format and should be handled via the core, not via ebuild specific
package handling.
There's no reason a repository can't hold multiple formats internally;
the capability is there, use that rather then trying to jam too much
into EAPI, imo at least.
~harring
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-09-02 6:06 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-27 10:53 [gentoo-portage-dev] PATCH: initial EAPI awareness Brian Harring
2005-08-28 5:46 ` Jason Stubbs
2005-08-28 9:29 ` Brian Harring
2005-08-28 15:32 ` warnera6
2005-08-28 9:31 ` Zac Medico
2005-08-28 9:45 ` Brian Harring
2005-08-29 8:32 ` Paul de Vrieze
2005-08-29 20:52 ` Zac Medico
2005-08-29 22:45 ` Brian Harring
2005-08-30 1:07 ` Brian Harring
2005-08-31 15:10 ` Zac Medico
2005-08-31 20:45 ` Brian Harring
2005-09-01 8:11 ` Zac Medico
2005-08-30 9:43 ` Paul de Vrieze
2005-08-30 10:38 ` Marius Mauch
2005-08-30 10:42 ` Brian Harring
2005-08-30 13:15 ` Marius Mauch
2005-08-30 13:28 ` Brian Harring
2005-08-30 14:47 ` Paul de Vrieze
2005-08-30 23:46 ` Brian Harring
2005-08-31 9:55 ` Paul de Vrieze
2005-08-31 12:58 ` Brian Harring
2005-08-31 14:59 ` Paul de Vrieze
2005-08-31 10:52 ` Marius Mauch
2005-08-31 12:57 ` Brian Harring
2005-08-31 14:43 ` Zac Medico
2005-08-31 15:41 ` Paul de Vrieze
2005-09-02 5:27 ` Zac Medico
2005-09-02 6:04 ` Brian Harring [this message]
2005-09-02 6:36 ` Zac Medico
2005-09-02 8:53 ` Paul de Vrieze
2005-09-02 12:27 ` Brian Harring
2005-09-02 8:42 ` Paul de Vrieze
2005-08-30 15:19 ` Marius Mauch
2005-08-31 12:30 ` Zac Medico
2005-09-02 6:31 ` Marius Mauch
2005-08-29 8:34 ` Brian Harring
2005-08-30 17:46 ` Marius Mauch
2005-08-30 23:38 ` Jason Stubbs
2005-08-31 0:12 ` Brian Harring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050902060453.GD8478@nightcrawler \
--to=ferringb@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox