diff options
author | Ulrich Müller <ulm@gentoo.org> | 2022-02-21 19:32:43 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-08-18 17:51:54 +0200 |
commit | 213db65b0d49478c981bc9d80afa7ff5d74eb705 (patch) | |
tree | 73b0dd31e47563eb467f66ed47addd04573c15d1 | |
parent | EAPI 9 profile parent files can contain comments (diff) | |
download | pms-213db65b.tar.gz pms-213db65b.tar.bz2 pms-213db65b.zip |
EAPI 9 profile EAPI defaults to top-level
Bug: https://bugs.gentoo.org/806181
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | eapi-differences.tex | 5 | ||||
-rw-r--r-- | profiles.tex | 23 |
2 files changed, 26 insertions, 2 deletions
diff --git a/eapi-differences.tex b/eapi-differences.tex index b83da4e..d292bc7 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -50,6 +50,9 @@ Less strict filenames in \t{updates} & \compactfeatureref{updates-filenames} & Comments in profiles \t{parent} file & \compactfeatureref{parent-comments} & No & No & No & No & Yes \\ +Default EAPI for profiles & \compactfeatureref{profile-eapi-default} & + 0 & 0 & 0 & 0 & Top-level \\ + Profile files as directories & \compactfeatureref{profile-file-dirs} & No & No & Yes & Yes & Yes \\ @@ -409,6 +412,8 @@ EAPI 9 is EAPI 8 with the following changes: \begin{compactitem} \item Comments in profiles \t{parent} file, \featureref{parent-comments}. +\item Different default EAPI for profiles, \featureref{profile-eapi-default}. + \end{compactitem} \ChangeWhenAddingAnEAPI{9} diff --git a/profiles.tex b/profiles.tex index 6fa8a1c..de59f0a 100644 --- a/profiles.tex +++ b/profiles.tex @@ -50,8 +50,27 @@ this file must not contain comments or blank lines. A profile directory may contain an \t{eapi} file. This file, if it exists, must contain a single line with the name of an EAPI\@. This specifies the EAPI to use when handling the directory in question; a package manager must not attempt to use any profile using a directory which requires an -EAPI it does not support. If no \t{eapi} file is present, EAPI 0 shall be used. The EAPI is neither -inherited via the \t{parent} file nor in subdirectories. +EAPI it does not support. + +\featurelabel{profile-eapi-default} If no \t{eapi} file is present, the default depends on the EAPI +of the top-level profiles directory (see section~\ref{sec:profiles-dir}). That EAPI shall be used +if table~\ref{tab:profile-eapi-default} lists it as ``top-level''. Otherwise, EAPI 0 shall be used. + +The EAPI is neither inherited via the \t{parent} file nor in subdirectories. + +\ChangeWhenAddingAnEAPI{9} +\begin{centertable}{Default EAPI for profiles} + \label{tab:profile-eapi-default} + \begin{tabular}{ll} + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{1}{c}{\textbf{Default EAPI?}} \\ + \midrule + 0, 1, 2, 3, 4, 5, 6, 7, 8 & 0 \\ + 9 & Top-level \\ + \bottomrule + \end{tabular} +\end{centertable} \subsection{deprecated} If a profile contains a file named \t{deprecated}, it is treated as such. The first line of this |