commit:     944bde4b19783aa456afc53c4ffa1934b661aceb
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 29 16:02:56 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Nov 16 19:33:18 2025 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=944bde4b

EAPI 9 bans assert

Bug: https://bugs.gentoo.org/566342
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eapi-differences.tex |  4 ++++
 pkg-mgr-commands.tex | 10 +++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/eapi-differences.tex b/eapi-differences.tex
index bd621e2..b48b9fb 100644
--- a/eapi-differences.tex
+++ b/eapi-differences.tex
@@ -126,6 +126,9 @@ GNU \t{patch} version & \compactfeatureref{gnu-patch} &
 \t{hasq} & \compactfeatureref{banned-commands} &
     Yes & Yes & Banned & Banned \\
 
+\t{assert} & \compactfeatureref{banned-commands} &
+    Yes & Yes & Yes & Banned \\
+
 Query command options & \compactfeatureref{pm-query-options} &
     \t{-{}-host-root} & \t{-b}, \t{-d}, \t{-r} & \t{-b}, \t{-d}, \t{-r} & 
\t{-b}, \t{-d}, \t{-r} \\
 
@@ -368,6 +371,7 @@ EAPI 9 is EAPI 8 with the following changes:
 \item \t{use.stable} and \t{package.use.stable}, \featureref{use-stable}.
 \item Bash version is 5.3, \featureref{bash-version}.
 \item Variables no longer exported, \featureref{export-vars}.
+\item \t{assert} banned, \featureref{banned-commands}.
 \end{compactitem}
 
 \ChangeWhenAddingAnEAPI{9}

diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
index 878d1eb..3dfc3e1 100644
--- a/pkg-mgr-commands.tex
+++ b/pkg-mgr-commands.tex
@@ -80,10 +80,12 @@ called, the package manager must abort the build process 
indicating an error.
       \multicolumn{1}{c}{} &
       \multicolumn{1}{c}{\textbf{\t{useq}}} &
       \multicolumn{1}{c}{\textbf{\t{hasv}}} &
-      \multicolumn{1}{c}{\textbf{\t{hasq}}} & & & \\
+      \multicolumn{1}{c}{\textbf{\t{hasq}}} &
+      \multicolumn{1}{c}{\textbf{\t{assert}}} & & \\
       \midrule
-      0, 1, 2, 3, 4, 5, 6, 7  & No  & No  & No  & & & \\
-      8, 9                    & Yes & Yes & Yes & & & \\
+      0, 1, 2, 3, 4, 5, 6, 7  & No  & No  & No  & No  & & \\
+      8                       & Yes & Yes & Yes & No  & & \\
+      9                       & Yes & Yes & Yes & Yes & & \\
       \bottomrule
     \end{tabular}
 \end{centertable}
@@ -201,6 +203,8 @@ completing. Ebuilds must not run any of these commands once 
the current phase fu
     environment.
 \item[assert] Checks the shell's pipe status array, and if any element is 
non-zero (indicating
     failure), calls \t{die}, passing any parameters to it.
+    In EAPIs listed in table~\ref{tab:banned-commands-table}, this command is 
banned as per
+    section~\ref{sec:banned-commands}.
 \end{description}
 
 \ChangeWhenAddingAnEAPI{9}

Reply via email to