public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robert R. Russell" <nahoy_kbiki@hushmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] The fallacies of GLEP55
Date: Fri, 15 May 2009 11:16:11 -0500	[thread overview]
Message-ID: <3957741d4885eeb5a84ffcf262e58344@smtp.hushmail.com> (raw)
In-Reply-To: <4A0D479F.7040107@gentoo.org>

On Friday 15 May 2009 05:44:47 Richard Freeman wrote:
> Ciaran McCreesh wrote:
> > On Thu, 14 May 2009 20:06:51 +0200
> >
> > Patrick Lauer <patrick@gentoo.org> wrote:
> >> Let EAPI be defined as (the part behind the = of) the first line of
> >> the ebuild starting with EAPI=
> >
> > Uh, so horribly utterly and obviously wrong.
> >
> >     inherit foo
> >     EAPI=4
> >
> > where foo is both a global and a non-global eclass that sets metadata.
>
> This seems to come up from time to time but I don't see how this is a
> problem that GLEP 55 solves.  If the rule is "first line of the ebuild
> starting with EAPI=" and the ebuild is as you suggest above, then the
> EAPI is 4 (without any regard whatsoever to what might be in "foo").
>
> The counterargument seems to be that eclasses should be able to modify
> EAPI behavior.  However, if you want to do this then you DEFINITELY
> don't want to put the EAPI in the filename - unless you want eclasses to
> start renaming the ebuilds to change their EAPIs and then trigger a
> metadata regen.
>
> This seems to be a case where a problem is proposed, with a solution.
> Somebody proposes an alternate solution and the complaint is raised that
> it doesn't handle situation X.  However, the original proposed solution
> doesn't handle situation X either, so that can hardly be grounds for
> accepting it over the alternate.
>
> I'm actually more in favor of an approach like putting the EAPI in a
> comment line or some other place that is more "out-of-band".  Almost all
> modern file formats incorporate a version number into a fixed position
> in the file header so that it is trivial for a program to figure out
> whether or not it knows how to handle the file.  Another common approach
> is to put a header-length field and add extensions to the end of a
> header, so that as long as you don't break past behavior you could
> create a file that is readable by older program versions (perhaps with
> the loss of some metadata that the older version doesn't understand).
> Just look up the UStar tar file format or the gzip file format for
> examples.   Of course, such file formats generally aren't designed to be
> human-readable or created with a text editor.
>
> The same applies to executables.  It is impossible from the filename to
> tell if /bin/bash is in a.out or ELF format, or if it is a shell script.
>   Instead a simple standard is defined that allows the OS to figure it
> out and handle it appropriately.  If you try to run an ELF on some
> ancient version of linux it doesn't crash or perform erratic behavior -
> it will simply tell you that it doesn't understand the file format
> (invalid magic number).
>
> In any case, I'm going to try to restrain myself from replying further
> in this thread unless something genuinely new comes up.  When I see 26
> new messages in my gentoo-dev folder I should know by now that somebody
> has managed to bring up GLEP 55 again...  :)

If I understand the problem GLEP 55 is trying to solve correctly, it stems 
from portage's assumption that an unknown EAPI is equal to EAPI 0. Could that 
assumption be changed to an unknown EAPI is equal to the latest supported 
EAPI. Now I understand that this change would have to wait until all the 
ebuilds in the portage tree correctly define their EAPI, but would the idea be 
technically feasible at least excluding EAPI0 ebuilds? I think it would be if 
all EAPIs are forward compatible up until the EAPI declaration in the ebuild.






  reply	other threads:[~2009-05-15 16:17 UTC|newest]

