1 |
--- |
2 |
man/ebuild.5 | 41 +++++++++++++++++++++++++++++++++++++++++ |
3 |
1 file changed, 41 insertions(+) |
4 |
|
5 |
diff --git a/man/ebuild.5 b/man/ebuild.5 |
6 |
index 5bb1afa..9fec816 100644 |
7 |
--- a/man/ebuild.5 |
8 |
+++ b/man/ebuild.5 |
9 |
@@ -316,6 +316,32 @@ the user does not specify any of the previous choices. |
10 |
Note that if any of the packages listed are already merged, the package manager |
11 |
will use that to consider the dependency satisfied. |
12 |
|
13 |
+.SS "Cross-compilation" |
14 |
+Portage supports cross-compilation into a subdirectory specified by \fBROOT\fR. |
15 |
+.TP |
16 |
+.B Host |
17 |
+\fIHost\fR in this context means the platform hosting the build process, i.e. |
18 |
+what autotools calls CBUILD. Its packages are contained in the root of the |
19 |
+filesystem ("\fI/\fR"). If \fBROOT\fR is "\fI/\fR", all dependency types will |
20 |
+be installed there. Otherwise (starting from \fBEAPI 6\fR) only \fBHDEPEND\fR |
21 |
+is installed into "\fI/\fR". In \fBEAPI 5\fR and earlier, the behaviour is |
22 |
+controlled by the \fI\-\-root-deps\fR flag to \fBemerge\fR(1), defaulting to |
23 |
+install only \fBDEPEND\fR into the \fIhost\fR. |
24 |
+.TP |
25 |
+.B Target |
26 |
+\fITarget\fR refers to the platform that the package will later run on, i.e. |
27 |
+what autotools calls CHOST. The directory housing this system is specified by |
28 |
+\fBROOT\fR. If it is different from "\fI/\fR", i.e. \fIhost\fR and |
29 |
+\fItarget\fR are not the same, this variable contains the path to the directory |
30 |
+housing the \fItarget\fR system. Starting from \fBEAPI 6\fR, \fBDEPEND\fR and |
31 |
+\fBRDEPEND\fR list the \fItarget\fR dependencies, i.e. those to be installed |
32 |
+into \fBROOT\fR. In \fBEAPI 5\fR and earlier, the \fBemerge\fR(1) flag |
33 |
+\fI\-\-root-deps\fR controlled what the package manager installed there, |
34 |
+defaulting to only \fBRDEPEND\fR. |
35 |
+.PP |
36 |
+See section \fBVARIABLES\fR for more information about the \fBDEPEND\fR, |
37 |
+\fBRDEPEND\fR and \fBHDEPEND\fR variables. |
38 |
+ |
39 |
.SH "VARIABLES" |
40 |
.TP |
41 |
.B Usage Notes |
42 |
@@ -547,6 +573,11 @@ This should contain a list of all packages that are required for the program |
43 |
to compile (aka \fIbuildtime\fR dependencies). These are usually libraries and |
44 |
headers. |
45 |
|
46 |
+Starting from \fBEAPI 6\fR, tools should go into the \fBHDEPEND\fR variable |
47 |
+instead, as \fBDEPEND\fR will only be installed into the \fItarget\fR system |
48 |
+and hence cannot be executed in a cross\-compile setting. (See section |
49 |
+\fBCross\-compilation\fR for more information.) |
50 |
+ |
51 |
You may use the syntax described above in the \fBDependencies\fR section. |
52 |
.TP |
53 |
.B RDEPEND |
54 |
@@ -559,6 +590,16 @@ implicitly set. |
55 |
|
56 |
You may use the syntax described above in the \fBDependencies\fR section. |
57 |
.TP |
58 |
+.B HDEPEND |
59 |
+This should contain a list of all packages that are required to be executable |
60 |
+during compilation of this program (aka \fIhost\fR buildtime dependencies). |
61 |
+These are usually tools, like interpreters or (cross\-)compilers. |
62 |
+ |
63 |
+This variable is new in \fBEAPI 6\fR and will be installed into the \fIhost\fR |
64 |
+system. (See section \fBCross-compilation\fR for more information.) |
65 |
+ |
66 |
+You may use the syntax described above in the \fBDependencies\fR section. |
67 |
+.TP |
68 |
.B PDEPEND |
69 |
This should contain a list of all packages that should be merged after this |
70 |
one (aka \fIpost\fR merge dependencies), but which may be installed by the |
71 |
-- |
72 |
1.7.12 |