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 ) id 1M9hJt-0000pD-Qd for garchives@archives.gentoo.org; Thu, 28 May 2009 15:15:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F117EE04A6; Thu, 28 May 2009 15:15:00 +0000 (UTC) Received: from pollux.sshunet.nl (pollux.sshunet.nl [145.97.192.42]) by pigeon.gentoo.org (Postfix) with ESMTP id 93C3FE04A6 for ; Thu, 28 May 2009 15:15:00 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by pollux.sshunet.nl (Postfix) with ESMTP id 9E4BD580002 for ; Thu, 28 May 2009 17:14:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at pollux.warande.net Received: from pollux.sshunet.nl ([127.0.0.1]) by localhost (pollux.sshunet.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uU4si16ybyWe for ; Thu, 28 May 2009 17:14:51 +0200 (CEST) Received: from [145.97.222.214] (214pc222.sshunet.nl [145.97.222.214]) by pollux.sshunet.nl (Postfix) with ESMTP for ; Thu, 28 May 2009 17:14:51 +0200 (CEST) Message-ID: <4A1EAA0D.9010500@gentoo.org> Date: Thu, 28 May 2009 17:13:17 +0200 From: "Marijn Schouten (hkBst)" User-Agent: Thunderbird 2.0.0.21 (X11/20090320) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] GLEP 54 and hyphens in PV References: <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> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c99e122a-fbeb-4ad0-a1f4-597746f6432b X-Archives-Hash: 882a8f8a7ce6e2489c849b6e7d80c404 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Piotr Jaroszy=C5=84ski wrote: > 2009/5/28 Ulrich Mueller : >>>>>>> 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? >=20 > Mainly the thing you observed yourself - foo_live is a bit > inconsistent with current versions. Ulrich is proposing foo-live if live is the entire version, foo_live is n= ot a legal `package name and version'. (It could be a package name though.) > 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. That would also be a good solution though we don't seem to need it yet. I= t would also entail compatibility issues. Marijn - -- If you cannot read my mind, then listen to what I say. Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML , #gentoo-{lisp,ml} on FreeNode -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoeqg0ACgkQp/VmCx0OL2zn2gCfZl0knh8Er2x1B8PrbdwWSYHU b/MAnj3pYO2qzXhUx+z1w9Vnrdf2/uJo =3DEzB3 -----END PGP SIGNATURE-----