Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH] dependencies.tex: Explicitly require matching package for :=
Date: Mon, 31 Oct 2016 15:05:05
Message-Id: 20161031150446.27002-1-mgorny@gentoo.org
1 Explicitly indicate that the ebuild is required to provide appropriate
2 DEPEND for := to have a matching package installed. Additionally ban
3 the cases where := can not be reliably used or does not make any sense:
4 PDEPEND (because by intent the dependency can not be in DEPEND),
5 and any-of groups (because the non-binding nature of any-of group
6 collides with binding nature of :=).
7 ---
8 dependencies.tex | 4 ++++
9 1 file changed, 4 insertions(+)
10
11 diff --git a/dependencies.tex b/dependencies.tex
12 index 79801c4..ed1688c 100644
13 --- a/dependencies.tex
14 +++ b/dependencies.tex
15 @@ -296,6 +296,10 @@ slot/sub-slot pair between the colon and equals sign when saving the package's d
16 sub-slot part must not be omitted here (when the SLOT variable omits the sub-slot part, the package
17 is considered to have an implicit sub-slot which is equal to the regular slot).
18
19 +Whenever the equals slot operator is used in an enabled dependency group, the dependencies
20 +(\t{DEPEND}) must ensure that a matching package is installed at build time. It is invalid to use
21 +equals slot operator inside \t{PDEPEND} or inside any-of dependency specifications.
22 +
23 \subsubsection{2-Style and 4-Style Use Dependencies}
24 \label{sec:use-dep}
25
26 --
27 2.10.2