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: Wed, 26 May 2021 07:13:48
Message-Id: 1621973036.d2f7633afa390ecd9e7cfd98648166922f955dce.ulm@gentoo
1 commit: d2f7633afa390ecd9e7cfd98648166922f955dce
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 16 12:05:17 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue May 25 20:03:56 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=d2f7633a
7
8 EAPI 8: useq, hasv and hasq are banned
9
10 Bug: https://bugs.gentoo.org/199722
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 eapi-differences.tex | 11 +++++++++++
14 pkg-mgr-commands.tex | 16 ++++++++++++++++
15 2 files changed, 27 insertions(+)
16
17 diff --git a/eapi-differences.tex b/eapi-differences.tex
18 index 4cd6b8b..8b1f7a6 100644
19 --- a/eapi-differences.tex
20 +++ b/eapi-differences.tex
21 @@ -236,6 +236,15 @@ Most utilities die & \compactfeatureref{die-on-failure} &
22 \t{libopts} & \compactfeatureref{banned-commands} &
23 Yes & Yes & Yes & Banned & Banned \\
24
25 +\t{useq} & \compactfeatureref{banned-commands} &
26 + Yes & Yes & Yes & Yes & Banned \\
27 +
28 +\t{hasv} & \compactfeatureref{banned-commands} &
29 + Yes & Yes & Yes & Yes & Banned \\
30 +
31 +\t{hasq} & \compactfeatureref{banned-commands} &
32 + Yes & Yes & Yes & Yes & Banned \\
33 +
34 Query command options & \compactfeatureref{pm-query-options} &
35 None & \t{-{}-host-root} & \t{-{}-host-root} & \t{-b}, \t{-d}, \t{-r} &
36 \t{-b}, \t{-d}, \t{-r} \\
37 @@ -503,6 +512,8 @@ EAPI 8 is EAPI 7 with the following changes:
38 \item Empty working directory in \t{pkg_*} phase functions, \featureref{phase-function-dir}.
39 \item Different \t{src_prepare} implementation, \featureref{src-prepare}.
40 \item \t{PROPERTIES}, \t{RESTRICT} accumulated across eclasses, \featureref{accumulate-vars}.
41 +\item \t{useq} banned, \featureref{banned-commands}.
42 +\item \t{hasv} and \t{hasq} banned, \featureref{banned-commands}.
43 \end{compactitem}
44
45 \ChangeWhenAddingAnEAPI{8}
46
47 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
48 index 71d1e89..c56e592 100644
49 --- a/pkg-mgr-commands.tex
50 +++ b/pkg-mgr-commands.tex
51 @@ -73,6 +73,16 @@ called, the package manager must abort the build process indicating an error.
52 4, 5 & Yes & Yes & No & No & No & No \\
53 6 & Yes & Yes & Yes & No & No & No \\
54 7, 8 & Yes & Yes & Yes & Yes & Yes & Yes \\
55 + \midrule
56 + \multicolumn{1}{c}{\textbf{EAPI}} &
57 + \multicolumn{6}{c}{\textbf{Command banned?}} \\
58 + \multicolumn{1}{c}{} &
59 + \multicolumn{1}{c}{\textbf{\t{useq}}} &
60 + \multicolumn{1}{c}{\textbf{\t{hasv}}} &
61 + \multicolumn{1}{c}{\textbf{\t{hasq}}} & & & \\
62 + \midrule
63 + 0, 1, 2, 3, 4, 5, 6, 7 & No & No & No & & & \\
64 + 8 & Yes & Yes & Yes & & & \\
65 \bottomrule
66 \end{tabular}
67 \end{centertable}
68 @@ -842,6 +852,8 @@ table~\ref{tab:use-list-strictness}.
69 \item[usev] The same as \t{use}, but also prints the flag name if the condition
70 is met.
71 \item[useq] Deprecated synonym for \t{use}.
72 + In EAPIs listed in table~\ref{tab:banned-commands-table}, this command is banned as per
73 + section~\ref{sec:banned-commands}.
74 \item[use_with] \featurelabel{use-with} Has one-, two-, and three-argument forms. The first
75 argument is a USE flag name, the second a \t{configure} option name (\t{\$\{opt\}}), defaulting
76 to the same as the first argument if not provided, and the third is a string value
77 @@ -916,7 +928,11 @@ These functions check whitespace-separated lists for a particular value.
78 \item[has] Returns shell true (0) if the first argument (a word) is found in the list of subsequent
79 arguments, false otherwise. Guaranteed quiet.
80 \item[hasv] The same as \t{has}, but also prints the first argument if found.
81 + In EAPIs listed in table~\ref{tab:banned-commands-table}, this command is banned as per
82 + section~\ref{sec:banned-commands}.
83 \item[hasq] Deprecated synonym for \t{has}.
84 + In EAPIs listed in table~\ref{tab:banned-commands-table}, this command is banned as per
85 + section~\ref{sec:banned-commands}.
86 \end{description}
87
88 \subsection{Version manipulation and comparison commands}