From 1c350854f8cf058acb8f5e504d110323e73763b3 Mon Sep 17 00:00:00 2001 From: Dylan Simon Date: Mon, 26 Jul 2021 13:39:35 -0400 Subject: intel-oneapi: fix parallel installer errors (#24911) Intel oneAPI installs maintain a lock file in XDG_RUNTIME_DIR, which by default exists in /tmp (and is shared by all component installs). This prevented multiple oneAPI components from being installed in parallel. This commit sets XDG_RUNTIME_DIR to exist within Spack's installation Stage, so allows multiple components to be installed at the same time. --- lib/spack/spack/build_systems/oneapi.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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', -- cgit v1.2.3-60-g2f50