From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-36292-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1M9dV8-0001zQ-1N
	for garchives@archives.gentoo.org; Thu, 28 May 2009 11:10:22 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 2256FE0411;
	Thu, 28 May 2009 11:10:21 +0000 (UTC)
Received: from mail-bw0-f175.google.com (mail-bw0-f175.google.com [209.85.218.175])
	by pigeon.gentoo.org (Postfix) with ESMTP id D2D81E0411
	for <gentoo-dev@lists.gentoo.org>; Thu, 28 May 2009 11:10:20 +0000 (UTC)
Received: by bwz23 with SMTP id 23so4768469bwz.34
        for <gentoo-dev@lists.gentoo.org>; Thu, 28 May 2009 04:10:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:sender:received:in-reply-to
         :references:from:date:x-google-sender-auth:message-id:subject:to
         :content-type:content-transfer-encoding;
        bh=SHBLwiR4WKusH60sqzzhgKfdUr6UmKF1j7fK3yOBnzY=;
        b=N0kGfub+MfqdwniZDG/3pmASJQWfjK7QQmXjaY8hz73fgkfV73xGTxqO9kxK2WJKN6
         0D/WN7hEDPQ3IbdPGFN8dNovpJyYmIEhDs92iJFydMDaaJDblfVH0yNzLAV/ACif8IIX
         VrW6Jj1MRKwrI2FikOMIHUE4alsaJ71Ipf/jg=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:sender:in-reply-to:references:from:date
         :x-google-sender-auth:message-id:subject:to:content-type
         :content-transfer-encoding;
        b=fOji/nJTCGofGCOfOrD7VpVy45lmXje21ensbalcXs1J8fXB2P4DXjeY7FdWL+Uvix
         mkIsce2zqYQnu2cj/lwZbh1AK6svXwPhPY11eMMvYR3jsJkwQEs7V/pISCnovLOQ+cT9
         xEfWkvP7nV9V4q+nU9VcmIkUaEvNsPQbbctMQ=
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
Sender: p.jaroszynski@gmail.com
Received: by 10.204.100.71 with SMTP id x7mr1084885bkn.130.1243509020116; Thu, 
	28 May 2009 04:10:20 -0700 (PDT)
In-Reply-To: <18974.28033.870896.214692@a1ihome1.kph.uni-mainz.de>
References: <d77765540905170856wa882914ica3dc4698c03bc96@mail.gmail.com> 
	<18960.40466.923843.233294@a1ihome1.kph.uni-mainz.de> <20090518003340.4a186623@snowmobile> 
	<18960.41263.854038.675219@a1ihome1.kph.uni-mainz.de> <20090518004942.0571d4c3@snowmobile> 
	<18960.60216.54583.466848@a1ihome1.kph.uni-mainz.de> <20090518151332.22798476@snowmobile> 
	<18962.58841.849848.476586@a1ihome1.kph.uni-mainz.de> <1243497572.10450.44.camel@localhost> 
	<18974.28033.870896.214692@a1ihome1.kph.uni-mainz.de>
From: =?UTF-8?Q?Piotr_Jaroszy=C5=84ski?= <peper@gentoo.org>
Date: Thu, 28 May 2009 13:10:00 +0200
X-Google-Sender-Auth: 536331ce1afbe6b9
Message-ID: <d77765540905280410r2885d58ar82b3fdd96c34dc3f@mail.gmail.com>
Subject: Re: [gentoo-dev] GLEP 54 and hyphens in PV
To: gentoo-dev@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 366242d7-48ef-43e0-ba4e-f0a96abe1c93
X-Archives-Hash: d07a1e9c3d3d3198fccd0a7361ca40dc

2009/5/28 Ulrich Mueller <ulm@gentoo.org>:
>>>>>> On Thu, 28 May 2009, Tiziano M=C3=BCller wrote:
>
>>> ${PORTDIR}/app-misc/foo/foo-1a_live.ebuild
>>> ${PORTDIR}/app-misc/foo-1a/foo-1a-live.ebuild
>
>> you probably mean:
>> ${PORTDIR}/app-misc/foo-1a/foo-1a.live.ebuild
>
> No, I mean what I had written, namely to use an underscore as
> separator, i.e., "_live". But when the version is just "live" alone,
> one would suppress the underscore for aesthetic reasons, i.e. instead
> of "foo-1a-_live" it would be "foo-1a-live".
>
>> but how would their vdb or binpkg names be unique?
>
>> vdb for example:
>> app-misc/foo-1a_live for app-misc/foo
>
> PN=3Dfoo, PV=3D1a_live =3D> app-misc/foo-1a_live
>
>> app-misc/foo-1a_live for app-misc/foo-1a
>
> PN=3Dfoo-1a, PV=3Dlive =3D> app-misc/foo-1a-live
>
>> am I missing something?
>
> Everything is easy, if you keep the following rule in mind:
>
>>> With our current versioning scheme the rule is very simple: ${P} is
>>> split into ${PN} and ${PV} at the last hyphen. This can be done in
>>> a straight forward way by regexp matching, and I would really hate
>>> to lose this nice property.
>
>> I don't understand why this property is important. Can you please
>> explain?
>
> See above, it automatically avoids any ambiguities in splitting P into
> PN and PV. And look at function "pkgsplit" in Portage: It can just
> treat PV as an opaque string.
>
> What would be the advantage to use a hyphen instead of an underscore?

Mainly the thing you observed yourself - foo_live is a bit
inconsistent with current versions.

The case you mention can be avoided with another restriction in PMS.
Buut we might as well go all the way and change the version separator
to -- or something, which would be the most flexible.

--=20
Best Regards,
Piotr Jaroszy=C5=84ski