Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: general-concepts/dependencies/
Date: Fri, 24 Jun 2022 09:14:51
Message-Id: 1656061947.6ea40822c59d94513f80f8a6d14c125c8e9aec0c.ulm@gentoo
1 commit: 6ea40822c59d94513f80f8a6d14c125c8e9aec0c
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 23 19:19:10 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 09:12:27 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=6ea40822
7
8 general-concepts/dependencies: add paragraph explaining example
9
10 Add a small paragraph explaining the existing slot-operator example.
11
12 This is scavenged from my proposed change for bug #739858.
13
14 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
15 Bug: https://bugs.gentoo.org/739858
16 [Commits squashed; small fixes according to style guide.]
17 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
18
19 general-concepts/dependencies/text.xml | 32 ++++++++++++++++++++++++++++++++
20 1 file changed, 32 insertions(+)
21
22 diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml
23 index 0ff903d..689fad0 100644
24 --- a/general-concepts/dependencies/text.xml
25 +++ b/general-concepts/dependencies/text.xml
26 @@ -421,6 +421,38 @@ RDEPEND="media-libs/cogl:1.0=
27 gnutls? ( &gt;=net-libs/gnutls-2.8:= )"
28 </codesample>
29
30 +<p>
31 +means that only the '1.0' slot is acceptable for <c>media-libs/cogl</c> and
32 +that sub-slot changes of <c>media-libs/cogl</c> will cause a rebuild of the
33 +dependent package. It furthermore means that every slot of
34 +<c>net-libs/gnutls</c> is acceptable but any slot change is causing a rebuild.
35 +</p>
36 +
37 +<p>
38 +The <c>:slot</c> dependency syntax continues to behave like in <c>EAPI=4</c> or
39 +earlier, i.e. it indicates that only the specific slot value is acceptable and
40 +that the package will not break when the currently installed version of the
41 +dependency is replaced by a version with a different sub-slot.
42 +</p>
43 +
44 +<p>
45 +For example:
46 +</p>
47 +
48 +<codesample lang="ebuild">
49 +RDEPEND="dev-libs/foo:2=
50 + &gt;=dev-libs/bar-0.9:=
51 + media-gfx/baz:*
52 + x11-misc/wombat:0"
53 +</codesample>
54 +
55 +<p>
56 +means that the package should be rebuilt when <c>foo:2</c> or
57 +<c>&gt;=bar-0.9</c> are upgraded to versions with different subslots. On the
58 +other hand, changes in slot or sub-slots of <c>baz</c> should be ignored, and
59 +sub-slot changes of <c>wombat:0</c> should be ignored.
60 +</p>
61 +
62 </body>
63 </subsubsection>
64 </subsection>