From 82ebf9e3bf807d6193698a8d289ec31b8df7495f Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 13 Sep 2015 11:26:45 -0700 Subject: [PATCH] clear out environment vars like PKG_CONFIG_PATH These can break builds attempted within the chroot. --- bin/junest | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/junest b/bin/junest index 18a3de8..c4706c2 100755 --- a/bin/junest +++ b/bin/junest @@ -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 ### ###################################