1 |
On Wed, 2 Sep 2015 15:34:43 +0200 |
2 |
Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
3 |
|
4 |
> On 02/09/2015 15:04, Neil Bothwick wrote: |
5 |
> > On Wed, 2 Sep 2015 05:24:33 -0700, walt wrote: |
6 |
> > |
7 |
> >> If the devs can't explain slots to their |
8 |
> >> users then they don't understand it themselves. (Hm. That phrase |
9 |
> >> sounds familiar. Where did I get that?) |
10 |
> > |
11 |
> > I think it is an Einstein quote that says something like "if you |
12 |
> > can't explain it in simple terms, you don't understand it". He was |
13 |
> > probably having a pop at Niels Bohr and quantum theory at the time. |
14 |
> > |
15 |
> > Bohr said something like "if thinking about quantum theory doesn't |
16 |
> > give you a headache, you don't understand it". |
17 |
> > |
18 |
> > |
19 |
> |
20 |
> And Feynmann said something along the lines of "Anyone who claims to |
21 |
> understand quantum mechanics, doesn't". |
22 |
> |
23 |
> Back to subslots and not replying to Neil directly: They aren't that |
24 |
> hard to grasp, they look like this: |
25 |
> |
26 |
> cat/pkg/pkg-1.2:3/4 |
27 |
> |
28 |
> The SLOT is 3 and the subslot is 4. As usual, different versions of |
29 |
> the same package in different SLOTs can co-exist. Subslots are a |
30 |
> different matter, and it's an unfortunate choice of name, as they are |
31 |
> *not* a subset of a SLOT. Look at ncurses: |
32 |
> |
33 |
> [I] sys-libs/ncurses |
34 |
> Available versions: |
35 |
> (0) 5.9-r3 (~)5.9-r4 5.9-r5(0/5) (~)6.0-r1(0/6) |
36 |
> (5) 5.9-r99(5/5) (~)5.9-r101(5/5) (~)6.0(5/6) |
37 |
> |
38 |
> There's 2 SLOTs (0 and 5), and both have versions of subslot 5 and 6. |
39 |
> Subslots are most useful for things like api/abi versions where |
40 |
> upstream breaks these but don't increment the major version, this is |
41 |
> why we had endless issues in the past where emerge world broke stuff |
42 |
> horribly and it only got fixed much later when we could run |
43 |
> revdep-rebuild. Nowadays we have better tools, if the subslot changes |
44 |
> for a consumed library, then all consuming packages need to be |
45 |
> rebuilt. |
46 |
> |
47 |
> Describing and defining subslots is not hard, neither are the |
48 |
> operators. The problem with subslots is the usual one - you have to |
49 |
> deal with real life, and in real life upstreams sometimes do peculiar |
50 |
> things to their code that doesn't exactly match the effect of a |
51 |
> subslot operation. |
52 |
> |
53 |
> Or put another way: subslot docs describe the effect you should end up |
54 |
> with, it's not always the same thing as what you *do* end up with. |
55 |
> Finding that out means testing every possible circumstances and seeing |
56 |
> the results, but there's an infinite variety of those. |
57 |
|
58 |
I just updated my virtualbox ~amd64 guest and all went well when I ran |
59 |
emerge ncurses:5/5, so I'm encouraged but not fearless about doing the |
60 |
same on my real machine. I'm going to be quickpkged to the max before |
61 |
I try it. |
62 |
|
63 |
BTW, emerge world on the vbox guest did not offer to touch ncurses in |
64 |
any way. I had to do it manually as I just said. |
65 |
|
66 |
Leveraging Neil's quote: thinking about slots (and their misnamed |
67 |
subslots) gives me a 4-dimensional headache. |
68 |
|
69 |
Anyway, thanks for the helpful explanation. |