From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ADA6B1580EB for ; Sun, 25 May 2025 16:47:06 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 997763430C4 for ; Sun, 25 May 2025 16:47:06 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 519E11104A8; Sun, 25 May 2025 16:46:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 46BA01104A8 for ; Sun, 25 May 2025 16:46:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 00A9E343011 for ; Sun, 25 May 2025 16:46:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AC0D028BB for ; Sun, 25 May 2025 16:46:49 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1748191575.3e6ea5b25374ea8cd603c4300eabb9869033b68f.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-9 commit in: / X-VCS-Repository: proj/pms X-VCS-Files: eapi-differences.tex pkg-mgr-commands.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 3e6ea5b25374ea8cd603c4300eabb9869033b68f X-VCS-Branch: eapi-9 Date: Sun, 25 May 2025 16:46:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a29bf159-310c-498c-8f87-4b1b2fb5ee58 X-Archives-Hash: ca94749f6047c3da67390ead0decf074 commit: 3e6ea5b25374ea8cd603c4300eabb9869033b68f Author: Ulrich Müller gentoo org> AuthorDate: Fri Nov 29 16:06:26 2024 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun May 25 16:46:15 2025 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=3e6ea5b2 EAPI 9 has pipestatus Bug: https://bugs.gentoo.org/566342 Signed-off-by: Ulrich Müller gentoo.org> eapi-differences.tex | 4 ++++ pkg-mgr-commands.tex | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/eapi-differences.tex b/eapi-differences.tex index 36d5462..7ed588e 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -138,6 +138,9 @@ Output commands use stdout & \compactfeatureref{output-no-stdout} & \t{die} in subshell & \compactfeatureref{subshell-die} & No & Yes & Yes & Yes \\ +\t{pipestatus} & \compactfeatureref{pipestatus} & + No & No & No & Yes \\ + \t{econf -{}-datarootdir} & \compactfeatureref{econf-options} & No & No & Yes & Yes \\ @@ -369,6 +372,7 @@ EAPI 9 is EAPI 8 with the following changes: \item Variables no longer exported, \featureref{export-vars}. \item \t{assert} banned, \featureref{banned-commands}. \item \t{domo} banned, \featureref{banned-commands}. +\item \t{pipestatus}, \featureref{pipestatus}. \end{compactitem} \ChangeWhenAddingAnEAPI{9} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index c977d00..a2a1935 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -206,6 +206,11 @@ completing. Ebuilds must not run any of these commands once the current phase fu 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}. +\item[pipestatus] \featurelabel{pipestatus} Checks the shell's pipe status array, i.\,e.\ the exit + status of the command(s) in the most recently executed foreground pipeline. Returns shell true + (0) if all elements are zero, or the last non-zero element otherwise. If called with \t{-v} + as the first argument, also outputs the pipe status array as a space-separated list. + Only available in EAPIs listed in table~\ref{tab:pipestatus} as supporting \t{pipestatus}. \end{description} \ChangeWhenAddingAnEAPI{9} @@ -224,6 +229,20 @@ completing. Ebuilds must not run any of these commands once the current phase fu \end{tabular} \end{centertable} +\ChangeWhenAddingAnEAPI{9} +\begin{centertable}{EAPIs supporting \t{pipestatus}} + \label{tab:pipestatus} + \begin{tabular}{ll} + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{1}{c}{\textbf{Supports \t{pipestatus}?}} \\ + \midrule + 0, 1, 2, 3, 4, 5, 6, 7, 8 & No \\ + 9 & Yes \\ + \bottomrule + \end{tabular} +\end{centertable} + \subsection{Patch commands} These commands are used during the \t{src_prepare} phase to apply patches to the package's sources. Ebuilds must not run any of these commands once the current phase function has returned.