commit: 869ca3bbb012be600cd3033174eff3951c310a89 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon Jan 20 13:21:44 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=869ca3bb
EAPI 9 has ver_replacing Bug: https://bugs.gentoo.org/947530 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> eapi-differences.tex | 4 ++++ pkg-mgr-commands.tex | 21 +++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index e18d5ca..a411352 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -180,6 +180,9 @@ Controllable stripping & \compactfeatureref{dostrip} & \t{ver_*} commands & \compactfeatureref{ver-commands} & No & Yes & Yes & Yes \\ +\t{ver_replacing} & \compactfeatureref{ver-replacing} & + No & No & No & Yes \\ + \t{unpack} support for \t{7z} & \compactfeatureref{unpack-extensions} & Yes & Yes & No & No \\ @@ -380,6 +383,7 @@ EAPI 9 is EAPI 8 with the following changes: \item \t{assert} banned, \featureref{banned-commands}. \item \t{domo} banned, \featureref{banned-commands}. \item \t{pipestatus}, \featureref{pipestatus}. +\item \t{ver_replacing}, \featureref{ver-replacing}. \end{compactitem} \ChangeWhenAddingAnEAPI{9} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index a2a1935..48c341d 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -1101,20 +1101,33 @@ the second, inclusively. Both version strings must conform to the version specification in section~\ref{sec:version-spec}. Comparison is done using algorithm~\ref{alg:version-comparison}. + +\item[ver_replacing] \featurelabel{ver-replacing} Takes an operator and a version string as + arguments, which follow the same specification as in \t{ver_test}. Iterates over the elements + of \t{REPLACING_VERSIONS}, using \t{ver_test} to compare each element against the version + string. Returns shell true (0) if the specified relation holds for at least one element, + shell false (1) otherwise. In particular, shell false is returned when \t{REPLACING_VERSIONS} + is empty. + + Only available in EAPIs listed in table~\ref{tab:version-commands} as supporting + \t{ver_replacing}. The command is only meaningful in phases where \t{REPLACING_VERSIONS} is + defined. \end{description} \ChangeWhenAddingAnEAPI{9} \begin{centertable}{EAPIs supporting version manipulation commands} \label{tab:version-commands} - \begin{tabular}{llll} + \begin{tabular}{lllll} \toprule \multicolumn{1}{c}{\textbf{EAPI}} & \multicolumn{1}{c}{\textbf{\t{ver_cut}?}} & \multicolumn{1}{c}{\textbf{\t{ver_rs}?}} & - \multicolumn{1}{c}{\textbf{\t{ver_test}?}} \\ + \multicolumn{1}{c}{\textbf{\t{ver_test}?}} & + \multicolumn{1}{c}{\textbf{\t{ver_replacing}?}} \\ \midrule - 0, 1, 2, 3, 4, 5, 6 & No & No & No \\ - 7, 8, 9 & Yes & Yes & Yes \\ + 0, 1, 2, 3, 4, 5, 6 & No & No & No & No \\ + 7, 8 & Yes & Yes & Yes & No \\ + 9 & Yes & Yes & Yes & Yes \\ \bottomrule \end{tabular} \end{centertable}
