summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richert <alexander.richert@noaa.gov>2024-07-10 12:18:23 -0700
committerGitHub <noreply@github.com>2024-07-10 12:18:23 -0700
commitc82889058c349744dfae37f5aa222da70b02c6ab (patch)
tree20d2f97fe71d338593bb66bd1a3698c0b691305b
parent2f4c20567cdb26522836db922f39d8730e79f571 (diff)
downloadspack-c82889058c349744dfae37f5aa222da70b02c6ab.tar.gz
spack-c82889058c349744dfae37f5aa222da70b02c6ab.tar.bz2
spack-c82889058c349744dfae37f5aa222da70b02c6ab.tar.xz
spack-c82889058c349744dfae37f5aa222da70b02c6ab.zip
bacio: recipe updates (#45150)
-rw-r--r--var/spack/repos/builtin/packages/bacio/package.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/bacio/package.py b/var/spack/repos/builtin/packages/bacio/package.py
index fba81bb118..c094f9885e 100644
--- a/var/spack/repos/builtin/packages/bacio/package.py
+++ b/var/spack/repos/builtin/packages/bacio/package.py
@@ -20,16 +20,7 @@ class Bacio(CMakePackage):
version("develop", branch="develop")
version("2.6.0", sha256="03fef581e1bd3710fb8d2f2659a6c3e01a0437c1350ba53958d2ff1ffef47bcb")
version("2.5.0", sha256="540a0ed73941d70dbf5d7b21d5d0a441e76fad2bfe37dfdfea0db3e98fc0fbfb")
-
- # Prefer version 2.4.1 because the library and include directory
- # names changed in verion 2.5.0 (dropping the "_4" they used to
- # contain.) We need some time to let all the using packages adjust
- # to the new names.
- version(
- "2.4.1",
- sha256="7b9b6ba0a288f438bfba6a08b6e47f8133f7dba472a74ac56a5454e2260a7200",
- preferred=True,
- )
+ version("2.4.1", sha256="7b9b6ba0a288f438bfba6a08b6e47f8133f7dba472a74ac56a5454e2260a7200")
variant("pic", default=True, description="Build with position-independent-code")
variant("shared", default=False, description="Build shared library", when="@2.6.0:")
@@ -43,3 +34,7 @@ class Bacio(CMakePackage):
def patch(self):
if self.spec.satisfies("@2.4.1"):
filter_file(".+", "2.4.1", "VERSION")
+
+ def check(self):
+ with working_dir(self.builder.build_directory):
+ make("test")