Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-8 commit in: /
Date: Sun, 16 May 2021 19:13:41
Message-Id: 1621166864.9d029c432ef2d862f4feff4b88db399c08e78c5b.ulm@gentoo
1 commit: 9d029c432ef2d862f4feff4b88db399c08e78c5b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 22 18:23:57 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun May 16 12:07:44 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=9d029c43
7
8 EAPI 8 has selective URI restrictions
9
10 Bug: https://bugs.gentoo.org/371413
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12 [Shortened "selective-uri-restrict" label to make it fit in the margin]
13 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
14
15 eapi-differences.tex | 5 ++++-
16 ebuild-vars.tex | 18 +++++++++++++-----
17 2 files changed, 17 insertions(+), 6 deletions(-)
18
19 diff --git a/eapi-differences.tex b/eapi-differences.tex
20 index 38109ec..64a4a2d 100644
21 --- a/eapi-differences.tex
22 +++ b/eapi-differences.tex
23 @@ -71,6 +71,9 @@ Bash version & \compactfeatureref{bash-version} &
24 \t{SRC_URI} arrows & \compactfeatureref{src-uri-arrows} &
25 * & Yes & Yes & Yes & Yes \\
26
27 +Selective URI restrictions & \compactfeatureref{uri-restrict} &
28 + No & No & No & No & Yes \\
29 +
30 \t{RDEPEND=DEPEND} & \compactfeatureref{rdepend-depend} &
31 * & No & No & No & No \\
32
33 @@ -481,7 +484,7 @@ EAPI 7 is EAPI 6 with the following changes:
34 EAPI 8 is EAPI 7 with the following changes:
35
36 \begin{compactitem}
37 -\item None
38 +\item Selective fetch/mirror restriction, \featureref{uri-restrict}.
39 \end{compactitem}
40
41 \ChangeWhenAddingAnEAPI{8}
42
43 diff --git a/ebuild-vars.tex b/ebuild-vars.tex
44 index 9941f3e..59c5b64 100644
45 --- a/ebuild-vars.tex
46 +++ b/ebuild-vars.tex
47 @@ -169,16 +169,24 @@ on the right of the arrow. When consulting mirrors (except for those explicitly
48 of the arrow, if \t{mirror://} is used), the filename to the right of the arrow shall be requested
49 instead of the filename in the URI.
50
51 +\featurelabel{uri-restrict} In EAPIs listed in table~\ref{tab:uri-arrows-table} as supporting
52 +selective URI restrictions, the URI protocol can be prefixed by an additional \t{fetch+} or
53 +\t{mirror+} term. If the ebuild is fetch restricted, the \t{fetch+} prefix undoes the fetch
54 +restriction for the URI (but not the implied mirror restriction). If the ebuild is fetch or mirror
55 +restricted, the \t{mirror+} prefix undoes both fetch and mirror restrictions for the URI.
56 +
57 \ChangeWhenAddingAnEAPI{8}
58 -\begin{centertable}{EAPIs supporting \t{SRC_URI} arrows}
59 +\begin{centertable}{EAPIs supporting \t{SRC_URI} arrows and selective URI restrictions}
60 \label{tab:uri-arrows-table}
61 - \begin{tabular}{ll}
62 + \begin{tabular}{lll}
63 \toprule
64 \multicolumn{1}{c}{\textbf{EAPI}} &
65 - \multicolumn{1}{c}{\textbf{Supports \t{SRC_URI} arrows?}} \\
66 + \multicolumn{1}{c}{\textbf{Supports \t{SRC_URI} arrows?}} &
67 + \multicolumn{1}{c}{\textbf{Supports selective URI restrictions?}} \\
68 \midrule
69 - 0, 1 & No \\
70 - 2, 3, 4, 5, 6, 7, 8 & Yes \\
71 + 0, 1 & No & No \\
72 + 2, 3, 4, 5, 6, 7 & Yes & No \\
73 + 8 & Yes & Yes \\
74 \bottomrule
75 \end{tabular}
76 \end{centertable}