From 09167fe8aca8309b5f5fec18d21f1814ec024b2b Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Thu, 27 Jun 2024 12:19:17 +0200 Subject: ci: mgard build failure w/ system zlib (#44918) The pcluster pipeline runs spack external find and autodetects the most ancient of zlib versions on the system: 1.2.7, release date May 3, 2012. Turns out some packages require parts of the zlib api added within the last decade. --- var/spack/repos/builtin/packages/mgard/package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/var/spack/repos/builtin/packages/mgard/package.py b/var/spack/repos/builtin/packages/mgard/package.py index c3abc1a5cf..c11ab56c31 100644 --- a/var/spack/repos/builtin/packages/mgard/package.py +++ b/var/spack/repos/builtin/packages/mgard/package.py @@ -47,6 +47,7 @@ class Mgard(CMakePackage, CudaPackage): depends_on("python", type=("build",), when="@2022-11-18:") depends_on("sed", type=("build",), when="@2022-11-18:") depends_on("zlib-api") + depends_on("zlib@1.2.9:", when="^[virtuals=zlib-api] zlib") # crc32_z depends_on("pkgconfig", type=("build",), when="@2022-11-18:") depends_on("zstd") depends_on("protobuf@3.4:", when="@2022-11-18:") -- cgit v1.2.3-70-g09d2