public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ciaran McCreesh <ciaran.mccreesh@googlemail.com>
To: Luca Barbato <lu_zero@gentoo.org>
Cc: gentoo-council@lists.gentoo.org, gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: Issues regarding glep-55  (Was: [gentoo-council] Re: Preliminary Meeting-Topics for 12 February 2009)
Date: Mon, 23 Feb 2009 14:59:02 +0000	[thread overview]
Message-ID: <20090223145902.0207a965@snowcone> (raw)
In-Reply-To: <49A2B6C0.1070900@gentoo.org>

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

On Mon, 23 Feb 2009 15:46:24 +0100
Luca Barbato <lu_zero@gentoo.org> wrote:
> >> Apparently we do not have any issue...
> > 
> > ...assuming the metadata cache is valid. That isn't always the case.
> 
> When it isn't?

Every now and again (probably after someone changes eutils...), rsync
mirrors end up shipping a load of stale metadata for parts of the tree.
Portage users probably don't notice, since it just causes a slowdown.

> disable overlays to UPGRADE to the new portage. Not rocket science...

No no. You're forcing people to switch to ~arch to be able to use
overlays.

> >> In this case we have a problem if the source step is a single one, 
> >> portage won't know in advance how to behave.
> >>
> >> So the first step has to be split in two:
> >> - first portage discovers which is the eapi version
> > 
> > ...which it can't do, because it doesn't know the EAPI.
> 
> If you are generating the cache you must have a way to know it...

No, we don't. That's the entire frickin' point of GLEP 55, and one
that you would do well to understand fully before commenting further.
The way we generate metadata now is massively horrible, and only works
because there aren't any serious global scope differences between
EAPIs. We can't make any global scope changes to future EAPIs because
it breaks current metadata generation. Right now it's safe to pretend
EAPI 0 until the real EAPI is worked out, but that won't hold in the
future -- as soon as global scope changes come along, there's no safe
EAPI that can be assumed, even if we didn't have to worry about
breaking existing package managers.

> >> The problem is that right now sourcing is done by having an
> >> instructed bash. So the simplest way to get the first step done is
> >> parsing the ebuild file with something different like file(1) and
> >> then instruct bash and do the parsing.
> > 
> > file(1) can't parse ebuilds.
> 
> file parses quite well avi and mov, ebuild will be anytime more
> complex than that right?

It's already *way* more complicated than that. Extracting metadata
requires a full bash 3 implementation along with a considerable amount
of supporting code.

> Anyway it isn't a problem since the version of portage doing the work
> is supposed to be up to date, if isn't it will be updated first using
> the normal user workflow that has already been covered by the cache.

Most users don't run ~arch, and do use overlays. So no, this will affect
normal user workflow.

> > Only an ebuild implementation can parse
> > ebuilds, and only if it already knows the EAPI.
> 
> That is always the case since you are adding an ebuild and you are 
> supposed to have an up to date portage in order to do that.

Again, you're not getting it. Doesn't matter how up to date your
package manager is. You can't find out the EAPI unless you already know
the EAPI.

