Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions repos/spack_repo/builtin/build_systems/oneapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ def install_component(self, installer_path):
bash.add_default_env("HOME", join_path(self.stage.path, "home"))
# Installer checks $XDG_RUNTIME_DIR/.bootstrapper_lock_file as well
bash.add_default_env("XDG_RUNTIME_DIR", join_path(self.stage.path, "runtime"))
# Installer uses /tmp/<user> as a temporary directory and deletes
# files/directories below it. When doing parallel builds, it sometimes
# deletes files/directories belonging to other package builds, breaking
# them in the process. TMPDIR has to exist if set explicitly.
installer_tmp = join_path(self.stage.path, "tmp")
mkdirp(installer_tmp)
bash.add_default_env("TMPDIR", installer_tmp)

bash(
installer_path,
Expand Down
Loading