Gentoo Archives: gentoo-portage-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH eapi6-pt2 v2 2/6] nonfatal: Implement fallback executable for EAPI 7
Date: Fri, 09 Mar 2018 08:51:19
Message-Id: 23202.19199.619646.329071@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-portage-dev] [PATCH eapi6-pt2 v2 2/6] nonfatal: Implement fallback executable for EAPI 7 by "Michał Górny"
1 >>>>> On Fri, 9 Mar 2018, Michał Górny wrote:
2
3 > +if ! ___eapi_has_nonfatal_as_executable; then
4 > + die "${0##*/} not supported as fallback helper in this EAPI"
5 > +fi
6
7 Nothing wrong with this, but this test isn't strictly necessary.
8 PMS says in [1]: "Except where otherwise noted, they may be internal
9 (shell functions or aliases) or external commands available in PATH;
10 where this is not specified, ebuilds may not rely upon either
11 behaviour."
12
13 So in EAPIs 0 to 6, Portage is free to implement it as shell function,
14 or external command, or both.
15
16 Ulrich
17
18 [1] https://projects.gentoo.org/pms/6/pms.html#x1-13100011.3.3