Gentoo Archives: gentoo-dev

From: "Tiziano Müller" <dev-zero@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] GLEP 54 and hyphens in PV
Date: Thu, 28 May 2009 08:54:45
Message-Id: 1243497572.10450.44.camel@localhost
In Reply to: Re: [gentoo-dev] GLEP 54 and hyphens in PV by Ulrich Mueller
1 Am Dienstag, den 19.05.2009, 19:01 +0200 schrieb Ulrich Mueller:
2 > >>>>> On Mon, 18 May 2009, Ciaran McCreesh wrote:
3 >
4 > > On Mon, 18 May 2009 06:59:36 +0200
5 > > Ulrich Mueller <ulm@g.o> wrote:
6 > >> AFAICS, there _is_ an ambiguity. You can have the following two
7 > >> ebuilds in the tree, simultaneously:
8 >
9 > >> ${PORTDIR}/app-misc/foo/foo-1a-scm.ebuild
10 > >> ${PORTDIR}/app-misc/foo-1a/foo-1a-scm.ebuild
11
12 > [Added some context back to your quotation of my posting.]
13 >
14 > > There's no ambiguity. It means what we define it to mean.
15 >
16 > Maybe it's possible to do that for dependencies, but VDB entries and
17 > binary packages for above two examples would still collide.
18 >
19 > So the conclusion still stands:
20 >
21 > >> The conclusion is that GLEP 54 in its current form is not
22 > >> implementable.
23 >
24 > Hyphens within PV are a Bad Thing, and we should really think about
25 > replacing the separator for "scm" by something else, like a period or
26 > an underscore. For example, the following two would be unique:
27 >
28 > ${PORTDIR}/app-misc/foo/foo-1a_live.ebuild
29 > ${PORTDIR}/app-misc/foo-1a/foo-1a-live.ebuild
30 you probably mean:
31 ${PORTDIR}/app-misc/foo-1a/foo-1a.live.ebuild
32
33 but how would their vdb or binpkg names be unique?
34
35 vdb for example:
36 app-misc/foo-1a_live for app-misc/foo
37 app-misc/foo-1a_live for app-misc/foo-1a
38
39 am I missing something?
40
41 >
42 > With our current versioning scheme the rule is very simple: ${P} is
43 > split into ${PN} and ${PV} at the last hyphen. This can be done in a
44 > straight forward way by regexp matching, and I would really hate to
45 > lose this nice property.
46
47 I don't understand why this property is important. Can you please
48 explain?
49
50
51 --
52 Tiziano Müller
53 Gentoo Linux Developer, Council Member
54 Areas of responsibility:
55 Samba, PostgreSQL, CPP, Python, sysadmin, GLEP Editor
56 E-Mail : dev-zero@g.o
57 GnuPG FP : F327 283A E769 2E36 18D5 4DE2 1B05 6A63 AE9C 1E30

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] GLEP 54 and hyphens in PV Ulrich Mueller <ulm@g.o>