Gentoo Archives: gentoo-pms

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