diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-06-04 12:43:44 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-06-04 12:52:15 -0400 |
commit | 5fd2d5edd3c4c1e99687beb9acc130bab162866b (patch) | |
tree | 24da12b7ea04ec301dcd3a36680e6f9bfc9a8e2b | |
parent | targets/support/chroot-functions.sh: remove machine-id for systemd stages (diff) | |
download | catalyst-5fd2d5edd3c4c1e99687beb9acc130bab162866b.tar.gz catalyst-5fd2d5edd3c4c1e99687beb9acc130bab162866b.tar.bz2 catalyst-5fd2d5edd3c4c1e99687beb9acc130bab162866b.zip |
stage1-preclean-chroot.sh: export ROOT=/tmp/stage1root for setup_gcc()
setup_gcc() calls gcc-config to select a particular gcc profile. At stage1 this
needs to be done in the /tmp/stage1root chroot. gcc-config looks for ROOT to
choose the root directory in which to make the selection. If we don't export
ROOT, then setup_gcc is ineffective.
X-Gentoo-Bug: 584234
X-Gentoo-Bug-Url: https://bugs.gentoo.org/show_bug.cgi?id=584234
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rwxr-xr-x | targets/stage1/stage1-preclean-chroot.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh index a80fc92e..dc67521c 100755 --- a/targets/stage1/stage1-preclean-chroot.sh +++ b/targets/stage1/stage1-preclean-chroot.sh @@ -1,5 +1,6 @@ #!/bin/bash +export ROOT=/tmp/stage1root export RUN_DEFAULT_FUNCS="no" source /tmp/chroot-functions.sh @@ -8,8 +9,6 @@ update_env_settings show_debug # Now, some finishing touches to initialize gcc-config.... -unset ROOT - setup_gcc setup_binutils |