public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Brian Harring <ferringb@gmail.com>
To: Kent Fredric <kentfredric@gmail.com>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] RFD : .ebuild is only bash
Date: Mon, 12 Mar 2012 23:22:33 -0700	[thread overview]
Message-ID: <20120313062233.GJ7579@localhost> (raw)
In-Reply-To: <CAATnKFB3QMhUYRf4vaovTRwyPYmHHmf-fW7of+5ybO9NO-ByNg@mail.gmail.com>

On Tue, Mar 13, 2012 at 06:14:23PM +1300, Kent Fredric wrote:
> On 13 March 2012 17:31, Brian Harring <ferringb@gmail.com> wrote:
> > Worse, it actually makes parsing _worse_ than it already is. ??What G55
> > had going for it was ease of filtering out unsupported eapi's.
> > Literally just filter the readdir results. ??This behemoth Zac is
> > proposing basically requires throwing regex at it, and *is* able to
> > be tripped up since eapi's aren't strictly integers (1-prefix,
> > 4-python, 4-eapi3 if I wanted to intentionally be a dick and break
> > likely non-greedy implementations of the regex).
> 
> Eh? How? If you make "." a forbidden character in an eapi
> specificiation, and make "." the delimiter
> 
>   dev-foo/foo-bar-2.3.4.eapi5.eb
> 
> ^^^^
> 
> How does that require regex?

That works; note however that wasn't what was proposed. ;)

Still is god awfuly fugly though, and reliant on digits as the first 
character to be readable.  Consider exheres: 

dev-foo/foo-bar-2.3.4.eapiexheres.eb 

Or arfrever's personal EAPI: 

dev-foo/foo-bar-2.3.4.eapi4-python.eb 

Etc.  This isn't an improvement, it's a regression in readability 
bordering on intentionally hating the developer who has to deal with 
it.


> remove the .eb  , and the last token remaining is the eapi .
> 
> it doesn't clash with the existing system for 2 reasons, 1) the .eb
> extension   and 2)  "eapi5" is not a valid version token
> 
> > Same angle, embedding it into the version space means that there can
> > be conflicts w/ PN.
> 
> I'm confused as to how, can you give one theoretical example?

If you change the delimiter, it's not an issue; if it was left, 
consider dev-foo/blah-eapi2-1-eapi2.ebuild .  It's intentionally 
breaking it, but the point is that the issue *exists*, a problem that 
didn't before.  Change the delimiter and you can duck most of it 
although I suspect there still is a naggle or two.

That doesn't make parsing any prettier to implement however.


>   dev-foo/foo-bar-2.3.4.eapi5.eb  <-- eapi5 can't be a package name
> here, because its got the .eb suffix which means an EAPI *MUST* be
> specified
> 
> and eapi5 also can't be a package name there, because then you're
> telling be it tokenizes as:
> 
>     category=dev-foo
>     package=foo-bar-2.3.4.eapi5
>     version  = undefined
>     eapi      = undefined
> 
> Which is clearly illegal.

Just a general point.  You changed the delimiter- meaning the 
failures mostly go away.  My points were against Zac's original 
proposal, thus arguing those points don't actually exist (swapping the 
delimiter) is a bit of a wrong way to argue- argue "change the 
delimiter and it goes away" rather than "nuh uh, there isn't an 
issue".  Way less confusing.


> > Basically... embedding it into the versioning like that, besides being
> > ugly as all hell, discards the main benefit g55 had- clear
> > identification of EAPI.
> 
> It still seems "clear" to me.

"clear" means different things to different people.  For example, this 
code is actually clear to me:

