From 8c436c8ed15c9ad80e5c4eba8ba5847990a923a9 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 5 Feb 2024 10:10:58 +0100 Subject: [PATCH] asio: remove self-referential dependencies (#42469) These shouldn't be an issue, but they can be expressed in terms of variants on the package. --- var/spack/repos/builtin/packages/asio/package.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/asio/package.py b/var/spack/repos/builtin/packages/asio/package.py index c3b52d02ccf..99313016152 100644 --- a/var/spack/repos/builtin/packages/asio/package.py +++ b/var/spack/repos/builtin/packages/asio/package.py @@ -83,13 +83,11 @@ class Asio(AutotoolsPackage): variant("separate_compilation", default=False, description="Compile Asio sources separately") variant("boost_coroutine", default=False, description="Enable support for Boost.Coroutine.") - depends_on("boost +context +coroutine", when="+boost_coroutine") - variant("boost_regex", default=False, description="Enable support for Boost.Regex.") - depends_on("boost +regex", when="+boost_regex") for std in stds: - depends_on("boost cxxstd=" + std, when="cxxstd={0} ^boost".format(std)) + depends_on(f"boost +regex cxxstd={std}", when=f"cxxstd={std} +boost_regex") + depends_on(f"boost +context+coroutine cxxstd={std}", when=f"cxxstd={std} +boost_coroutine") def configure_args(self): variants = self.spec.variants