aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-04-29 14:03:13 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-05-03 12:04:26 +0000
commitdfae67d10c3f2b6dbde7d6e3280455cd87f9f15c (patch)
tree7af292eca062d26091d7678c61e752c0fc49e12b
parentcb6d9d1a623b5dc4ed815d69211d264819be036e (diff)
downloadports-dfae67d10c3f2b6dbde7d6e3280455cd87f9f15c.tar.gz
ports-dfae67d10c3f2b6dbde7d6e3280455cd87f9f15c.zip
bsd.port.mk: Use zstandard as default compression for FreeBSD 14+
The packages are switched from XZ to ZSTD compression, the compression level is set at the maximum possible because it creates packages which are closed in size between XZ and ZSTD, the compression time is close as well, but decompression time is way bigger. Exp-run: antoine Differential revision: https://reviews.freebsd.org/D35095
-rw-r--r--Mk/bsd.port.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index be720a035d87..c2760881ac04 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2214,11 +2214,11 @@ PKG_SUFX= .pkg
. if defined(PKG_NOCOMPRESS)
PKG_COMPRESSION_FORMAT?= tar
. else
-#.if ${OSVERSION} > 1400000
-#PKG_COMPRESSION_FORMAT?= tzst
-#.else
+.if ${OSVERSION} > 1400000
+PKG_COMPRESSION_FORMAT?= tzst
+.else
PKG_COMPRESSION_FORMAT?= txz
-#.endif
+.endif
. endif
# where pkg(8) stores its data