From 52ee1967d65c8a69902867fd7eb43af8132c20b9 Mon Sep 17 00:00:00 2001 From: Jordan Galby <67924449+Jordan474@users.noreply.github.com> Date: Mon, 22 May 2023 17:28:57 +0200 Subject: llvm: Fix hwloc@1 and hwloc@:2.3 compatibility (#35387) --- var/spack/repos/builtin/packages/llvm/package.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index 83fc89fda2..1b17cbe7d0 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -236,7 +236,7 @@ class Llvm(CMakePackage, CudaPackage): # openmp dependencies depends_on("perl-data-dumper", type=("build")) depends_on("hwloc") - depends_on("hwloc@2.0.1:", when="@9:") + depends_on("hwloc@2.0.1:", when="@13") depends_on("elf", when="+cuda") # libomptarget depends_on("libffi", when="+libomptarget") # libomptarget @@ -375,6 +375,13 @@ class Llvm(CMakePackage, CudaPackage): # when/if the bugfix is merged patch("D133513.diff", level=0, when="@14:15+lldb+python") + # Fix hwloc@:2.3 (Conditionally disable hwloc@2.0 and hwloc@2.4 code) + patch( + "https://github.com/llvm/llvm-project/commit/3a362a9f38b95978160377ee408dbc7d14af9aad.patch?full_index=1", + sha256="25bc503f7855229620e56e76161cf4654945aef0be493a2d8d9e94a088157b7c", + when="@14:15", + ) + # The functions and attributes below implement external package # detection for LLVM. See: # -- cgit v1.2.3-60-g2f50