fix(profiles): Add sysroot-wrappers to PATH

We need to add sysroot-wrappers to PATH in portage itself because
commands like "sudo emerge ..." reset PATH to a fairly bland default.
emerge has similar logic for ccache and distcc internally.
This commit is contained in:
Michael Marineau 2013-07-17 15:23:02 -04:00
parent 045f1a47ed
commit df066d6ee0

View File

@ -112,3 +112,9 @@ cros_pre_src_unpack_python_multilib_setup() {
cros_pre_pkg_setup_sysroot_build_bin_dir() { cros_pre_pkg_setup_sysroot_build_bin_dir() {
PATH+=":${CROS_BUILD_BOARD_BIN}" PATH+=":${CROS_BUILD_BOARD_BIN}"
} }
# Insert our sysroot wrappers into the path
SYSROOT_WRAPPERS_BIN="/usr/lib/sysroot-wrappers/bin"
if [[ "$PATH" != *"$SYSROOT_WRAPPERS_BIN"* ]]; then
export PATH="$SYSROOT_WRAPPERS_BIN:$PATH"
fi