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 1M9hxC-0007ke-VX for garchives@archives.gentoo.org; Thu, 28 May 2009 15:55:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 897E1E0401; Thu, 28 May 2009 15:55:37 +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 23777E0401 for ; Thu, 28 May 2009 15:55:37 +0000 (UTC) Received: by bwz23 with SMTP id 23so4944335bwz.34 for ; Thu, 28 May 2009 08:55:36 -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=XB2N+kLvicLtxxpmuBAxOHIAFVGiviU2jrPMgXgCpB8=; b=O3XaVllzKZAUOfsDMT0src2FvehQG7UZlW8CDE/TcCBZCARGyRK6RTizSd/LViqGki DU+4GE7sMLchrJDtW2B/4zYlBF/I2s014+POwUqUwC7QVNI00AXazUc5zTlf7asLkde6 jspagTM+DpD7N5ThslaFkW8j6nNbLI4qt0JN4= 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=GMvwnOUdmymHH5M17uHeGaPp5iv3qNuXOOWF+m8DsoPCuRKNoEE7OjmOGwDmuuPMXi Ah9ySFKEqoSfC5BzvtMhQq/wZAHt/Y7ZZJJmVp3gVIx49/JNTisEiuX4xRBYCseoRAVz bM5jyvHyJSFoMY5IREIf037bt2n3r+fmLEjdM= 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 Sender: p.jaroszynski@gmail.com Received: by 10.204.55.200 with SMTP id v8mr1348807bkg.54.1243526136131; Thu, 28 May 2009 08:55:36 -0700 (PDT) In-Reply-To: <4A1EAA0D.9010500@gentoo.org> References: <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> <4A1EAA0D.9010500@gentoo.org> From: =?UTF-8?Q?Piotr_Jaroszy=C5=84ski?= Date: Thu, 28 May 2009 17:55:16 +0200 X-Google-Sender-Auth: 035e361b2b7500d3 Message-ID: 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: 19a01305-16ed-4138-9d0b-f82008ab6cc6 X-Archives-Hash: 7d727ee4f07f53d4c01a9e646169425f 2009/5/28 Marijn Schouten (hkBst) : > -----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? >> >> 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.) I know, it's also inconsistent. Anyway that's really not that important. We could forbid package names that end with a -$PV where $PV is a valid version spec. That would make package names like foo-1b invalid (didn't see anything named like that in the tree anyway). >> 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. Not with g55. --=20 Best Regards, Piotr Jaroszy=C5=84ski