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 |