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: Mon, 17 May 2021 21:23:25
Message-Id: 1621286460.8c8da205769e2cdaacdb7f80162a03d34a64bb99.ulm@gentoo
1 commit: 8c8da205769e2cdaacdb7f80162a03d34a64bb99
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: Mon May 17 21:21:00 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=8c8da205
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 | 4 ++++
16 ebuild-vars.tex | 18 +++++++++++++-----
17 2 files changed, 17 insertions(+), 5 deletions(-)
18
19 diff --git a/eapi-differences.tex b/eapi-differences.tex
20 index a334881..22f99e2 100644
21 --- a/eapi-differences.tex
22 +++ b/eapi-differences.tex
23 @@ -74,6 +74,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 @@ -486,6 +489,7 @@ EAPI 8 is EAPI 7 with the following changes:
34 \begin{compactitem}
35 \item Less strict naming rules for files in \t{updates} directory, \featureref{updates-filenames}.
36 \item Bash version is 5.0, \featureref{bash-version}.
37 +\item Selective fetch/mirror restriction, \featureref{uri-restrict}.
38 \end{compactitem}
39
40 \ChangeWhenAddingAnEAPI{8}
41
42 diff --git a/ebuild-vars.tex b/ebuild-vars.tex
43 index 9941f3e..59c5b64 100644
44 --- a/ebuild-vars.tex
45 +++ b/ebuild-vars.tex
46 @@ -169,16 +169,24 @@ on the right of the arrow. When consulting mirrors (except for those explicitly
47 of the arrow, if \t{mirror://} is used), the filename to the right of the arrow shall be requested
48 instead of the filename in the URI.
49
50 +\featurelabel{uri-restrict} In EAPIs listed in table~\ref{tab:uri-arrows-table} as supporting
51 +selective URI restrictions, the URI protocol can be prefixed by an additional \t{fetch+} or
52 +\t{mirror+} term. If the ebuild is fetch restricted, the \t{fetch+} prefix undoes the fetch
53 +restriction for the URI (but not the implied mirror restriction). If the ebuild is fetch or mirror
54 +restricted, the \t{mirror+} prefix undoes both fetch and mirror restrictions for the URI.
55 +
56 \ChangeWhenAddingAnEAPI{8}
57 -\begin{centertable}{EAPIs supporting \t{SRC_URI} arrows}
58 +\begin{centertable}{EAPIs supporting \t{SRC_URI} arrows and selective URI restrictions}
59 \label{tab:uri-arrows-table}
60 - \begin{tabular}{ll}
61 + \begin{tabular}{lll}
62 \toprule
63 \multicolumn{1}{c}{\textbf{EAPI}} &
64 - \multicolumn{1}{c}{\textbf{Supports \t{SRC_URI} arrows?}} \\
65 + \multicolumn{1}{c}{\textbf{Supports \t{SRC_URI} arrows?}} &
66 + \multicolumn{1}{c}{\textbf{Supports selective URI restrictions?}} \\
67 \midrule
68 - 0, 1 & No \\
69 - 2, 3, 4, 5, 6, 7, 8 & Yes \\
70 + 0, 1 & No & No \\
71 + 2, 3, 4, 5, 6, 7 & Yes & No \\
72 + 8 & Yes & Yes \\
73 \bottomrule
74 \end{tabular}
75 \end{centertable}