mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 02:34:30 +00:00
clear out environment vars like PKG_CONFIG_PATH
These can break builds attempted within the chroot.
This commit is contained in:
parent
cfa512755f
commit
82ebf9e3bf
1 changed files with 11 additions and 0 deletions
11
bin/junest
11
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 ###
|
||||
###################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue