diff --git a/bin/junest b/bin/junest index 4084fe0..426f560 100755 --- a/bin/junest +++ b/bin/junest @@ -21,6 +21,17 @@ source "${JUNEST_BASE}/lib/core/proot.sh" source "${JUNEST_BASE}/lib/core/wrappers.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 ### ###################################