summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-02-02 18:34:34 +0100
committerGitHub <noreply@github.com>2024-02-02 18:34:34 +0100
commit9ffe1799346fce7615eb03483545a08d7023b2ce (patch)
treedee3039594e93bdb881c6db1e0f4f5758ed358cc /var
parent9c4e44a0ad2a65f12a8cc4ee88729208ab78844b (diff)
downloadspack-9ffe1799346fce7615eb03483545a08d7023b2ce.tar.gz
spack-9ffe1799346fce7615eb03483545a08d7023b2ce.tar.bz2
spack-9ffe1799346fce7615eb03483545a08d7023b2ce.tar.xz
spack-9ffe1799346fce7615eb03483545a08d7023b2ce.zip
acts: fix self-referential dependencies (#42455)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/acts/package.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/acts/package.py b/var/spack/repos/builtin/packages/acts/package.py
index 9e51a1806c..cc0f54363e 100644
--- a/var/spack/repos/builtin/packages/acts/package.py
+++ b/var/spack/repos/builtin/packages/acts/package.py
@@ -337,8 +337,11 @@ class Acts(CMakePackage, CudaPackage):
conflicts("+onnx", when="@23.3:", msg="py-onnxruntime@1.12: required but not yet available")
depends_on("py-pybind11 @2.6.2:", when="+python @18:")
depends_on("py-pytest", when="+python +unit_tests")
- depends_on("root @6.10:", when="+tgeo @:0.8.0")
- depends_on("root @6.20:", when="+tgeo @0.8.1:")
+
+ with when("+tgeo"):
+ depends_on("root @6.10:")
+ depends_on("root @6.20:", when="@0.8.1:")
+
depends_on("sycl", when="+sycl")
depends_on("vecmem@0.4: +sycl", when="+sycl")
@@ -347,12 +350,18 @@ class Acts(CMakePackage, CudaPackage):
if isinstance(_cxxstd, _ConditionalVariantValues):
for _v in _cxxstd:
depends_on(
- f"geant4 cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} ^geant4"
+ f"geant4 cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} +geant4"
+ )
+ depends_on(
+ f"geant4 cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} +fatras_geant4"
)
- depends_on(f"root cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} ^root")
+ depends_on(f"root cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} +tgeo")
else:
- depends_on(f"geant4 cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} ^geant4")
- depends_on(f"root cxxstd={_cxxstd}", when=f"cxxstd={_cxxstd} ^root")
+ depends_on(f"geant4 cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} +geant4")
+ depends_on(
+ f"geant4 cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} +fatras_geant4"
+ )
+ depends_on(f"root cxxstd={_cxxstd}", when=f"cxxstd={_cxxstd} +tgeo")
# ACTS has been using C++17 for a while, which precludes use of old GCC
conflicts("%gcc@:7", when="@0.23:")