commit: 4a450295fb452838887b61a46bf538ba6015a791 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon Feb 21 18:32:43 2022 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu Jan 9 17:39:59 2025 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=4a450295
EAPI 9 profile EAPI defaults to top-level Bug: https://bugs.gentoo.org/806181 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> eapi-differences.tex | 5 ++++- profiles.tex | 23 +++++++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index 9617dc4..f6aafe7 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -32,6 +32,9 @@ have identical entries for all listed EAPIs.} Less strict \t{updates} syntax & \compactfeatureref{updates-filenames} & No & No & Yes & Yes \\ +Default EAPI for profiles & \compactfeatureref{profile-eapi-default} & + 0 & 0 & 0 & Top-level \\ + Profile files as directories & \compactfeatureref{profile-file-dirs} & No & Yes & Yes & Yes \\ @@ -352,7 +355,7 @@ EAPI 8 is EAPI 7 with the following changes: EAPI 9 is EAPI 8 with the following changes: \begin{compactitem} -\item None +\item Different default EAPI for profiles, \featureref{profile-eapi-default}. \end{compactitem} \ChangeWhenAddingAnEAPI{9} diff --git a/profiles.tex b/profiles.tex index c836f08..9d00c14 100644 --- a/profiles.tex +++ b/profiles.tex @@ -33,8 +33,27 @@ are discarded. 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