commit: 15e4834617b9d9144460f4d3461e8d663bfce9ca Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon May 12 18:14:14 2025 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Tue Dec 2 19:05:23 2025 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=15e48346
EAPI 9 has edo Bug: https://bugs.gentoo.org/744880 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> eapi-differences.tex | 4 ++++ pkg-mgr-commands.tex | 22 +++++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index a411352..99a3526 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -192,6 +192,9 @@ Controllable stripping & \compactfeatureref{dostrip} & \t{unpack} support for \t{rar} & \compactfeatureref{unpack-extensions} & Yes & Yes & No & No \\ +\t{edo} & \compactfeatureref{edo} & + No & No & No & Yes \\ + \end{longtable} \chapter{Differences between EAPIs} @@ -384,6 +387,7 @@ EAPI 9 is EAPI 8 with the following changes: \item \t{domo} banned, \featureref{banned-commands}. \item \t{pipestatus}, \featureref{pipestatus}. \item \t{ver_replacing}, \featureref{ver-replacing}. +\item \t{edo}, \featureref{edo}. \end{compactitem} \ChangeWhenAddingAnEAPI{9} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index 48c341d..3f5592b 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -1302,21 +1302,33 @@ has returned. \end{algorithmic} \end{algorithm} +\item[edo] \featurelabel{edo} Takes a command line, prints it to stderr and executes the command. +Specifically, the entire list of (one or more) arguments is output as an informational message +to stderr; individual tokens may be reformatted to avoid ambiguity. The first argument is then +executed as a command, with the remaining arguments passed to it. If the command fails, \t{edo} +aborts the build process using \t{die}, unless it was called under \t{nonfatal}, in which case it +returns a non-zero exit status. + +\t{edo} must be implemented internally as a shell function. Only available in EAPIs listed in +table~\ref{tab:misc-commands} as supporting \t{edo}. + \end{description} \ChangeWhenAddingAnEAPI{9} \begin{centertable}{Misc commands for EAPIs} \label{tab:misc-commands} - \begin{tabular}{llll} + \begin{tabular}{lllll} \toprule \multicolumn{1}{c}{\textbf{EAPI}} & \multicolumn{1}{c}{\textbf{\t{default}?}} & \multicolumn{1}{c}{\textbf{\t{einstalldocs}?}} & - \multicolumn{1}{c}{\textbf{\t{get_libdir}?}} \\ + \multicolumn{1}{c}{\textbf{\t{get_libdir}?}} & + \multicolumn{1}{c}{\textbf{\t{edo}?}} \\ \midrule - 0, 1 & No & No & No \\ - 2, 3, 4, 5 & Yes & No & No \\ - 6, 7, 8, 9 & Yes & Yes & Yes \\ + 0, 1 & No & No & No & No \\ + 2, 3, 4, 5 & Yes & No & No & No \\ + 6, 7, 8 & Yes & Yes & Yes & No \\ + 9 & Yes & Yes & Yes & Yes \\ \bottomrule \end{tabular} \end{centertable}
