diff options
author | Florian Schmaus <flow@gentoo.org> | 2021-12-23 20:19:10 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-06-24 11:12:27 +0200 |
commit | 6ea40822c59d94513f80f8a6d14c125c8e9aec0c (patch) | |
tree | 7bfe30fcca463b2c41a22a8d2202ea557a83d956 | |
parent | devbook.xsl: Fix whitespace in <note> and friends (diff) | |
download | devmanual-6ea40822c59d94513f80f8a6d14c125c8e9aec0c.tar.gz devmanual-6ea40822c59d94513f80f8a6d14c125c8e9aec0c.tar.bz2 devmanual-6ea40822c59d94513f80f8a6d14c125c8e9aec0c.zip |
general-concepts/dependencies: add paragraph explaining example
Add a small paragraph explaining the existing slot-operator example.
This is scavenged from my proposed change for bug #739858.
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Bug: https://bugs.gentoo.org/739858
[Commits squashed; small fixes according to style guide.]
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | general-concepts/dependencies/text.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml index 0ff903d..689fad0 100644 --- a/general-concepts/dependencies/text.xml +++ b/general-concepts/dependencies/text.xml @@ -421,6 +421,38 @@ RDEPEND="media-libs/cogl:1.0= gnutls? ( >=net-libs/gnutls-2.8:= )" </codesample> +<p> +means that only the '1.0' slot is acceptable for <c>media-libs/cogl</c> and +that sub-slot changes of <c>media-libs/cogl</c> will cause a rebuild of the +dependent package. It furthermore means that every slot of +<c>net-libs/gnutls</c> is acceptable but any slot change is causing a rebuild. +</p> + +<p> +The <c>:slot</c> dependency syntax continues to behave like in <c>EAPI=4</c> or +earlier, i.e. it indicates that only the specific slot value is acceptable and +that the package will not break when the currently installed version of the +dependency is replaced by a version with a different sub-slot. +</p> + +<p> +For example: +</p> + +<codesample lang="ebuild"> +RDEPEND="dev-libs/foo:2= + >=dev-libs/bar-0.9:= + media-gfx/baz:* + x11-misc/wombat:0" +</codesample> + +<p> +means that the package should be rebuilt when <c>foo:2</c> or +<c>>=bar-0.9</c> are upgraded to versions with different subslots. On the +other hand, changes in slot or sub-slots of <c>baz</c> should be ignored, and +sub-slot changes of <c>wombat:0</c> should be ignored. +</p> + </body> </subsubsection> </subsection> |