>>>>> On Mon, 18 May 2009, Ciaran McCreesh wrote:

>> Trouble starts if hyphens in PV are allowed.

> You mean like -r0?

The revision is not part of PV. And it's easily split off, since the
string "-r<digits>" cannot occur elsewhere in the package version.

> It's easily solved by a careful definition, in any case, just the
> same way that there's already a careful definition full of
> weaselling out to allow other abuses... There's no ambiguity so long
> as the definition is sound.

To come back to my example:

>> P=foo-1a-scm could mean both of the following:
>> 
>> PN=foo     PV=1a-scm
>> PN=foo-1a  PV=scm

AFAICS, there _is_ an ambiguity. You can have the following two
ebuilds in the tree, simultaneously:

   ${PORTDIR}/app-misc/foo/foo-1a-scm.ebuild
   ${PORTDIR}/app-misc/foo-1a/foo-1a-scm.ebuild

Which package will be pulled in by the following dependency?

   RDEPEND="=app-misc/foo-1a-scm"

The conclusion is that GLEP 54 in its current form is not implementable.
(But maybe it would be possible to use a period instead of the hyphen?
That is, ".live" instead of "-scm"?)

Ulrich

Reply via email to