1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
On 02/09/15 11:15 AM, hasufell wrote: |
5 |
> On 09/02/2015 05:06 PM, George Shapovalov wrote: |
6 |
>> On Wednesday 02 September 2015 16:29:52 hasufell wrote: |
7 |
>>>> - >=sys-libs/ncurses-5.7" + >=sys-libs/ncurses-5.7:*" |
8 |
>>> This doesn't look correct to me, unless dev-lang/gnat-gcc |
9 |
>>> doesn't need ncurses headers(?). Only sys-libs/ncurses:0 |
10 |
>>> provides headers (the other slots are for binary |
11 |
>>> compatibility), so we probably want to depend on SLOT :0. In |
12 |
>>> addition, if we fix the SLOT to :0, we should do a revbump to |
13 |
>>> ensure that user VDB is updated correctly. |
14 |
>> Ah, Ok, thanks for heads up on ncurses (OTOH this is a bit |
15 |
>> strange - different slots provide not just incompatible but |
16 |
>> drastically different contents. Shouldn't there be a separate |
17 |
>> -headers package then? The deps would be kind of more evident |
18 |
>> in such case..). This was a part of general change to fix |
19 |
>> repoman complaints. I'll fix the ncurses part and do a revbump |
20 |
>> to update VDB then.. |
21 |
>> |
22 |
>> |
23 |
>> |
24 |
> |
25 |
> Well, it isn't particularly nice, because we don't have proper |
26 |
> SLOT descriptions (although SLOT can contain any of the |
27 |
> characters [A-Za-z0-9+_.-], but then I am not sure how the PM |
28 |
> decides about the "best" SLOT... I couldn't find a useful answer |
29 |
> in PMS). |
30 |
> |
31 |
> However, this slotting method is already used in libraries like |
32 |
> media-libs/libpng or dev-libs/openssl, so it seems it silently |
33 |
> became a standard. |
34 |
> |
35 |
|
36 |
|
37 |
There's no "best" slot, slots aren't used the same as versions -- |
38 |
they either match or differ. The slot that's preferred (in portage |
39 |
at least, i expect other PMs too) is the SLOT of the most recent |
40 |
version of the package that's emerge'able. |
41 |
|
42 |
In terms of libraries in general, although the SLOT=0 for full |
43 |
package version / SLOT=somethingelse for binary-only stuff is a bit |
44 |
of a convention, you need to check what slotting actually means for |
45 |
every dependency your package depends on because each one will |
46 |
differ. For instance, sci-libs/opencascade installs all versions in |
47 |
their own specific slot, headers and all. The choice generally |
48 |
comes down to what the maintainer of the library package decides to do |
49 |
. |
50 |
|
51 |
|
52 |
|
53 |
|
54 |
-----BEGIN PGP SIGNATURE----- |
55 |
Version: GnuPG v2 |
56 |
|
57 |
iF4EAREIAAYFAlXnIUEACgkQAJxUfCtlWe2TMQEAqwtrleALZNxUeBJzxtilTY19 |
58 |
6+ndXbA0GeY70HpWvdQA/jEB87y+zQoP7J/HMXOZRMHa5bRfwAyZLO8t5VloScyd |
59 |
=U6d6 |
60 |
-----END PGP SIGNATURE----- |