From 1bf92c7881b7d3b189ee6c77f87b49f16a2b5440 Mon Sep 17 00:00:00 2001 From: Bill Williams Date: Wed, 17 Apr 2024 18:32:47 +0200 Subject: [PATCH] [Score-P] Make local with-or-without not use "yes" (#43701) Score-P does not accept "--with-foo=yes", but only "--with-foo" or "--with-foo=some-valid-specific-choice-or-path". This keeps Spack from generating config flags that will cause Score-P to barf. --- var/spack/repos/builtin/packages/scorep/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/scorep/package.py b/var/spack/repos/builtin/packages/scorep/package.py index fd0f6f842d1..8753ecafd39 100644 --- a/var/spack/repos/builtin/packages/scorep/package.py +++ b/var/spack/repos/builtin/packages/scorep/package.py @@ -153,6 +153,9 @@ def find_libpath(self, libname, root): return None return libs.directories[0] + def with_or_without(self, arg): + return super.with_or_without(arg).remove_suffix("=yes") + def configure_args(self): spec = self.spec