EAPI 7 specifies that nonfatal has to be implemented both as a bash function and a fallback executable, so that it can be used e.g. via find/xargs.
Bug: https://bugs.gentoo.org/622894 --- bin/ebuild-helpers/nonfatal | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/ebuild-helpers/nonfatal diff --git a/bin/ebuild-helpers/nonfatal b/bin/ebuild-helpers/nonfatal new file mode 100755 index 000000000..5da07cc71 --- /dev/null +++ b/bin/ebuild-helpers/nonfatal @@ -0,0 +1,14 @@ +#!/bin/bash +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1 + +if ! ___eapi_has_nonfatal; then + die "${0##*/} not supported in this EAPI" +fi +if [[ $# -lt 1 ]]; then + die "${0##*/}: Missing argument" +fi + +PORTAGE_NONFATAL=1 exec "$@" -- 2.16.2