From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 57F7A158094 for ; Fri, 24 Jun 2022 09:14:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69FFBE0891; Fri, 24 Jun 2022 09:14:50 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 50B9DE0891 for ; Fri, 24 Jun 2022 09:14:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 56117341577 for ; Fri, 24 Jun 2022 09:14:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EDE9B3C3 for ; Fri, 24 Jun 2022 09:14:47 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1656061947.6ea40822c59d94513f80f8a6d14c125c8e9aec0c.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: general-concepts/dependencies/ X-VCS-Repository: proj/devmanual X-VCS-Files: general-concepts/dependencies/text.xml X-VCS-Directories: general-concepts/dependencies/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 6ea40822c59d94513f80f8a6d14c125c8e9aec0c X-VCS-Branch: master Date: Fri, 24 Jun 2022 09:14:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bafb2c2c-d90f-4afd-b77b-f2b311c7db75 X-Archives-Hash: 17fcb33fcb65cff973ab608da6ce55d2 commit: 6ea40822c59d94513f80f8a6d14c125c8e9aec0c Author: Florian Schmaus gentoo org> AuthorDate: Thu Dec 23 19:19:10 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Jun 24 09:12:27 2022 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=6ea40822 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 gentoo.org> Bug: https://bugs.gentoo.org/739858 [Commits squashed; small fixes according to style guide.] Signed-off-by: Ulrich Müller gentoo.org> general-concepts/dependencies/text.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) 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:= )" +

+means that only the '1.0' slot is acceptable for media-libs/cogl and +that sub-slot changes of media-libs/cogl will cause a rebuild of the +dependent package. It furthermore means that every slot of +net-libs/gnutls is acceptable but any slot change is causing a rebuild. +

+ +

+The :slot dependency syntax continues to behave like in EAPI=4 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. +

+ +

+For example: +

+ + +RDEPEND="dev-libs/foo:2= + >=dev-libs/bar-0.9:= + media-gfx/baz:* + x11-misc/wombat:0" + + +

+means that the package should be rebuilt when foo:2 or +>=bar-0.9 are upgraded to versions with different subslots. On the +other hand, changes in slot or sub-slots of baz should be ignored, and +sub-slot changes of wombat:0 should be ignored. +

+