mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 01:16:59 +02:00
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:
parent
045f1a47ed
commit
df066d6ee0
@ -112,3 +112,9 @@ cros_pre_src_unpack_python_multilib_setup() {
|
||||
cros_pre_pkg_setup_sysroot_build_bin_dir() {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user