Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: Ulrich Mueller <ulm@g.o>, gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] match_from_list: restrict =* to match only on version part boundaries (bug 560466)
Date: Mon, 21 Sep 2015 16:09:13
Message-Id: 56002BA0.1080907@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] match_from_list: restrict =* to match only on version part boundaries (bug 560466) by Ulrich Mueller
1 On 09/20/2015 10:39 PM, Ulrich Mueller wrote:
2 >>>>>> On Sun, 20 Sep 2015, Zac Medico wrote:
3 >
4 >> Make the =* glob match only on boundaries between version parts, in
5 >> order to eliminate ambiguity (so that 1* does not match version 10).
6 >> Only break compatibility in cases where dependencies have been
7 >> specified ambiguously.
8 >
9 > Does this patch consider suffix parts (including the integer if
10 > present) as a single component?
11
12 No, it considers the integer parts as a separate components, in order to
13 maintain as much backward compatibility as possible.
14
15 So, it deviates from your test cases only because =cat/foo-1_alpha*
16 matches cat/foo-1_alpha1. Note that this case is not ambiguous like the
17 others, so we may not want to break compatibility here.
18
19 >
20 > That is, the following should match:
21 >
22 > =cat/foo-1_alpha* cat/foo-1_alpha_beta
23 >
24 > But these should *not*:
25 >
26 > =cat/foo-1_p* cat/foo-1_pre
27 > =cat/foo-1_alpha* cat/foo-1_alpha1
28 >
29 > (The boundary of the version components is after _alpha and _alpha1,
30 > respectively.)
31 >
32 > Ulrich
33 >
34
35
36 --
37 Thanks,
38 Zac

Replies