From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C7DF31382C5 for ; Sun, 18 Feb 2018 13:36:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25771E0CAE; Sun, 18 Feb 2018 13:36:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB484E0CAE for ; Sun, 18 Feb 2018 13:36:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6E742335C59 for ; Sun, 18 Feb 2018 13:36:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 723BC239 for ; Sun, 18 Feb 2018 13:36:19 +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: <1518960954.8fbdd07ea357df6ebf05e9b4190a05beeb0c7ebd.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-7 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: 8fbdd07ea357df6ebf05e9b4190a05beeb0c7ebd X-VCS-Branch: eapi-7 Date: Sun, 18 Feb 2018 13:36:19 +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-Archives-Salt: ef2bc1d4-6619-4c62-8236-4c5b8ca3df34 X-Archives-Hash: 0d1cf2d0291827f1a83810faeabdce89 commit: 8fbdd07ea357df6ebf05e9b4190a05beeb0c7ebd Author: Michał Górny gentoo org> AuthorDate: Fri Sep 29 14:24:10 2017 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Feb 18 13:35:54 2018 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=8fbdd07e EAPI 7 provides command fallback for nonfatal. Bug: https://bugs.gentoo.org/622894 eapi-differences.tex | 3 ++- pkg-mgr-commands.tex | 16 +++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index 47c6950..f47a8c6 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -210,7 +210,7 @@ Most utilities die & \compactfeatureref{die-on-failure} & No & Yes & Yes & Yes & Yes \\ \t{nonfatal} & \compactfeatureref{nonfatal} & - No & Yes & Yes & Yes & Yes \\ + No & Yes & Yes & Yes & Function / external \\ \t{dohard} & \compactfeatureref{banned-commands} & Yes & Banned & Banned & Banned & Banned \\ @@ -445,6 +445,7 @@ EAPI 7 is EAPI 6 with the following changes: \t{-{}-host-root}, \featureref{pm-query-options}. \item \t{ENV_UNSET}, \featureref{env-unset}. \item \t{patch} is compatible with GNU patch 2.7, \featureref{gnu-patch}. +\item \t{nonfatal} is both a shell function and an external command, \featureref{nonfatal}. \end{compactitem} \ChangeWhenAddingAnEAPI{7} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index 16b3aa4..2312f81 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -22,6 +22,10 @@ The following commands affect this behaviour: the build process due to a failure, instead a non-zero exit status shall be returned. Only in EAPIs listed in table~\ref{tab:commands-die-table} as supporting \t{nonfatal}. + In EAPIs listed in table~\ref{tab:commands-die-table} as having \t{nonfatal} defined both + as a shell function and as an external command, the package manager must provide both + implementations to account for calling directly in ebuild scope or through \t{xargs}. + Explicit \t{die} or \t{assert} commands only respect \t{nonfatal} when called with the \t{-n} option and in EAPIs supporting this option, see table~\ref{tab:nonfatal-die}. \end{description} @@ -29,14 +33,16 @@ The following commands affect this behaviour: \ChangeWhenAddingAnEAPI{7} \begin{centertable}{EAPI command failure behaviour} \label{tab:commands-die-table} - \begin{tabular}{lll} + \begin{tabular}{llll} \toprule \multicolumn{1}{c}{\textbf{EAPI}} & - \multicolumn{1}{c}{\textbf{Command failure behaviour}} & - \multicolumn{1}{c}{\textbf{Supports \t{nonfatal}?}} \\ + \multicolumn{1}{P{8em}}{\textbf{Command failure behaviour}} & + \multicolumn{1}{P{5em}}{\textbf{Supports \t{nonfatal}?}} & + \multicolumn{1}{P{12em}}{\textbf{\t{nonfatal} is both a function and an external command?}} \\ \midrule - 0, 1, 2, 3 & Non-zero exit & No \\ - 4, 5, 6, 7 & Aborts & Yes \\ + 0, 1, 2, 3 & Non-zero exit & No & n/a \\ + 4, 5, 6 & Aborts & Yes & No \\ + 7 & Aborts & Yes & Yes \\ \bottomrule \end{tabular} \end{centertable}