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 += (