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 A48F71396D0 for ; Wed, 4 Oct 2017 16:25:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDA3A2BC073; Wed, 4 Oct 2017 16:25:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8DC712BC073 for ; Wed, 4 Oct 2017 16:25:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5613D341832 for ; Wed, 4 Oct 2017 16:25:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC02690AE for ; Wed, 4 Oct 2017 16:25:18 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1507134307.18d28b77582d9e75552866f6cc9dd098b98394e4.mgorny@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: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 18d28b77582d9e75552866f6cc9dd098b98394e4 X-VCS-Branch: eapi-7 Date: Wed, 4 Oct 2017 16:25:18 +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: c776e715-9c61-493c-ac23-076de96dfd89 X-Archives-Hash: 9ead6ebc0b6bf1ea3ac8b74bdf0581a5 commit: 18d28b77582d9e75552866f6cc9dd098b98394e4 Author: Michał Górny gentoo org> AuthorDate: Fri Sep 29 14:24:10 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Oct 4 16:25:07 2017 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=18d28b77 EAPI 7 provides command fallback for nonfatal. eapi-differences.tex | 5 +++++ pkg-mgr-commands.tex | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index 70eadb5..fb469f6 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -41,6 +41,9 @@ of this document for a complete table of previous EAPIs. \bottomrule \endlastfoot +\t{nonfatal} function+command & \compactfeatureref{nonfatal-fallback} & + No & No & No & No & Yes \\ + \t{domo} install path & \compactfeatureref{domo-path} & \t{\$\{DESTTREE\}\slash share\slash locale} & \t{\$\{DESTTREE\}\slash share\slash locale} & @@ -454,6 +457,8 @@ EAPI 7 is EAPI 6 with the following changes: \item \t{ECLASSDIR} removed, \featureref{eclassdir}. \item \t{domo} installs to \t{/usr/share/locale}, ignoring \t{into}, \featureref{domo-path}. \item \t{dolib} and \t{libopts} banned, \featureref{banned-commands}. +\item \t{nonfatal} defined both as a shell function and external command, + \featureref{nonfatal-fallback}. \end{compactitem} \ChangeWhenAddingAnEAPI{7} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index f3849fc..c17c9cc 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -22,6 +22,11 @@ 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}. + \featurelabel{nonfatal-fallback} In EAPIs listed in table~\ref{tab:commands-die-table} + as having \t{nonfatal} defined as both function and external command, the package manager must + provide both implementations to account both for calling in ebuild scope directly, and via + \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 +34,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{6em}}{\textbf{Supports \t{nonfatal}?}} & + \multicolumn{1}{P{12em}}{\textbf{\t{nonfatal} as both function and 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}