Thread overview: 113+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 18:06 [gentoo-dev] The fallacies of GLEP55 Patrick Lauer
2009-05-14 18:39 ` Ciaran McCreesh
2009-05-14 19:05   ` Patrick Lauer
2009-05-14 19:11     ` Ciaran McCreesh
2009-05-14 19:17       ` RB
2009-05-14 19:20         ` Ciaran McCreesh
2009-05-14 19:24           ` Patrick Lauer
2009-05-14 19:33             ` Ciaran McCreesh
2009-05-14 19:16     ` Robert Bridge
2009-05-15 19:29       ` [gentoo-dev] " Steven J Long
2009-05-14 19:09   ` [gentoo-dev] " Tomáš Chvátal
2009-05-14 19:17     ` Ciaran McCreesh
2009-05-15  1:42   ` George Prowse
2009-05-15  7:30     ` David Leverton
2009-05-15 10:44   ` Richard Freeman
2009-05-15 16:16     ` Robert R. Russell [this message]
2009-05-15 16:29       ` Ciaran McCreesh
2009-05-15 19:12       ` [gentoo-dev] " Steven J Long
2009-05-15 19:17         ` Ciaran McCreesh
2009-05-15 20:06           ` [gentoo-dev] " Steven J Long
2009-05-15 20:13             ` Ciaran McCreesh
2009-05-24 20:53               ` [gentoo-dev] " Steven J Long
2009-05-24 21:10                 ` Ciaran McCreesh
2009-05-15 20:32             ` [gentoo-dev] " David Leverton
2009-05-24 20:40               ` [gentoo-dev] " Steven J Long
2009-05-24 20:58                 ` David Leverton
2009-05-14 19:06 ` [gentoo-dev] " David Leverton
2009-05-14 19:15   ` Jeremy Olexa
2009-05-14 19:24     ` Ciaran McCreesh
2009-05-14 20:03 ` Ben de Groot
2009-05-14 21:16   ` Peter Alfredsen
2009-05-14 21:49     ` William Hubbs
2009-05-14 21:53       ` Ciaran McCreesh
2009-05-14 22:44         ` Patrick Lauer
2009-05-15 18:58           ` Arun Raghavan
2009-05-15 19:11             ` Ciaran McCreesh
2009-05-26 14:06               ` [gentoo-dev] " Steven J Long
2009-05-15 19:43         ` [gentoo-dev] " William Hubbs
2009-05-15 19:49           ` Ciaran McCreesh
2009-05-16  9:27             ` Tobias Klausmann
2009-05-16 11:33               ` [gentoo-dev] " Duncan
2009-05-26 14:01                 ` Steven J Long
2009-05-16 14:12               ` [gentoo-dev] " Ciaran McCreesh
2009-05-16 14:50                 ` [gentoo-dev] " Steven J Long
2009-05-16 14:57                   ` Ciaran McCreesh
2009-05-16 15:15                     ` Richard Freeman
2009-05-16 15:20                       ` Ciaran McCreesh
2009-05-16 15:34                         ` Richard Freeman
2009-05-16 15:36                           ` Ciaran McCreesh
2009-05-16 15:32                 ` [gentoo-dev] " Tobias Klausmann
2009-05-16 15:34                   ` Ciaran McCreesh
2009-05-16 15:43                     ` Tobias Klausmann
2009-05-16 15:49                       ` Ciaran McCreesh
2009-05-16 15:55                         ` Tobias Klausmann
2009-05-16 15:57                           ` Ciaran McCreesh
2009-05-16 16:15                             ` Tobias Klausmann
2009-05-16 16:19                               ` Ciaran McCreesh
2009-05-16 16:31                                 ` Tobias Klausmann
2009-05-16 16:38                                   ` Ciaran McCreesh
2009-05-16 16:54                                     ` Tobias Klausmann
2009-05-16 16:58                                       ` Ciaran McCreesh
2009-05-16 17:13                                         ` Tobias Klausmann
2009-05-16 17:53                                           ` Ciaran McCreesh
2009-05-17  4:54                                     ` Richard Freeman
2009-05-16 16:35                         ` Arun Raghavan
2009-05-16 16:39                           ` Thomas Anderson
2009-05-16 16:44                             ` Arun Raghavan
2009-05-16 16:47                               ` Ciaran McCreesh
2009-05-16 16:54                                 ` Arun Raghavan
2009-05-16 16:59                                   ` Ciaran McCreesh
2009-05-16 17:09                                     ` Arun Raghavan
2009-05-16 17:55                                       ` Ciaran McCreesh
2009-05-16 19:12                                         ` Arun Raghavan
2009-05-16 19:21                                           ` Ciaran McCreesh
2009-05-17  4:56                                             ` Arun Raghavan
2009-05-16 23:39                                         ` Nick Fortino
2009-05-16 23:48                                           ` Ciaran McCreesh
2009-05-17  1:17                                             ` Nick Fortino
2009-05-22  2:04                                               ` Robert R. Russell
2009-05-17  0:31                                           ` Ravi Pinjala
2009-05-17  4:35                                             ` Richard Freeman
2009-05-17 11:40                                               ` Thomas Anderson
2009-05-17 12:00                                                 ` Arun Raghavan
2009-05-17  0:35                                           ` [gentoo-dev] " Duncan
2009-05-17  0:50                                             ` Ciaran McCreesh
2009-05-17  1:58                                               ` Duncan
2009-05-17  4:43                                                 ` Richard Freeman
2009-05-17  7:29                                                   ` Patrick Lauer
2009-05-17 11:14                                                     ` David Leverton
2009-05-17  7:40                                               ` Tiziano Müller
2009-05-17  8:01                                                 ` Patrick Lauer
2009-05-16 16:39                           ` [gentoo-dev] " Ciaran McCreesh
2009-05-16 18:38                             ` Robert Buchholz
2009-05-16 18:42                               ` Ciaran McCreesh
2009-05-16  9:27             ` Marijn Schouten (hkBst)
2009-05-16  9:59               ` David Leverton
2009-05-16 11:11                 ` Ben de Groot
2009-05-16 18:10                   ` William Hubbs
2009-05-16 18:14                     ` Ciaran McCreesh
2009-05-16 18:22                       ` William Hubbs
2009-05-16 12:14                 ` [gentoo-dev] " Duncan
2009-05-16 14:15                   ` Ciaran McCreesh
2009-05-16 17:28                   ` David Leverton
2009-05-16 20:00                     ` Joe Peterson
2009-05-16 20:11                       ` Denis Dupeyron
2009-05-16 20:13                         ` Denis Dupeyron
2009-05-17  8:29   ` [gentoo-dev] " Alistair Bush
2009-05-17 13:04     ` Richard Freeman
2009-05-16 21:58 ` [gentoo-dev] " Mark Bateman
2009-05-16 22:06   ` Ciaran McCreesh
2009-05-17  4:07     ` Mark Bateman
2009-05-17 16:35       ` Ciaran McCreesh
2009-05-17 16:54         ` Patrick Lauer

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=3957741d4885eeb5a84ffcf262e58344@smtp.hushmail.com \
    --to=nahoy_kbiki@hushmail.com \
    --cc=gentoo-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