diff options
author | Ulrich Müller <ulm@gentoo.org> | 2012-05-10 09:19:08 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2012-09-13 08:28:16 +0200 |
commit | 6ffe6aec8f13ddc3786d0f9f73c8f3b54e8df2b6 (patch) | |
tree | a00be4798b9a74b14f2701172737791002281571 | |
parent | EAPI 5: new* commands can read from standard input. (diff) | |
download | pms-6ffe6aec8f13ddc3786d0f9f73c8f3b54e8df2b6.tar.gz pms-6ffe6aec8f13ddc3786d0f9f73c8f3b54e8df2b6.tar.bz2 pms-6ffe6aec8f13ddc3786d0f9f73c8f3b54e8df2b6.zip |
Make parsing of the EAPI assignment mandatory.
-rw-r--r-- | ebuild-vars.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ebuild-vars.tex b/ebuild-vars.tex index 306fb2f..7eaabc5 100644 --- a/ebuild-vars.tex +++ b/ebuild-vars.tex @@ -136,8 +136,8 @@ the assignment statement must match the following regular expression: ^[ \t]*EAPI=(['"]?)([A-Za-z0-9+_.-]*)\1[ \t]*([ \t]#.*)?$ \end{verbatim} -The package manager may optionally determine the EAPI of an ebuild by parsing its first non-blank -and non-comment line, using the above regular expression. If it matches, the EAPI is the substring +The package manager must determine the EAPI of an ebuild by parsing its first non-blank and +non-comment line, using the above regular expression. If it matches, the EAPI is the substring matched by the capturing parentheses (\t{0} if empty), otherwise it is \t{0}. For a recognised EAPI, the package manager must make sure that the \t{EAPI} value obtained by sourcing the ebuild with bash is identical to the EAPI obtained by parsing. The ebuild must be treated as invalid if |