diff options
author | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2019-05-30 11:04:48 -0400 |
---|---|---|
committer | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2019-05-30 11:04:48 -0400 |
commit | 224c7e3ec350c4a27cd40acb3a4d346762025da1 (patch) | |
tree | 6080767f22935e13e2b525c8f6de912fa9e4c035 | |
parent | New default PORTDIR, PKGDIR, and DISTDIR settings approved by council (diff) | |
download | catalyst-224c7e3ec350c4a27cd40acb3a4d346762025da1.tar.gz catalyst-224c7e3ec350c4a27cd40acb3a4d346762025da1.tar.bz2 catalyst-224c7e3ec350c4a27cd40acb3a4d346762025da1.zip |
respect ROOT
fix setup_gcc and setup_binutils to respect ROOT
-rwxr-xr-x | targets/stage1/stage1-preclean-chroot.sh | 2 | ||||
-rwxr-xr-x | targets/support/chroot-functions.sh | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh index 1b623f18..ea9056e8 100755 --- a/targets/stage1/stage1-preclean-chroot.sh +++ b/targets/stage1/stage1-preclean-chroot.sh @@ -8,8 +8,6 @@ source /tmp/chroot-functions.sh update_env_settings show_debug -# Right now these will parse the unpacked stage3 but change things -# inside of /tmp/stage1root due to ROOT env variable setup_gcc setup_binutils diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 506d43f2..05f311cf 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -159,7 +159,7 @@ setup_myemergeopts(){ setup_binutils(){ if [ -x /usr/bin/binutils-config ] then - my_binutils=$( cd /etc/env.d/binutils; ls ${clst_CHOST}-* | head -n 1 ) + my_binutils=$( cd ${ROOT}/etc/env.d/binutils; ls ${clst_CHOST}-* | head -n 1 ) if [ -z "${my_binutils}" ] then my_binutils=1 @@ -171,7 +171,7 @@ setup_binutils(){ setup_gcc(){ if [ -x /usr/bin/gcc-config ] then - my_gcc=$( cd /etc/env.d/gcc; ls ${clst_CHOST}-* | head -n 1 ) + my_gcc=$( cd ${ROOT}/etc/env.d/gcc; ls ${clst_CHOST}-* | head -n 1 ) if [ -z "${my_gcc}" ] then my_gcc=1 |