> >> What is proposed in glep-55 seems to aim to solve both issues at
> >> the same time (it isn't stated) by switching file extension every
> >> time the eapi is changed. This is slightly against the principle
> >> of the least surprise and apparently is disliked by enough people
> >> to lead the situation to be discussed in the council.
> > 
> > There's no surprise at all. It's extremely clear.
> 
> Not that much.

How is '.ebuild-3' being used to specify version 3 of the ebuild format
in the least bit surprising?

-- 
Ciaran McCreesh

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

  reply	other threads:[~2009-02-23 14:59 UTC|newest]

Thread overview: 115+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1234257125.18160.2016.camel@localhost>
     [not found] ` <1234450419.20950.2.camel@localhost>
     [not found]   ` <20090212160045.GB3642@comet>
     [not found]     ` <20090212161644.GD3642@comet>
     [not found]       ` <20090212162103.256b003f@snowcone>
     [not found]         ` <20090212171055.GA3652@comet>
     [not found]           ` <20090212172109.778fb268@snowcone>
     [not found]             ` <20090212173743.GD3652@comet>
     [not found]               ` <20090212180350.0d9a9df5@snowcone>
     [not found]                 ` <1235037961.13198.779.camel@localhost>
     [not found]                   ` <20090219125124.33eaa66c@snowcone>
     [not found]                     ` <1235077892.13198.1923.camel@localhost>
     [not found]                       ` <20090222171658.278ae167@halo.dirtyepic.sk.ca>
     [not found]                         ` <49A1E1CB.1000806@gentoo.org>
     [not found]                           ` <20090222234800.29d64b8d@snowcone>
2009-02-23  2:15                             ` [gentoo-dev] Issues regarding glep-55 (Was: [gentoo-council] Re: Preliminary Meeting-Topics for 12 February 2009) Luca Barbato
2009-02-23  8:38                               ` [gentoo-dev] " Tiziano Müller
2009-02-23  8:52                                 ` Brian Harring
2009-02-23 13:45                                   ` Duncan
2009-02-23  9:25                                 ` Alistair Bush
2009-02-23 10:02                                   ` Tiziano Müller
2009-02-23 10:28                                     ` Douglas Anderson
2009-02-23 12:26                                       ` Brian Harring
2009-02-23 13:50                                         ` Ciaran McCreesh
2009-02-23 14:15                                           ` Brian Harring
2009-02-23 14:23                                             ` Ciaran McCreesh
2009-02-23 14:28                                       ` Richard Freeman
2009-02-23 14:36                                         ` Ciaran McCreesh
2009-02-23 15:43                                         ` Steve Dibb
2009-02-23 15:53                                           ` Ciaran McCreesh
2009-02-23 16:13                                             ` Alexis Ballier
2009-02-23 16:19                                               ` Ciaran McCreesh
2009-02-23 16:48                                                 ` Alexis Ballier
2009-02-23 17:01                                                   ` Ciaran McCreesh
2009-02-23 19:30                                                     ` Petteri Räty
2009-02-23 19:33                                                       ` Ciaran McCreesh
2009-02-23 19:02                                             ` Alec Warner
2009-02-23 19:07                                               ` Ciaran McCreesh
2009-02-23 16:06                                           ` Peter Alfredsen
2009-02-23 16:11                                             ` Ciaran McCreesh
2009-02-23 19:22                                           ` Ryan Hill
2009-02-23 20:51                                             ` Luca Barbato
2009-02-23 20:54                                               ` Ciaran McCreesh
2009-02-23 22:15                                                 ` Ryan Hill
2009-02-23 22:16                                                   ` Ryan Hill
2009-02-23 22:19                                                   ` Ciaran McCreesh
2009-02-24 13:55                                                     ` Ferris McCormick
2009-02-24 14:14                                                       ` Serkan Kaba
2009-02-28 13:04                                                         ` Peter Volkov
2009-02-28 13:21                                                           ` Matthias Schwarzott
2009-02-23 23:47                                             ` Richard Freeman
2009-02-23 23:49                                               ` Ciaran McCreesh
2009-02-24  0:17                                                 ` Richard Freeman
2009-02-24  0:19                                                   ` Ciaran McCreesh
2009-02-24  1:49                                                     ` Richard Freeman
2009-02-24 14:22                                                       ` Ciaran McCreesh
2009-02-24 16:24                                               ` Joe Peterson
2009-02-24 16:29                                                 ` Ciaran McCreesh
2009-02-24 16:36                                                   ` Joe Peterson
2009-02-24 16:43                                                     ` Ciaran McCreesh
2009-02-24 20:41                                                       ` Robert Bridge
2009-02-24 16:15                                         ` Joe Peterson
2009-02-24 16:21                                           ` Alec Warner
2009-02-24 16:23                                             ` Ciaran McCreesh
2009-02-24 16:33                                               ` Alec Warner
2009-02-24 16:37                                                 ` Ciaran McCreesh
2009-02-24 16:42                                                   ` Alec Warner
2009-02-24 16:48                                                     ` Ciaran McCreesh
2009-02-24 18:56                                             ` Ryan Hill
2009-02-24 22:58                                               ` Luca Barbato
2009-02-24 16:21                                           ` Ciaran McCreesh
2009-02-24 16:45                                             ` Joe Peterson
2009-02-24 16:48                                               ` Ciaran McCreesh
2009-02-24 21:17                                                 ` Roy Bamford
2009-02-24 21:23                                                   ` Ciaran McCreesh
2009-02-24 21:24                                                     ` Robert Bridge
2009-02-24 22:11                                                     ` Roy Bamford
2009-02-24 22:14                                                       ` Ciaran McCreesh
2009-02-24  1:01                                   ` Jim Ramsay
2009-02-23 13:21                                 ` Luca Barbato
2009-02-23 13:40                                   ` Thomas Anderson
2009-02-23 13:57                               ` Ciaran McCreesh
2009-02-23 14:46                                 ` Luca Barbato
2009-02-23 14:59                                   ` Ciaran McCreesh [this message]
2009-02-24  7:08                               ` [gentoo-dev] " Luca Barbato
2009-02-24  8:06                                 ` Alistair Bush
2009-02-24  9:09                                   ` Luca Barbato
2009-02-24 10:50                                     ` Alistair Bush
2009-02-24 12:15                                       ` Luca Barbato
2009-02-24 15:46                                       ` Richard Freeman
2009-02-24 15:56                                         ` Ciaran McCreesh
2009-02-24 16:29                                           ` Nirbheek Chauhan
2009-02-24 16:46                                             ` Ciaran McCreesh
2009-02-24 17:25                                           ` Jim Ramsay
2009-02-24 18:20                                             ` Ciaran McCreesh
2009-02-24 19:08                                               ` Jim Ramsay
2009-02-24 19:19                                                 ` Ciaran McCreesh
2009-02-24 20:07                                                   ` Jim Ramsay
2009-02-24 20:13                                                     ` Ciaran McCreesh
2009-02-24 20:37                                                       ` Jim Ramsay
2009-02-24 20:41                                                         ` Ciaran McCreesh
2009-02-24 20:56                                                           ` Jim Ramsay
2009-02-24 20:17                                           ` Richard Freeman
2009-02-24 20:25                                             ` Ciaran McCreesh
2009-02-24 21:46                                               ` Luca Barbato
2009-02-24 21:48                                                 ` Ciaran McCreesh
2009-02-24 22:48                                                   ` Luca Barbato
2009-02-24 22:58                                                     ` Ciaran McCreesh
2009-02-25  6:34                                                       ` Tiziano Müller
2009-02-25 15:28                                                         ` Ciaran McCreesh
2009-02-24  9:29                                 ` George Shapovalov
2009-02-24 10:11                                   ` Alistair Bush
2009-02-24 14:19                                 ` Ciaran McCreesh
2009-02-24 16:04                                   ` Luca Barbato
2009-02-24 16:14                                     ` Ciaran McCreesh
2009-02-24 17:16                                       ` Luca Barbato
2009-02-24 18:24                                         ` Ciaran McCreesh
2009-02-24 19:28                                           ` Alexis Ballier
2009-02-24 19:37                                             ` Ciaran McCreesh
2009-02-25  8:33                                               ` Alexis Ballier
2009-02-25 15:30                                                 ` Ciaran McCreesh
2009-02-25 16:17                                                   ` Luca Barbato
2009-02-25 16:22                                                     ` Ciaran McCreesh
2009-02-25  3:04                                           ` Luca Barbato
2009-02-25 15:33                                             ` Ciaran McCreesh
2009-02-25 15:56                                               ` Luca Barbato
2009-02-25 16:02                                                 ` Thomas Anderson
2009-02-25 16:20                                                   ` Luca Barbato
2009-02-25 16:02                                                 ` Ciaran McCreesh
2009-02-25  2:34                               ` [gentoo-dev] Issues regarding glep-55 Petteri Räty

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=20090223145902.0207a965@snowcone \
    --to=ciaran.mccreesh@googlemail.com \
    --cc=gentoo-council@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=lu_zero@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