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 17/28] EAPI 7 bans package.provided
Date: Wed, 04 Oct 2017 20:47:52
Message-Id: 20171004204712.10391-18-mgorny@gentoo.org
In Reply to: [gentoo-pms] [PATCHES] EAPI 7, first draft for review by "Michał Górny"
1 Bug: https://bugs.gentoo.org/568884
2 ---
3 eapi-differences.tex | 4 ++++
4 profiles.tex | 24 ++++++++++++++++++++----
5 2 files changed, 24 insertions(+), 4 deletions(-)
6
7 diff --git a/eapi-differences.tex b/eapi-differences.tex
8 index ace1f55..d6bf6b7 100644
9 --- a/eapi-differences.tex
10 +++ b/eapi-differences.tex
11 @@ -41,6 +41,9 @@ of this document for a complete table of previous EAPIs.
12 \bottomrule
13 \endlastfoot
14
15 +\t{package.provided} & \compactfeatureref{package-provided} &
16 + Yes & Yes & Yes & Yes & No \\
17 +
18 \t{BROOT} & \compactfeatureref{broot} &
19 No & No & No & No & Yes \\
20
21 @@ -419,6 +422,7 @@ EAPI 7 is EAPI 6 with the following changes:
22 \item \t{BROOT}, \featureref{broot}.
23 \item \t{best_version} and \t{has_version} drops the \t{-{}-host-root} option in favor of the
24 \t{-b}, \t{-d}, and \t{-r} options, \featureref{pm-query-options}.
25 +\item \t{package.provided} in profiles banned, \featureref{package-provided}.
26 \end{compactitem}
27
28 \ChangeWhenAddingAnEAPI{7}
29 diff --git a/profiles.tex b/profiles.tex
30 index 99e84ea..edc17af 100644
31 --- a/profiles.tex
32 +++ b/profiles.tex
33 @@ -115,10 +115,26 @@ necessarily a global mask (from \t{profiles/package.mask}, section~\ref{profiles
34 inherit tree when it comes to \t{-lines}. This behaviour may not be relied upon.
35
36 \subsection{package.provided}
37 -\t{package.provided} is used to tell the package manager that a certain package version should be
38 -considered to be provided by the system regardless of whether it is actually installed. Because it
39 -has severe adverse effects on USE-based and slot-based dependencies, its use is strongly deprecated
40 -and package manager support must be regarded as purely optional.
41 +\featurelabel{package-provided} \t{package.provided} is used to tell the package manager that
42 +a certain package version should be considered to be provided by the system regardless of whether it
43 +is actually installed. Because it has severe adverse effects on USE-based and slot-based
44 +dependencies, its use is strongly deprecated and package manager support must be regarded as purely
45 +optional. Banned in EAPIs listed as not allowing \t{package.provided} in
46 +table~\ref{tab:profile-package-provided}.
47 +
48 +\ChangeWhenAddingAnEAPI{7}
49 +\begin{centertable}{Profile \t{package.provided} support}
50 + \label{tab:profile-package-provided}
51 + \begin{tabular}{ll}
52 + \toprule
53 + \multicolumn{1}{c}{\textbf{EAPI}} &
54 + \multicolumn{1}{c}{\textbf{Allows \t{package.provided}?}} \\
55 + \midrule
56 + 0, 1, 2, 3, 4, 5, 6 & Yes \\
57 + 7 & No \\
58 + \bottomrule
59 + \end{tabular}
60 +\end{centertable}
61
62 \subsection{package.use}
63 The \t{package.use} file may be used by the package manager to override the default USE flags
64 --
65 2.14.2