Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 595030 | Differences between
and this patch

Collapse All | Expand All

(-)a/eapi-differences.tex (+4 lines)
Lines 111-116 Use dependencies & \compactfeatureref{use-deps} & Link Here
111
\t{!!}\ blockers & \compactfeatureref{bang-strength} &
111
\t{!!}\ blockers & \compactfeatureref{bang-strength} &
112
    * & Strong & Strong & Strong & Strong \\
112
    * & Strong & Strong & Strong & Strong \\
113
113
114
Working directory in functions & \compactfeatureref{phase-function-dir} &
115
    Any & Any & Any & Any & Empty \\
116
114
\t{S} to \t{WORKDIR} fallback & \compactfeatureref{s-workdir-fallback} &
117
\t{S} to \t{WORKDIR} fallback & \compactfeatureref{s-workdir-fallback} &
115
    * & Conditional & Conditional & Conditional & Conditional \\
118
    * & Conditional & Conditional & Conditional & Conditional \\
116
119
Lines 528-533 EAPI 8 is EAPI 7 with the following changes: Link Here
528
\item Bash version is 5.0, \featureref{bash-version}.
531
\item Bash version is 5.0, \featureref{bash-version}.
529
\item Selective fetch/mirror restriction, \featureref{uri-restrict}.
532
\item Selective fetch/mirror restriction, \featureref{uri-restrict}.
530
\item \t{IDEPEND}, \featureref{idepend}.
533
\item \t{IDEPEND}, \featureref{idepend}.
534
\item Empty default working directory in phase functions, \featureref{phase-function-dir}.
531
\item Different \t{src_prepare} implementation, \featureref{src-prepare-8}.
535
\item Different \t{src_prepare} implementation, \featureref{src-prepare-8}.
532
\item \t{PROPERTIES}, \t{RESTRICT} accumulated across eclasses, \featureref{accumulate-vars}.
536
\item \t{PROPERTIES}, \t{RESTRICT} accumulated across eclasses, \featureref{accumulate-vars}.
533
\item \t{useq} banned, \featureref{banned-commands}.
537
\item \t{useq} banned, \featureref{banned-commands}.
(-)a/ebuild-functions.tex (-6 / +21 lines)
Lines 22-32 Ebuilds must not call nor assume the existence of any phase functions. Link Here
22
\subsection{Initial working directories}
22
\subsection{Initial working directories}
23
\label{sec:s-to-workdir-fallback}
23
\label{sec:s-to-workdir-fallback}
24
24
25
Some functions may assume that their initial working directory is set to a particular location;
25
\featurelabel{phase-function-dir} Some functions may assume that their initial working directory is
26
these are noted below. If no initial working directory is mandated, it may be set to anything and
26
set to a particular location; these are noted below. If no initial working directory is mandated,
27
the ebuild must not rely upon a particular location for it. The ebuild \emph{may} assume that the
27
then for EAPIs listed in table~\ref{tab:function-dirs} as having an empty directory, it must be set
28
initial working directory for any phase is a trusted location that may only be written to by a
28
to a dedicated directory that is empty at the start of the function and may be read-only. For other
29
privileged user and group.
29
EAPIs, it may be set to anything. The ebuild must not rely upon a particular location for it.
30
The ebuild \emph{may} assume that the initial working directory for any phase is a trusted location
31
that may only be written to by a privileged user and group.
30
32
31
\featurelabel{s-workdir-fallback} Some functions are described as having an initial working
33
\featurelabel{s-workdir-fallback} Some functions are described as having an initial working
32
directory of \t{S} with an error or fallback to \t{WORKDIR}\@. For EAPIs listed in
34
directory of \t{S} with an error or fallback to \t{WORKDIR}\@. For EAPIs listed in
Lines 44-49 fallback to \t{WORKDIR} is used: Link Here
44
    executed, are in \t{DEFINED_PHASES}.
46
    executed, are in \t{DEFINED_PHASES}.
45
\end{compactitem}
47
\end{compactitem}
46
48
49
\ChangeWhenAddingAnEAPI{8}
50
\begin{centertable}{Default initial working directory in functions for EAPIs}
51
    \label{tab:function-dirs}
52
    \begin{tabular}{ll}
53
      \toprule
54
      \multicolumn{1}{c}{\textbf{EAPI}} &
55
      \multicolumn{1}{c}{\textbf{Working dir?}} \\
56
      \midrule
57
      0, 1, 2, 3, 4, 5, 6, 7  & Any   \\
58
      8                       & Empty \\
59
      \bottomrule
60
    \end{tabular}
61
\end{centertable}
62
47
\ChangeWhenAddingAnEAPI{8}
63
\ChangeWhenAddingAnEAPI{8}
48
\begin{centertable}{EAPIs with \t{S} to \t{WORKDIR} fallbacks}
64
\begin{centertable}{EAPIs with \t{S} to \t{WORKDIR} fallbacks}
49
    \label{tab:s-fallback-table}
65
    \label{tab:s-fallback-table}
50
- 

Return to bug 595030