commit: b4e5eade6a3f8c483f10ab48b0a0fc99e89cc797 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sun May 16 12:05:17 2021 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sun May 16 12:19:50 2021 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=b4e5eade
EAPI 8: useq, hasv and hasq are banned Bug: https://bugs.gentoo.org/199722 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> eapi-differences.tex | 11 +++++++++++ pkg-mgr-commands.tex | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/eapi-differences.tex b/eapi-differences.tex index da6f552..4c35b07 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -227,6 +227,15 @@ Most utilities die & \compactfeatureref{die-on-failure} & \t{libopts} & \compactfeatureref{banned-commands} & Yes & Yes & Yes & Banned & Banned \\ +\t{useq} & \compactfeatureref{banned-commands} & + Yes & Yes & Yes & Yes & Banned \\ + +\t{hasv} & \compactfeatureref{banned-commands} & + Yes & Yes & Yes & Yes & Banned \\ + +\t{hasq} & \compactfeatureref{banned-commands} & + Yes & Yes & Yes & Yes & Banned \\ + Query command options & \compactfeatureref{pm-query-options} & None & \t{-{}-host-root} & \t{-{}-host-root} & \t{-b}, \t{-d}, \t{-r} & \t{-b}, \t{-d}, \t{-r} \\ @@ -500,6 +509,8 @@ EAPI 8 is EAPI 7 with the following changes: \item \t{IDEPEND}, \featureref{idepend}. \item \t{econf} adds \t{-{}-datarootdir}, \featureref{econf-options}. \item \t{unpack} no longer supports \t{.7z}, \t{.rar}, \t{.lha}, \featureref{unpack-extensions}. +\item \t{useq} banned, \featureref{banned-commands}. +\item \t{hasv} and \t{hasq} banned, \featureref{banned-commands}. \end{compactitem} \ChangeWhenAddingAnEAPI{8} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index 0b722a7..78acbd5 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -74,6 +74,22 @@ called, the package manager must abort the build process indicating an error. 7, 8 & Yes & Yes & Yes & Yes & Yes & Yes \\ \bottomrule \end{tabular} + \vspace{\floatsep} + \caption{Banned commands (continued)} + \label{tab:banned-commands-table-2} + \begin{tabular}{llll} + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{3}{c}{\textbf{Command banned?}} \\ + \multicolumn{1}{c}{} & + \multicolumn{1}{c}{\textbf{\t{useq}}} & + \multicolumn{1}{c}{\textbf{\t{hasv}}} & + \multicolumn{1}{c}{\textbf{\t{hasq}}} \\ + \midrule + 0, 1, 2, 3, 4, 5, 6, 7 & No & No & No \\ + 8 & Yes & Yes & Yes \\ + \bottomrule + \end{tabular} \end{centertable} \subsection{Sandbox commands} @@ -846,6 +862,8 @@ table~\ref{tab:use-list-strictness}. \item[usev] The same as \t{use}, but also prints the flag name if the condition is met. \item[useq] Deprecated synonym for \t{use}. + In EAPIs listed in table~\ref{tab:banned-commands-table-2}, this command is banned as per + section~\ref{sec:banned-commands}. \item[use_with] \featurelabel{use-with} Has one-, two-, and three-argument forms. The first argument is a USE flag name, the second a \t{configure} option name (\t{\$\{opt\}}), defaulting to the same as the first argument if not provided, and the third is a string value @@ -920,7 +938,11 @@ These functions check whitespace-separated lists for a particular value. \item[has] Returns shell true (0) if the first argument (a word) is found in the list of subsequent arguments, false otherwise. Guaranteed quiet. \item[hasv] The same as \t{has}, but also prints the first argument if found. + In EAPIs listed in table~\ref{tab:banned-commands-table-2}, this command is banned as per + section~\ref{sec:banned-commands}. \item[hasq] Deprecated synonym for \t{has}. + In EAPIs listed in table~\ref{tab:banned-commands-table-2}, this command is banned as per + section~\ref{sec:banned-commands}. \end{description} \subsection{Version manipulation and comparison commands}