1 |
commit: 25fb5fca6674215ea8aaa3d0ec3dd3df451eec07 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 30 17:37:49 2012 +0000 |
4 |
Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 30 19:43:02 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=25fb5fca |
7 |
|
8 |
EAPI 5 supports --host-root option for *_version |
9 |
|
10 |
See bug 401239 |
11 |
|
12 |
--- |
13 |
eapi-differences.tex | 5 +++++ |
14 |
pkg-mgr-commands.tex | 24 +++++++++++++++++++++++- |
15 |
2 files changed, 28 insertions(+), 1 deletions(-) |
16 |
|
17 |
diff --git a/eapi-differences.tex b/eapi-differences.tex |
18 |
index 49d3fbc..6eac052 100644 |
19 |
--- a/eapi-differences.tex |
20 |
+++ b/eapi-differences.tex |
21 |
@@ -151,6 +151,9 @@ Most utilities die & \compactfeatureref{die-on-failure} & |
22 |
\t{dosed} & \compactfeatureref{banned-commands} & |
23 |
Yes & Yes & Yes & Yes & Banned & Banned \\ |
24 |
|
25 |
+Option \t{-{}-host-root} & \compactfeatureref{host-root-option} & |
26 |
+ No & No & No & No & No & Yes \\ |
27 |
+ |
28 |
\t{econf} arguments & \compactfeatureref{econf-options} & |
29 |
& & & & disable dependency tracking & disable dependency tracking, disable silent rules \\ |
30 |
|
31 |
@@ -284,6 +287,8 @@ EAPI 5 is EAPI 4 with the following changes: |
32 |
\featureref{apply-user-patches}. |
33 |
\item \t{EBUILD\_PHASE\_FUNC}, \featureref{ebuild-phase-func}. |
34 |
\item \t{find} is guaranteed to be GNU, \featureref{gnu-find}. |
35 |
+\item \t{best\_version} and \t{has\_version} support the \t{-{}-host-root} option, |
36 |
+ \featureref{host-root-option}. |
37 |
\item \t{new*} can read from standard input, \featureref{newfoo-stdin}. |
38 |
\end{compactitem} |
39 |
|
40 |
|
41 |
diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex |
42 |
index 573811a..e844379 100644 |
43 |
--- a/pkg-mgr-commands.tex |
44 |
+++ b/pkg-mgr-commands.tex |
45 |
@@ -77,9 +77,13 @@ argument. Ebuilds must not run any of these commands once the current phase func |
46 |
\end{description} |
47 |
|
48 |
\subsubsection{Package manager query commands} |
49 |
-These commands are used to extract information about the host system. Ebuilds must not run any of |
50 |
+These commands are used to extract information about the system. Ebuilds must not run any of |
51 |
these commands in parallel with any other package manager command. Ebuilds must not run any of |
52 |
these commands once the current phase function has returned. |
53 |
+ |
54 |
+\featurelabel{host-root-option} In EAPIs listed in table~\ref{tab:foo-version-host-root-table} as |
55 |
+supporting option \t{-{}-host-root}, this option will cause the query to apply to the host root |
56 |
+instead of \t{ROOT}. |
57 |
\begin{description} |
58 |
\item[has\_version] Takes exactly one package dependency specification as an argument. Returns |
59 |
true if a package matching the atom is installed in \t{ROOT}, and false otherwise. |
60 |
@@ -489,6 +493,24 @@ that can be passed to \t{dohtml} are as follows: |
61 |
\end{tabular} |
62 |
\end{centertable} |
63 |
|
64 |
+\ChangeWhenAddingAnEAPI{5} |
65 |
+\begin{centertable}{EAPIs supporting \t{-{}-host-root} for \t{*\_version} commands} |
66 |
+ \label{tab:foo-version-host-root-table} |
67 |
+ \begin{tabular}{ l l } |
68 |
+ \toprule |
69 |
+ \multicolumn{1}{c}{\textbf{EAPI}} & |
70 |
+ \multicolumn{1}{c}{\textbf{\t{*\_version} supports \t{-{}-host-root}?}} \\ |
71 |
+ \midrule |
72 |
+ \t{0} & No \\ |
73 |
+ \t{1} & No \\ |
74 |
+ \t{2} & No \\ |
75 |
+ \t{3} & No \\ |
76 |
+ \t{4} & No \\ |
77 |
+ \t{5} & Yes \\ |
78 |
+ \bottomrule |
79 |
+ \end{tabular} |
80 |
+\end{centertable} |
81 |
+ |
82 |
\subsubsection{Commands affecting install destinations} |
83 |
The following commands are used to set the various destination trees, all relative to \t{\$\{ED\}} in |
84 |
offset-prefix aware EAPIs and relative to \t{\$\{D\}} in offset-prefix agnostic EAPIs, used by the |