Gentoo Archives: gentoo-dev

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage.
Date: Mon, 14 Sep 2015 18:14:45
Message-Id: 55F70DF4.3050705@gentoo.org
In Reply to: [gentoo-dev] Request to add ~> atom prefix operator on Portage. by konsolebox
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA512
3
4 On 09/14/2015 06:35 AM, konsolebox wrote:
5 > Many times we need to match packages like this: something-1.0.2a.*
6 >
7 > But that expression is not allowed with ~ (only targets revisions)
8 > and neither with * (.*) is invalid.
9 >
10 > So my suggestion is to add ~> as another operator. With it we can
11 > have an expression like '~>pkg-1.0.2a' and it would be equivalent
12 > to '>=pkg-1.0.2a' and '<pkg-1.0.2b'. Another expression like
13 > '~>pkg-1.0.2' would be equivalent to '>=pkg-1.0.2' and
14 > '<pkg-1.0.3'.
15
16 It strikes me that this likely is better solved using subslots, if it
17 is ABI compatability you're wishing to retain?
18
19 - --
20 Kristian Fiskerstrand
21 Public PGP key 0xE3EDFAE3 at hkp://pool.sks-keyservers.net
22 fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3
23 -----BEGIN PGP SIGNATURE-----
24
25 iQEcBAEBCgAGBQJV9w3wAAoJECULev7WN52Ff1IIALW0JSD/QCZKYJZ+D/i/o3ud
26 vqRvud0VD8IhlGuGL/FpNPP6h6jM7+rlyv/rwRq7FX4lLZUmWwdMBq7Q/S7Za3gt
27 1Rrk8EMVyvgXmvas60UhYJRarpfIww2bnlc7iAHdCjuT+k3wf1SJWKVHLl0eA5ib
28 JA9JXt3T5pYTpxzdefQ4xXqc01F5KZ+y1JrdkcAfp6+nyzIpitG52k+Y8NWt4STn
29 baLlnIeb3GjZdE7cCbjN7Nee4kHWA2USS/K+ZeXHuMfHh0z12m4X+dO+eo+mqxtm
30 sje1K6onNyFSGEq6GvtCJG8sd+g4M6NdYhCS/XxFQkCkcrZM1kDcKdP4IEzEJWI=
31 =5mov
32 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage. konsolebox <konsolebox@×××××.com>