From 2a55a9ef80c72730a7561da1263bbcd0b17f5d05 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Fri, 20 Jan 2023 09:54:19 +0100 Subject: file: zstd support (#35041) --- var/spack/repos/builtin/packages/file/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/file/package.py b/var/spack/repos/builtin/packages/file/package.py index 9446d472cd..883af18ebd 100644 --- a/var/spack/repos/builtin/packages/file/package.py +++ b/var/spack/repos/builtin/packages/file/package.py @@ -31,8 +31,9 @@ class File(AutotoolsPackage): variant("static", default=True, description="Also build static libraries") depends_on("bzip2") - depends_on("xz") + depends_on("xz", when="@5.38:") depends_on("zlib") + depends_on("zstd", when="@5.44:") @classmethod def determine_version(cls, exe): @@ -47,6 +48,8 @@ class File(AutotoolsPackage): "--enable-zlib", "--enable-bzlib", "--enable-xzlib", + "--enable-zstdlib", + "--disable-lzlib", ] args += self.enable_or_disable("static") return args -- cgit v1.2.3-70-g09d2