Gentoo Archives: gentoo-dev

From: hasufell <hasufell@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Always specify SLOT we know a package is compatible with (even if only one SLOT exists at the moment ebuild is added)
Date: Sat, 19 Sep 2015 11:03:53
Message-Id: 55FD410B.3050907@gentoo.org
In Reply to: Re: [gentoo-dev] Always specify SLOT we know a package is compatible with (even if only one SLOT exists at the moment ebuild is added) by Pacho Ramos
1 On 09/19/2015 12:51 PM, Pacho Ramos wrote:
2 > El sáb, 19-09-2015 a las 12:40 +0200, hasufell escribió:
3 >> On 09/19/2015 12:36 PM, hasufell wrote:
4 >>>
5 >>>
6 >>> I personally think
7 >>> it is enough to do that for multislot packages.
8 >>>
9 >>
10 >> And afais repoman already emits a warning for those on EAPI=5.
11 >>
12 > Yes, I know... this is about always setting the SLOT we know it does
13 > work, even when only one SLOT exists (as the summary says) to prevent
14 > we need to constantly fix RDEPENDs of all reverse deps every time a new
15 > slot is added. This currently was a bit more "invisible" to users...
16 > but once dynamic-deps are disabled, people will need to rebuild ALL
17 > that reverse deps to get the proper (old) slot set in VDB.
18 >
19 > In summary, this is the first suggestion of:
20 > https://bugs.gentoo.org/show_bug.cgi?id=493742#c0
21 >
22 > That it will know much more visible as, for example, at the time
23 > gstreamer:1.0 was added, we were able to simply fix reverse deps to
24 > pull in the old slot they were still using, but now, in addition to
25 > that, people will need to also rebuild all the reverse deps for the
26 > same purpose. If, at the start, that packages would have the proper
27 > slot set that was working when the package was added/bumped, the deps
28 > would have being ok for the first time and, then, no update of the
29 > RDEPEND and no rebuild would be triggered
30 >
31 >
32
33 If you do
34
35 app-misc/foo:0
36
37 in every package and then app-misc/foo _drops_ SLOT 0 and instead
38 introduces SLOT 12.4 and SLOT 15.6, then that won't save you anything.
39 The same if it only renames the current SLOT, without actually
40 introducing another one... in which case you get even more work to do.
41
42 I'd say: if there is only one SLOT, don't make any assumption about it,
43 unless the SLOT is documented and expected to get additions (as it was
44 for gstreamer, but you can't assume that's the same story for everything
45 else).