1 |
>>>>> On Thu, 28 May 2009, Tiziano Müller wrote: |
2 |
|
3 |
>> ${PORTDIR}/app-misc/foo/foo-1a_live.ebuild |
4 |
>> ${PORTDIR}/app-misc/foo-1a/foo-1a-live.ebuild |
5 |
|
6 |
> you probably mean: |
7 |
> ${PORTDIR}/app-misc/foo-1a/foo-1a.live.ebuild |
8 |
|
9 |
No, I mean what I had written, namely to use an underscore as |
10 |
separator, i.e., "_live". But when the version is just "live" alone, |
11 |
one would suppress the underscore for aesthetic reasons, i.e. instead |
12 |
of "foo-1a-_live" it would be "foo-1a-live". |
13 |
|
14 |
> but how would their vdb or binpkg names be unique? |
15 |
|
16 |
> vdb for example: |
17 |
> app-misc/foo-1a_live for app-misc/foo |
18 |
|
19 |
PN=foo, PV=1a_live => app-misc/foo-1a_live |
20 |
|
21 |
> app-misc/foo-1a_live for app-misc/foo-1a |
22 |
|
23 |
PN=foo-1a, PV=live => app-misc/foo-1a-live |
24 |
|
25 |
> am I missing something? |
26 |
|
27 |
Everything is easy, if you keep the following rule in mind: |
28 |
|
29 |
>> With our current versioning scheme the rule is very simple: ${P} is |
30 |
>> split into ${PN} and ${PV} at the last hyphen. This can be done in |
31 |
>> a straight forward way by regexp matching, and I would really hate |
32 |
>> to lose this nice property. |
33 |
|
34 |
> I don't understand why this property is important. Can you please |
35 |
> explain? |
36 |
|
37 |
See above, it automatically avoids any ambiguities in splitting P into |
38 |
PN and PV. And look at function "pkgsplit" in Portage: It can just |
39 |
treat PV as an opaque string. |
40 |
|
41 |
What would be the advantage to use a hyphen instead of an underscore? |
42 |
|
43 |
Ulrich |