From 18b880e6387f32cad714b6a11a141f55d8f101b0 Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Wed, 17 Jul 2024 07:16:45 -0500 Subject: [PATCH] Fixed extrae's dependency on boost --- repos/hlrs/packages/extrae/package.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/repos/hlrs/packages/extrae/package.py b/repos/hlrs/packages/extrae/package.py index d73f547..c37dec9 100644 --- a/repos/hlrs/packages/extrae/package.py +++ b/repos/hlrs/packages/extrae/package.py @@ -59,10 +59,7 @@ class Extrae(AutotoolsPackage): depends_on("mpi") depends_on("libunwind") - # TODO: replace this with an explicit list of components of Boost, - # for instance depends_on('boost +filesystem') - # See https://github.com/spack/spack/pull/22303 for reference - depends_on(Boost.with_default_variants) + depends_on("libdwarf") depends_on("papi") depends_on("elf", type="link") @@ -78,6 +75,10 @@ class Extrae(AutotoolsPackage): variant("dyninst", default=False, description="Use dyninst for dynamic code installation") depends_on("dyninst@:9", when="+dyninst") + # TODO: replace this with an explicit list of components of Boost, + # for instance depends_on('boost +filesystem') + # See https://github.com/spack/spack/pull/22303 for reference + depends_on(Boost.with_default_variants, when="+dyninst") variant("papi", default=True, description="Use PAPI to collect performance counters") depends_on("papi", when="+papi") @@ -99,7 +100,6 @@ class Extrae(AutotoolsPackage): args = [ "--with-mpi=%s" % mpiroot, "--with-unwind=%s" % spec["libunwind"].prefix, - "--with-boost=%s" % spec["boost"].prefix, "--with-dwarf=%s" % spec["libdwarf"].prefix, "--with-elf=%s" % spec["elf"].prefix, "--with-xml-prefix=%s" % spec["libxml2"].prefix, @@ -113,9 +113,10 @@ class Extrae(AutotoolsPackage): ) args += ( - ["--with-dyninst=%s" % spec["dyninst"].prefix] + ["--with-dyninst=%s" % spec["dyninst"].prefix, + "--with-boost=%s" % spec["boost"].prefix] if "+dyninst" in self.spec - else ["--without-dyninst"] + else ["--without-dyninst", "--without-boost"] ) args += (