From 979c355c99da2f8738892b57e0459cb6a9c9453c Mon Sep 17 00:00:00 2001 From: bernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com> Date: Wed, 22 Sep 2021 00:23:10 +0200 Subject: spack/build_environment.py: Clean MAKEFLAGS, DISPLAY and TERM (#26092) clean_environment(): Unset three more environment variables: MAKEFLAGS: Affects make, can eg indirectly inhibit enabling parallel build DISPLAY: Tests of GUI widget libraries might try to connect to an X server TERM: Could make testsuites attempt to color their output --- lib/spack/spack/build_environment.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index 97903075e1..82baaee256 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -171,6 +171,13 @@ def clean_environment(): env.unset('CMAKE_PREFIX_PATH') + # Affects GNU make, can e.g. indirectly inhibit enabling parallel build + env.unset('MAKEFLAGS') + # Could make testsuites attempt to color their output + env.unset('TERM') + # Tests of GUI widget libraries might try to connect to an X server + env.unset('DISPLAY') + # Avoid that libraries of build dependencies get hijacked. env.unset('LD_PRELOAD') env.unset('DYLD_INSERT_LIBRARIES') -- cgit v1.2.3-70-g09d2