diff options
author | Alex Hedges <aphedges@users.noreply.github.com> | 2024-10-30 04:38:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 09:38:36 +0100 |
commit | 8a10eff757307bc10d0b577c0f92bdc9172c0df8 (patch) | |
tree | 839a23d060a4f65894652d5b51061acd2d11932b /var | |
parent | 44d09f2b2bc08b92ac7129b803f90cc1be328585 (diff) | |
download | spack-8a10eff757307bc10d0b577c0f92bdc9172c0df8.tar.gz spack-8a10eff757307bc10d0b577c0f92bdc9172c0df8.tar.bz2 spack-8a10eff757307bc10d0b577c0f92bdc9172c0df8.tar.xz spack-8a10eff757307bc10d0b577c0f92bdc9172c0df8.zip |
Fix errors found by running `spack audit externals` (#47308)
The problem was that `+` is part of the regex grammar, so it needs to be
escaped.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gcc/detection_test.yaml | 2 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/nvhpc/detection_test.yaml | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/detection_test.yaml b/var/spack/repos/builtin/packages/gcc/detection_test.yaml index c0195bb8ca..67b5bc1e12 100644 --- a/var/spack/repos/builtin/packages/gcc/detection_test.yaml +++ b/var/spack/repos/builtin/packages/gcc/detection_test.yaml @@ -26,7 +26,7 @@ paths: extra_attributes: compilers: c: ".*/bin/gcc" - cxx: ".*/bin/g++" + cxx: ".*/bin/g\\+\\+" # Mock a version < 7 of GCC that requires -dumpversion and # errors with -dumpfullversion diff --git a/var/spack/repos/builtin/packages/nvhpc/detection_test.yaml b/var/spack/repos/builtin/packages/nvhpc/detection_test.yaml index bdf1c6b596..fc8ccfafc8 100644 --- a/var/spack/repos/builtin/packages/nvhpc/detection_test.yaml +++ b/var/spack/repos/builtin/packages/nvhpc/detection_test.yaml @@ -24,7 +24,7 @@ paths: extra_attributes: compilers: c: ".*/bin/nvc" - cxx: ".*/bin/nvc++" + cxx: ".*/bin/nvc\\+\\+" fortran: ".*/bin/nvfortran" - layout: - executables: @@ -51,7 +51,7 @@ paths: extra_attributes: compilers: c: ".*/bin/nvc" - cxx: ".*/bin/nvc++" + cxx: ".*/bin/nvc\\+\\+" fortran: ".*/bin/nvfortran" - layout: - executables: @@ -78,5 +78,5 @@ paths: extra_attributes: compilers: c: ".*/bin/nvc" - cxx: ".*/bin/nvc++" + cxx: ".*/bin/nvc\\+\\+" fortran: ".*/bin/nvfortran" |