public inbox for gentoo-pms@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-pms] ABNF of PMS
@ 2013-07-10 10:02 Walter
  2013-07-10 10:28 ` Ulrich Mueller
  0 siblings, 1 reply; 6+ messages in thread
From: Walter @ 2013-07-10 10:02 UTC (permalink / raw
  To: gentoo-pms

Hi there, for anyone who wants a formal (machine parseable) version of
the PMS, I have created an attempted version on Github.

Right now it can be used to generate test data for package managers
and other software, though I would like to extend it to generate code
for various languages as well.

You can find it at https://github.com/globalcitizen/gentoo-pms-abnf

- Walter


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-pms] ABNF of PMS
  2013-07-10 10:02 [gentoo-pms] ABNF of PMS Walter
@ 2013-07-10 10:28 ` Ulrich Mueller
  2013-07-10 11:02   ` Walter
  0 siblings, 1 reply; 6+ messages in thread
From: Ulrich Mueller @ 2013-07-10 10:28 UTC (permalink / raw
  To: gentoo-pms

>>>>> On Wed, 10 Jul 2013, Walter  wrote:

> Hi there, for anyone who wants a formal (machine parseable) version of
> the PMS, I have created an attempted version on Github.

> Right now it can be used to generate test data for package managers
> and other software, though I would like to extend it to generate code
> for various languages as well.

> You can find it at https://github.com/globalcitizen/gentoo-pms-abnf

Could you account for the tightened package name spec? It has been
updated some time ago [1]:

   3.1.2 Package Names

   A package name may contain any of the characters [A-Za-z0-9+_-].
   It must not begin with a hyphen or a plus sign, and must not end in
   a hyphen followed by anything matching the version syntax described
   in section 3.2.

Ulrich

[1] http://www.gentoo.org/proj/en/council/meeting-logs/20121009-summary.txt


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-pms] ABNF of PMS
  2013-07-10 10:28 ` Ulrich Mueller
@ 2013-07-10 11:02   ` Walter
  2013-07-10 11:40     ` Ciaran McCreesh
  2013-07-10 12:01     ` Ulrich Mueller
  0 siblings, 2 replies; 6+ messages in thread
From: Walter @ 2013-07-10 11:02 UTC (permalink / raw
  To: gentoo-pms

>> Right now it can be used to generate test data for package managers
>> and other software, though I would like to extend it to generate code
>> for various languages as well.
>
>> You can find it at https://github.com/globalcitizen/gentoo-pms-abnf
>
> Could you account for the tightened package name spec? It has been
> updated some time ago [1]:

I just looked at the PMS URL at http://dev.gentoo.org/~ulm/pms/5/pms.html.
Is that not the latest version? If not, perhaps it should be taken offline.

>    3.1.2 Package Names
>
>    A package name may contain any of the characters [A-Za-z0-9+_-].
>    It must not begin with a hyphen or a plus sign, and must not end in
>    a hyphen followed by anything matching the version syntax described
>    in section 3.2.

In any case, the change here seems to be from:
 "... must not end in a hyphen followed by [one or more digits]" ... to ...
 "... must not end in a hyphen followed by [anything matching the
version syntax described in section 3.2]"

It's certainly possible to update. Right now, since package names
can't include dots, any normal version syntax is pretty much banned
anyway. Probably the only thing that would be accepted is a whole
integer based version, with no ".x.x" subversioning present.

- Walter


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-pms] ABNF of PMS
  2013-07-10 11:02   ` Walter
@ 2013-07-10 11:40     ` Ciaran McCreesh
  2013-07-10 13:32       ` Walter
  2013-07-10 12:01     ` Ulrich Mueller
  1 sibling, 1 reply; 6+ messages in thread
From: Ciaran McCreesh @ 2013-07-10 11:40 UTC (permalink / raw
  To: gentoo-pms

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

On Wed, 10 Jul 2013 18:02:34 +0700
Walter <walter.stanish@gmail.com> wrote:
> It's certainly possible to update. Right now, since package names
> can't include dots, any normal version syntax is pretty much banned
> anyway. Probably the only thing that would be accepted is a whole
> integer based version, with no ".x.x" subversioning present.

You're forgetting letters and suffixes. It's not "pretty much" and
"probably" at all.

-- 
Ciaran McCreesh

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-pms] ABNF of PMS
  2013-07-10 11:02   ` Walter
  2013-07-10 11:40     ` Ciaran McCreesh
@ 2013-07-10 12:01     ` Ulrich Mueller
  1 sibling, 0 replies; 6+ messages in thread
From: Ulrich Mueller @ 2013-07-10 12:01 UTC (permalink / raw
  To: gentoo-pms

>>>>> On Wed, 10 Jul 2013, Walter  wrote:

> I just looked at the PMS URL at http://dev.gentoo.org/~ulm/pms/5/pms.html.
> Is that not the latest version? If not, perhaps it should be taken offline.

It is the latest version approved as a whole by the Gentoo council.
The tightened package name spec has been approved separately though,
so it can be considered part of the official spec.

You can always find the newest version in git:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git

Ulrich


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-pms] ABNF of PMS
  2013-07-10 11:40     ` Ciaran McCreesh
@ 2013-07-10 13:32       ` Walter
  0 siblings, 0 replies; 6+ messages in thread
From: Walter @ 2013-07-10 13:32 UTC (permalink / raw
  To: gentoo-pms

>> It's certainly possible to update. Right now, since package names
>> can't include dots, any normal version syntax is pretty much banned
>> anyway. Probably the only thing that would be accepted is a whole
>> integer based version, with no ".x.x" subversioning present.
>
> You're forgetting letters and suffixes. It's not "pretty much" and
> "probably" at all.

I did consider those.

Since they have to be prefixed, they are only relevant in the same
subset of cases, ie. single digit version numbers = rarely.

- Walter


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-10 13:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-10 10:02 [gentoo-pms] ABNF of PMS Walter
2013-07-10 10:28 ` Ulrich Mueller
2013-07-10 11:02   ` Walter
2013-07-10 11:40     ` Ciaran McCreesh
2013-07-10 13:32       ` Walter
2013-07-10 12:01     ` Ulrich Mueller

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