clear out environment vars like PKG_CONFIG_PATH

These can break builds attempted within the chroot.
This commit is contained in:
Sean Whitton 2015-09-13 11:26:45 -07:00
parent cfa512755f
commit 82ebf9e3bf

View file

@ -22,6 +22,17 @@ JUNEST_BASE="$(dirname $0)/.."
source "${JUNEST_BASE}/lib/core.sh"
###################################
### Prep environment ###
###################################
# clear out environment variables that may affect builds done within
# the Arch chroot; for example AUR builds with yaourt
unset PKG_CONFIG_PATH LD_LIBRARY_PATH C_INCLUDE_PATH \
MODULEBUILDRC MODULEPATH MODULESHOME \
PERL_MM_OPT PERL5LIB
###################################
### General functions ###
###################################