summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBryan Herman <63422190+bryanherman@users.noreply.github.com>2023-08-15 03:54:27 -0400
committerGitHub <noreply@github.com>2023-08-15 09:54:27 +0200
commit41bd6a75d58eb3200c05266e26d69c2145b993df (patch)
tree34c5354f5b1ea4b3b5f6c8d1e4a5c14148c2a0c1 /var
parent0976ad3184584c818433663a859978e2fe5f30f7 (diff)
downloadspack-41bd6a75d58eb3200c05266e26d69c2145b993df.tar.gz
spack-41bd6a75d58eb3200c05266e26d69c2145b993df.tar.bz2
spack-41bd6a75d58eb3200c05266e26d69c2145b993df.tar.xz
spack-41bd6a75d58eb3200c05266e26d69c2145b993df.zip
squashfs: Add static variant (#39433)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/squashfs/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/squashfs/package.py b/var/spack/repos/builtin/packages/squashfs/package.py
index 6a147b94a8..d71da4bc5e 100644
--- a/var/spack/repos/builtin/packages/squashfs/package.py
+++ b/var/spack/repos/builtin/packages/squashfs/package.py
@@ -13,6 +13,7 @@ class Squashfs(MakefilePackage):
url = "https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.3/squashfs4.3.tar.gz"
# version sha1
+ version("4.6.1", sha256="94201754b36121a9f022a190c75f718441df15402df32c2b520ca331a107511c")
version(
"4.5.1",
sha256="277b6e7f75a4a57f72191295ae62766a10d627a4f5e5f19eadfbc861378deea7",
@@ -61,6 +62,7 @@ class Squashfs(MakefilePackage):
multi=False,
description="Default compression algorithm",
)
+ variant("static", default=False, description="Build fully static mksquashfs executable")
conflicts(
"squashfs~gzip default_compression=gzip",
@@ -85,9 +87,13 @@ class Squashfs(MakefilePackage):
depends_on("zlib-api", when="+gzip")
depends_on("lz4", when="+lz4")
+ depends_on("lz4 libs=static", when="+lz4 +static")
depends_on("lzo", when="+lzo")
+ depends_on("lzo libs=static", when="+lzo +static")
depends_on("xz", when="+xz")
+ depends_on("xz libs=static", when="+xz +static")
depends_on("zstd", when="+zstd")
+ depends_on("zstd libs=static", when="+zstd +static")
# patch from
# https://github.com/plougher/squashfs-tools/commit/fe2f5da4b0f8994169c53e84b7cb8a0feefc97b5.patch
@@ -103,6 +109,7 @@ class Squashfs(MakefilePackage):
"XZ_SUPPORT={0}".format(1 if "+xz" in spec else 0),
"ZSTD_SUPPORT={0}".format(1 if "+zstd" in spec else 0),
"COMP_DEFAULT={0}".format(default),
+ "EXTRA_LDFLAGS={0}".format("-static" if "+static" in spec else ""),
]
def build(self, spec, prefix):