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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8AD6F138350 for ; Tue, 21 Jan 2020 16:49:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA64FE0833; Tue, 21 Jan 2020 16:49:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9C7C4E0833 for ; Tue, 21 Jan 2020 16:49:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D24134E396 for ; Tue, 21 Jan 2020 16:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57C2737 for ; Tue, 21 Jan 2020 16:49:38 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1579625268.0719b0f628b12a542b4e9b3327ab493c0e1daf76.mgorny@gentoo> Subject: [gentoo-commits] proj/policy-guide:master commit in: / X-VCS-Repository: proj/policy-guide X-VCS-Files: dependencies.rst X-VCS-Directories: / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0719b0f628b12a542b4e9b3327ab493c0e1daf76 X-VCS-Branch: master Date: Tue, 21 Jan 2020 16:49:38 +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: 0c13389a-2f20-40cc-ae9a-e7fb3b56c3ae X-Archives-Hash: 74b72af3d5a335d2b83361884fc2fc9c commit: 0719b0f628b12a542b4e9b3327ab493c0e1daf76 Author: Michał Górny gentoo org> AuthorDate: Sun Jan 19 20:29:58 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jan 21 16:47:48 2020 +0000 URL: https://gitweb.gentoo.org/proj/policy-guide.git/commit/?id=0719b0f6 dependencies: policy on 4-style USE deps Closes: https://bugs.gentoo.org/705890 Closes: https://github.com/gentoo/policy-guide/pull/8 Signed-off-by: Michał Górny gentoo.org> dependencies.rst | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/dependencies.rst b/dependencies.rst index 38f4147..55bba5c 100644 --- a/dependencies.rst +++ b/dependencies.rst @@ -167,5 +167,46 @@ dependencies as a result. if the package installed by the user still links to libfoo. +.. index:: + pair: USE flags; dependency + +USE dependencies +---------------- + +on packages without the flag +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +:Source: QA (inferred from PMS) +:Reported: by pkgcheck + +Whenever a package uses a 2-style USE-dependency on another package, +all package versions matching the dependency must have the flag +in question. If the dependency matches at least one version missing +the flag, either 4-style USE-dependency (i.e. having ``(-)`` or ``(+)`` +indicator) must be used, or the restriction must be refined to match +only versions having the flag. + +*Example*:: + + # BAD: USE=gtk2 is not supported by v2 + dev-foo/libfrobnicate[gtk2] + # GOOD: all matching versions have USE=tools +