]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-shar-extract.sh: Ensure it's ran in clean environment
authorGeorge Nita <george.nita@enea.com>
Wed, 25 Nov 2015 15:28:45 +0000 (16:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:30:53 +0000 (21:30 +0000)
commit6d2074d477596971dc52027dd87b02af7f39138d
tree4b548e2b15cc3bbc699b3068da0ec17877ffff7a
parent654f4785f719552f4e78e14a5a901c07d00ce68d
toolchain-shar-extract.sh: Ensure it's ran in clean environment

Fixes [YOCTO #8698] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=8698

If prior to running the toolchain installation script a toolchain
environment script is sourced then the toolchain installation will
fail. This because the environment is now set for the sourced toolchain
and doesn't suit the installation. In particular PATH points to the
toolchain executables.

The fix makes the script recursively call itself a second time with a
clean environment.

Tested by sourcing a previous successfully installed environment, erasing the
previous installation directory and then reinstalling in the same directory.

Signed-off-by: George Nita <george.nita@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/files/toolchain-shar-extract.sh