1 |
commit: e20a78631323ed533041a23d0cb1f91e5f301713 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 19 09:17:19 2021 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 19 09:27:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e20a7863 |
7 |
|
8 |
dependencies: clarify cross-compiling and system shorthands |
9 |
|
10 |
Try and clarify that BDEPEND/DEPEND are split based on the install |
11 |
targets, not only when the literal $CBUILD & $CHOST values differ, |
12 |
and thus only when "cross-compiling" is used. |
13 |
|
14 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
15 |
|
16 |
general-concepts/dependencies/text.xml | 17 ++++++++++++----- |
17 |
1 file changed, 12 insertions(+), 5 deletions(-) |
18 |
|
19 |
diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml |
20 |
index 1340b1c..a3ea540 100644 |
21 |
--- a/general-concepts/dependencies/text.xml |
22 |
+++ b/general-concepts/dependencies/text.xml |
23 |
@@ -34,15 +34,15 @@ for how dependencies and revisions interact. |
24 |
|
25 |
<p> |
26 |
In order to avoid ambiguity, we use the following terms to indicate different |
27 |
-systems when cross-compiling: |
28 |
+systems when cross-compiling. They serve as a shorthand for an overall system |
29 |
+in addition to their literal value (e.g. $CHOST). |
30 |
</p> |
31 |
|
32 |
<dl> |
33 |
<dt>CBUILD</dt> |
34 |
<dd> |
35 |
The system on which the build is performed. Dependencies that apply |
36 |
- to the CBUILD system can be executed during build time. When |
37 |
- cross-compiling, they are not installed into the system being built. |
38 |
+ to the CBUILD system can be executed during build time. |
39 |
</dd> |
40 |
|
41 |
<dt>CHOST</dt> |
42 |
@@ -53,8 +53,15 @@ systems when cross-compiling: |
43 |
</dl> |
44 |
|
45 |
<p> |
46 |
-When not cross-compiling, CBUILD and CHOST have the same value and both classes |
47 |
-of dependencies are merged. |
48 |
+When cross-compiling, CBUILD and CHOST are naturally different, as are the |
49 |
+actual install paths for the different types of dependencies. |
50 |
+</p> |
51 |
+ |
52 |
+<p> |
53 |
+Note however that, while cross-compiling is used to help explain these concepts, |
54 |
+it is not strictly required. CBUILD and CHOST could target the exact same |
55 |
+hardware, but be installed into distinct SYSROOT/ROOT paths. The dependency |
56 |
+distinctions still apply even if it isn't, strictly speaking, cross-compiling. |
57 |
</p> |
58 |
|
59 |
</body> |