summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_systems/oneapi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/oneapi.py b/lib/spack/spack/build_systems/oneapi.py
index c429092cb6..0ff77d729b 100644
--- a/lib/spack/spack/build_systems/oneapi.py
+++ b/lib/spack/spack/build_systems/oneapi.py
@@ -69,6 +69,9 @@ class IntelOneApiPackage(Package):
# Installer writes files in ~/intel set HOME so it goes to prefix
bash.add_default_env('HOME', prefix)
+ # Installer checks $XDG_RUNTIME_DIR/.bootstrapper_lock_file as well
+ bash.add_default_env('XDG_RUNTIME_DIR',
+ join_path(self.stage.path, 'runtime'))
bash(installer_path,
'-s', '-a', '-s', '--action', 'install',