From ae000f963c797db007ac3f8401e6c4dbc1edff00 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 6 Feb 2024 13:37:40 +0100 Subject: hpx: remove self-referential dependencies (#42485) This shouldn't be an issue, but avoid self references on "^asio". --- var/spack/repos/builtin/packages/hpx/package.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py index c0ec68df22..5e8e3b4536 100644 --- a/var/spack/repos/builtin/packages/hpx/package.py +++ b/var/spack/repos/builtin/packages/hpx/package.py @@ -105,11 +105,10 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage): depends_on("boost +context", when="+generic_coroutines") for cxxstd in cxxstds: depends_on("boost cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0}".format(cxxstd)) - depends_on("asio", when="@1.7:") - for cxxstd in cxxstds: - depends_on( - "asio cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0} ^asio".format(cxxstd) - ) + + with when("@1.7:"): + for cxxstd in cxxstds: + depends_on(f"asio cxxstd={map_cxxstd(cxxstd)}", when=f"cxxstd={cxxstd}") depends_on("gperftools", when="malloc=tcmalloc") depends_on("jemalloc", when="malloc=jemalloc") -- cgit v1.2.3-70-g09d2