class MockObject(dict):
  locals().update(
    ('__%sattr__' % x, getattr(dict, '__%sitem__' % x) for x in
    ('get', 'set', 'del'))

That code for everyone else is basically akin to eye-gouging w/ a 
follow up diddling of the new hole.  'Clear' is quite subjective being 
hte point.

EAPI mechanisms have to be designed for functionality, *and* ease of 
use for the general dev populace.  Having 

sys-apps/paludis-0.72.0-eapiexheres.ebuild

is *not* clearly parsable by the majority.  Were it parsable for the 
masses, that doesn't make it anything less than butt-fugly in my view.

If you really think it's great, convince others.  Ulm/Myself seem to 
view it fairly negatively, and I strongly doubt you're going to 
convince either of us to change those views.

~brian



  reply	other threads:[~2012-03-13  6:23 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAATnKFD=9VEkpUcABbhHbAu96Qn+dP+YEuUu2YCqDUNKUxe+Cw@mail.gmail.com>
2012-03-12 15:57 ` [gentoo-dev] RFD : .ebuild is only bash Kent Fredric
2012-03-12 15:59   ` Ciaran McCreesh
2012-03-12 16:51     ` Rich Freeman
2012-03-12 17:05       ` Ulrich Mueller
2012-03-12 17:12         ` Ciaran McCreesh
2012-03-12 17:17           ` Michael Orlitzky
2012-03-12 17:22             ` Ciaran McCreesh
2012-03-12 17:30             ` Zac Medico
2012-03-12 17:22           ` Zac Medico
2012-03-12 18:00             ` Ulrich Mueller
2012-03-12 18:04               ` Ciaran McCreesh
2012-03-12 18:17                 ` Ulrich Mueller
2012-03-12 18:28                   ` Ciaran McCreesh
2012-03-12 18:50                     ` Ulrich Mueller
2012-03-12 18:58                       ` Ian Stakenvicius
2012-03-12 19:01                         ` Ciaran McCreesh
2012-03-12 19:49                           ` Ulrich Mueller
2012-03-12 20:10                             ` Ciaran McCreesh
2012-03-12 20:21                               ` James Broadhead
2012-03-12 21:14                                 ` Ulrich Mueller
2012-03-12 21:28                                   ` Kent Fredric
2012-03-12 21:49                                     ` Alec Warner
2012-03-12 22:02                                       ` Mike Gilbert
2012-03-12 22:37                                         ` Kent Fredric
2012-03-12 22:53                                           ` Alec Warner
2012-03-13  6:31                                             ` [gentoo-dev] " Duncan
2012-03-12 22:55                                           ` [gentoo-dev] " James Broadhead
2012-03-13  6:06                                       ` Ulrich Mueller
2012-03-12 22:06                                   ` James Broadhead
2012-03-12 22:17                                     ` Alec Warner
2012-03-12 19:00                       ` Ciaran McCreesh
2012-03-12 19:38                         ` Ulrich Mueller
2012-03-12 19:42                           ` Ciaran McCreesh
2012-03-13 20:33                       ` Brian Harring
2012-03-13  0:51                     ` Patrick Lauer
2012-03-12 18:29                   ` Kent Fredric
2012-03-13  4:31                   ` Brian Harring
2012-03-13  5:14                     ` Kent Fredric
2012-03-13  6:22                       ` Brian Harring [this message]
2012-03-13 16:10                         ` Wulf C. Krueger
2012-03-13 19:08                           ` Brian Harring
2012-03-13  7:11                       ` [gentoo-dev] " Duncan
2012-03-12 18:01             ` [gentoo-dev] " Michał Górny
2012-03-12 17:53           ` Ulrich Mueller
2012-03-12 18:03             ` Kent Fredric
2012-03-13  0:46           ` Patrick Lauer
2012-03-13  6:41           ` Walter Dnes
2012-03-13  6:56             ` Kent Fredric
2012-03-13  7:03             ` Brian Harring
2012-03-13  8:50               ` Ulrich Mueller
2012-03-13 15:52               ` Zac Medico
2012-03-13  7:30             ` Ciaran McCreesh
2012-03-14  0:29               ` Walter Dnes
2012-03-14  0:48                 ` Michael Orlitzky
2012-03-14  1:42                 ` Brian Harring
2012-03-14  2:05                   ` Zac Medico
2012-03-14  2:23                     ` Michael Orlitzky
2012-03-14  2:36                       ` Zac Medico
2012-03-14  2:38                         ` Michael Orlitzky
2012-03-14  2:38                     ` Brian Harring
2012-03-14  2:47                       ` Zac Medico
2012-03-12 16:56   ` Ulrich Mueller
2012-03-12 18:04   ` Michał Górny
2012-03-13  6:29   ` Richard Yao
2012-03-13 11:52     ` Rich Freeman

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=20120313062233.GJ7579@localhost \
    --to=ferringb@gmail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=kentfredric@gmail.com \
    /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