diff options
author | Ulrich Müller <ulm@gentoo.org> | 2021-05-23 11:45:56 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-06-05 10:55:36 +0200 |
commit | 687c810ecada6066baceca316039a92bd3961fbd (patch) | |
tree | 58c3c9e54ca18033cbecb68a99f1e603b7dedbbb /ebuild-functions.tex | |
parent | EAPI 8 has install-time dependencies (IDEPEND) (diff) | |
download | pms-687c810ecada6066baceca316039a92bd3961fbd.tar.gz pms-687c810ecada6066baceca316039a92bd3961fbd.tar.bz2 pms-687c810ecada6066baceca316039a92bd3961fbd.zip |
EAPI 8 has an empty working directory in pkg_* phases
https://bugs.gentoo.org/595030
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'ebuild-functions.tex')
-rw-r--r-- | ebuild-functions.tex | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/ebuild-functions.tex b/ebuild-functions.tex index ffdea16..00fd259 100644 --- a/ebuild-functions.tex +++ b/ebuild-functions.tex @@ -22,11 +22,13 @@ Ebuilds must not call nor assume the existence of any phase functions. \subsection{Initial working directories} \label{sec:s-to-workdir-fallback} -Some functions may assume that their initial working directory is set to a particular location; -these are noted below. If no initial working directory is mandated, it may be set to anything and -the ebuild must not rely upon a particular location for it. The ebuild \emph{may} assume that the -initial working directory for any phase is a trusted location that may only be written to by a -privileged user and group. +\featurelabel{phase-function-dir} Some functions may assume that their initial working directory is +set to a particular location; these are noted below. If no initial working directory is mandated, +then for EAPIs listed in table~\ref{tab:function-dirs} as having an empty directory, it must be set +to a dedicated directory that is empty at the start of the function and may be read-only. For other +EAPIs, it may be set to anything. The ebuild must not rely upon a particular location for it. +The ebuild \emph{may} assume that the initial working directory for any phase is a trusted location +that may only be written to by a privileged user and group. \featurelabel{s-workdir-fallback} Some functions are described as having an initial working directory of \t{S} with an error or fallback to \t{WORKDIR}\@. For EAPIs listed in @@ -45,6 +47,20 @@ fallback to \t{WORKDIR} is used: \end{compactitem} \ChangeWhenAddingAnEAPI{8} +\begin{centertable}{Initial working directory in \t{pkg_*} phase functions for EAPIs} + \label{tab:function-dirs} + \begin{tabular}{ll} + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{1}{c}{\textbf{Initial working directory?}} \\ + \midrule + 0, 1, 2, 3, 4, 5, 6, 7 & Any \\ + 8 & Empty \\ + \bottomrule + \end{tabular} +\end{centertable} + +\ChangeWhenAddingAnEAPI{8} \begin{centertable}{EAPIs with \t{S} to \t{WORKDIR} fallbacks} \label{tab:s-fallback-table} \begin{tabular}{ll} |