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 eapi8] EAPI 8 has selective URI restrictions
Date: Sun, 22 Dec 2019 18:24:28
Message-Id: 20191222182357.169570-1-mgorny@gentoo.org
1 Bug: https://bugs.gentoo.org/371413
2 Signed-off-by: Michał Górny <mgorny@g.o>
3 ---
4 eapi-differences.tex | 5 ++++-
5 ebuild-vars.tex | 18 +++++++++++++-----
6 2 files changed, 17 insertions(+), 6 deletions(-)
7
8 diff --git a/eapi-differences.tex b/eapi-differences.tex
9 index 38109ec..59940b0 100644
10 --- a/eapi-differences.tex
11 +++ b/eapi-differences.tex
12 @@ -71,6 +71,9 @@ Bash version & \compactfeatureref{bash-version} &
13 \t{SRC_URI} arrows & \compactfeatureref{src-uri-arrows} &
14 * & Yes & Yes & Yes & Yes \\
15
16 +Selective URI restrictions & \compactfeatureref{selective-uri-restrict} &
17 + No & No & No & No & Yes \\
18 +
19 \t{RDEPEND=DEPEND} & \compactfeatureref{rdepend-depend} &
20 * & No & No & No & No \\
21
22 @@ -481,7 +484,7 @@ EAPI 7 is EAPI 6 with the following changes:
23 EAPI 8 is EAPI 7 with the following changes:
24
25 \begin{compactitem}
26 -\item None
27 +\item Selective fetch/mirror restriction, \featureref{selective-uri-restrict}.
28 \end{compactitem}
29
30 \ChangeWhenAddingAnEAPI{8}
31 diff --git a/ebuild-vars.tex b/ebuild-vars.tex
32 index 2eb849c..12184a8 100644
33 --- a/ebuild-vars.tex
34 +++ b/ebuild-vars.tex
35 @@ -171,16 +171,24 @@ on the right of the arrow. When consulting mirrors (except for those explicitly
36 of the arrow, if \t{mirror://} is used), the filename to the right of the arrow shall be requested
37 instead of the filename in the URI.
38
39 +\featurelabel{selective-uri-restrict} In EAPIs listed in table~\ref{tab:uri-arrows-table}
40 +as supporting selective URI restrictions, the URI protocol can be prefixed by~an additional
41 +\t{fetch+} or \t{mirror+} term. If the ebuild is fetch restricted, \t{fetch+} prefix undoes
42 +the~fetch restriction for the URI (but not the implied mirror restriction). If the ebuild is fetch
43 +or mirror restricted, \t{mirror+} prefix undoes both fetch and mirror restrictions for the URI.
44 +
45 \ChangeWhenAddingAnEAPI{8}
46 -\begin{centertable}{EAPIs supporting \t{SRC_URI} arrows}
47 +\begin{centertable}{EAPIs supporting \t{SRC_URI} arrows and selective URI restrictions}
48 \label{tab:uri-arrows-table}
49 - \begin{tabular}{ll}
50 + \begin{tabular}{lll}
51 \toprule
52 \multicolumn{1}{c}{\textbf{EAPI}} &
53 - \multicolumn{1}{c}{\textbf{Supports \t{SRC_URI} arrows?}} \\
54 + \multicolumn{1}{c}{\textbf{Supports \t{SRC_URI} arrows?}} &
55 + \multicolumn{1}{c}{\textbf{Supports selective URI restrictions?}} \\
56 \midrule
57 - 0, 1 & No \\
58 - 2, 3, 4, 5, 6, 7, 8 & Yes \\
59 + 0, 1 & No & No \\
60 + 2, 3, 4, 5, 6, 7 & Yes & No \\
61 + 8 & Yes & Yes \\
62 \bottomrule
63 \end{tabular}
64 \end{centertable}
65 --
66 2.24.1