1 |
commit: 5fd2d5edd3c4c1e99687beb9acc130bab162866b |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 4 16:43:44 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 4 16:52:15 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=5fd2d5ed |
7 |
|
8 |
stage1-preclean-chroot.sh: export ROOT=/tmp/stage1root for setup_gcc() |
9 |
|
10 |
setup_gcc() calls gcc-config to select a particular gcc profile. At stage1 this |
11 |
needs to be done in the /tmp/stage1root chroot. gcc-config looks for ROOT to |
12 |
choose the root directory in which to make the selection. If we don't export |
13 |
ROOT, then setup_gcc is ineffective. |
14 |
|
15 |
X-Gentoo-Bug: 584234 |
16 |
X-Gentoo-Bug-Url: https://bugs.gentoo.org/show_bug.cgi?id=584234 |
17 |
|
18 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
19 |
|
20 |
targets/stage1/stage1-preclean-chroot.sh | 3 +-- |
21 |
1 file changed, 1 insertion(+), 2 deletions(-) |
22 |
|
23 |
diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh |
24 |
index a80fc92..dc67521 100755 |
25 |
--- a/targets/stage1/stage1-preclean-chroot.sh |
26 |
+++ b/targets/stage1/stage1-preclean-chroot.sh |
27 |
@@ -1,5 +1,6 @@ |
28 |
#!/bin/bash |
29 |
|
30 |
+export ROOT=/tmp/stage1root |
31 |
export RUN_DEFAULT_FUNCS="no" |
32 |
|
33 |
source /tmp/chroot-functions.sh |
34 |
@@ -8,8 +9,6 @@ update_env_settings |
35 |
show_debug |
36 |
|
37 |
# Now, some finishing touches to initialize gcc-config.... |
38 |
-unset ROOT |
39 |
- |
40 |
setup_gcc |
41 |
setup_binutils |