zstd: updated to 1.5.1 v1.5.1 (Dec, 2021) perf: rebalanced compression levels, to better match the intended speed/level curve, by @senhuang42 perf: faster huffman decoder, using x64 assembly, by @terrelln perf: slightly faster high speed modes (strategies fast & dfast), by @felixhandte perf: improved binary size and faster compilation times, by @terrelln perf: new row64 mode, used notably in level 12, by @senhuang42 perf: faster mid-level compression speed in presence of highly repetitive patterns, by @senhuang42 perf: minor compression ratio improvements for small data at high levels, by @cyan4973 perf: reduced stack usage (mostly useful for Linux Kernel), by @terrelln perf: faster compression speed on incompressible data, by @bindhvo perf: on-demand reduced ZSTD_DCtx state size, using build macro ZSTD_DECODER_INTERNAL_BUFFER, at a small cost of performance, by @bindhvo build: allows hiding static symbols in the dynamic library, using build macro, by @skitt build: support for m68k (Motorola 68000's), by @cyan4973 build: improved AIX support, by @Helflym build: improved meson unofficial build, by @eli-schwartz cli : custom memory limit when training dictionary cli : report advanced parameters information when compressing in very verbose mode (``-vv`)diff -r1.43 -r1.44 pkgsrc/archivers/zstd/Makefile
(adam)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.43 2021/06/03 06:54:59 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.44 2022/01/19 06:02:25 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= zstd-1.5.0 | 3 | DISTNAME= zstd-1.5.1 | |
4 | CATEGORIES= archivers | 4 | CATEGORIES= archivers | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=facebook/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=facebook/} | |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://facebook.github.io/zstd/ | 9 | HOMEPAGE= https://facebook.github.io/zstd/ | |
10 | COMMENT= Fast real-time compression algorithm | 10 | COMMENT= Fast real-time compression algorithm | |
11 | LICENSE= modified-bsd OR gnu-gpl-v2 | 11 | LICENSE= modified-bsd OR gnu-gpl-v2 | |
12 | 12 | |||
13 | CHECK_PORTABILITY_SKIP+= tests/playTests.sh | 13 | CHECK_PORTABILITY_SKIP+= tests/playTests.sh | |
14 | 14 | |||
15 | # 1.4.8 | 15 | # 1.4.8 | |
16 | # ld: ../lib/libzstd.a: error adding symbols: no more archived files | 16 | # ld: ../lib/libzstd.a: error adding symbols: no more archived files |
@@ -1,10 +1,10 @@ | @@ -1,10 +1,10 @@ | |||
1 | $NetBSD: distinfo,v 1.31 2021/10/26 09:57:20 nia Exp $ | 1 | $NetBSD: distinfo,v 1.32 2022/01/19 06:02:25 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (zstd-1.5.0.tar.gz) = 1bc6226fc378a3748af6f146efa73ace559aa241610c50b6c6bc8317e77e9c87 | 3 | BLAKE2s (zstd-1.5.1.tar.gz) = 8604f0079f774e0af41635e9a734efcb5e41382ee21a2ac5a34c996594273223 | |
4 | SHA512 (zstd-1.5.0.tar.gz) = 25b657529a698eec891f92ff4a085d1fd95d2ff938ce52c8a4ff6163eb0b668ec642dd09e0db190652638cd92371006afa01d8e437437762c4097ad301675c33 | 4 | SHA512 (zstd-1.5.1.tar.gz) = ed8ea0143b7bbd85afdcc8f95d44589a0903cff8375059836ebe577cc4b3ea49c0c756db6a3649655e478377f48b3120ef87dc768fd449bd4bfac786209bfd31 | |
5 | Size (zstd-1.5.0.tar.gz) = 1867111 bytes | 5 | Size (zstd-1.5.1.tar.gz) = 1948539 bytes | |
6 | SHA1 (patch-Makefile) = b7e72910488e946971cde5ad2fac6a6134dbd70b | 6 | SHA1 (patch-Makefile) = 35159f44eb1d212395a53a27de60d3d1a5d3d014 | |
7 | SHA1 (patch-lib_Makefile) = 2475241f1f75d353bf6deeccb4f391cd6626aed2 | 7 | SHA1 (patch-lib_Makefile) = b04f9d1dcc7b336872566785e7b0db69929eb262 | |
8 | SHA1 (patch-tests_Makefile) = b83de10222859d656468463071dbce70adcc22b1 | 8 | SHA1 (patch-tests_Makefile) = b83de10222859d656468463071dbce70adcc22b1 | |
9 | SHA1 (patch-tests_playTests.sh) = 349f8e400f46b5914add4aee955a040045f62779 | 9 | SHA1 (patch-tests_playTests.sh) = 349f8e400f46b5914add4aee955a040045f62779 | |
10 | SHA1 (patch-zlibWrapper_examples_minigzip.c) = 4ed0cb648bdd6efa61b3f66ba6eb1ea74b7767ec | 10 | SHA1 (patch-zlibWrapper_examples_minigzip.c) = 4ed0cb648bdd6efa61b3f66ba6eb1ea74b7767ec |
@@ -1,22 +1,22 @@ | @@ -1,22 +1,22 @@ | |||
1 | $NetBSD: patch-Makefile,v 1.10 2021/05/20 12:23:24 wiz Exp $ | 1 | $NetBSD: patch-Makefile,v 1.11 2022/01/19 06:02:25 adam Exp $ | |
2 | 2 | |||
3 | Enable the "install" target on all OS. | 3 | Enable the "install" target on all OS. | |
4 | 4 | |||
5 | --- Makefile.orig 2021-05-14 14:59:34.000000000 +0000 | 5 | --- Makefile.orig 2021-12-20 22:49:18.000000000 +0000 | |
6 | +++ Makefile | 6 | +++ Makefile | |
7 | @@ -148,7 +148,6 @@ clean: | 7 | @@ -149,7 +149,6 @@ clean: | |
8 | #------------------------------------------------------------------------------ | 8 | #------------------------------------------------------------------------------ | |
9 | # make install is validated only for Linux, macOS, Hurd and some BSD targets | 9 | # make install is validated only for Linux, macOS, Hurd and some BSD targets | |
10 | #------------------------------------------------------------------------------ | 10 | #------------------------------------------------------------------------------ | |
11 | -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD MSYS_NT Haiku)) | 11 | -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD MSYS_NT Haiku AIX)) | |
12 | 12 | |||
13 | HOST_OS = POSIX | 13 | HOST_OS = POSIX | |
14 | 14 | |||
15 | @@ -354,7 +353,6 @@ clang38install: | 15 | @@ -373,7 +372,6 @@ clang38install: | |
16 | lz4install: | 16 | lz4install: | |
17 | [ -e lz4 ] || git clone https://github.com/lz4/lz4 && sudo $(MAKE) -C lz4 install | 17 | [ -e lz4 ] || git clone https://github.com/lz4/lz4 && sudo $(MAKE) -C lz4 install | |
18 | 18 | |||
19 | -endif | 19 | -endif | |
20 | 20 | |||
21 | 21 | |||
22 | CMAKE_PARAMS = -DZSTD_BUILD_CONTRIB:BOOL=ON -DZSTD_BUILD_STATIC:BOOL=ON -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_ZLIB_SUPPORT:BOOL=ON -DZSTD_LZMA_SUPPORT:BOOL=ON -DCMAKE_BUILD_TYPE=Release | 22 | CMAKE_PARAMS = -DZSTD_BUILD_CONTRIB:BOOL=ON -DZSTD_BUILD_STATIC:BOOL=ON -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_ZLIB_SUPPORT:BOOL=ON -DZSTD_LZMA_SUPPORT:BOOL=ON -DCMAKE_BUILD_TYPE=Release |
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | $NetBSD: patch-lib_Makefile,v 1.13 2021/05/20 12:23:24 wiz Exp $ | 1 | $NetBSD: patch-lib_Makefile,v 1.14 2022/01/19 06:02:25 adam Exp $ | |
2 | 2 | |||
3 | Detect and use third-party libraries (taken from programs/Makefile). | 3 | Detect and use third-party libraries (taken from programs/Makefile). | |
4 | -fvisibility=hidden makes error when linking. | 4 | -fvisibility=hidden makes error when linking. | |
5 | Enable the "install" target on all OS. | 5 | Enable the "install" target on all OS. | |
6 | Fix pkgconfig installation path. | 6 | Fix pkgconfig installation path. | |
7 | 7 | |||
8 | --- lib/Makefile.orig 2021-05-14 14:59:34.000000000 +0000 | 8 | --- lib/Makefile.orig 2021-12-20 22:49:18.000000000 +0000 | |
9 | +++ lib/Makefile | 9 | +++ lib/Makefile | |
10 | @@ -204,6 +204,43 @@ endif | 10 | @@ -67,6 +67,43 @@ decompress/zstd_decompress_block.o : CFL | |
11 | endif # BUILD_DIR | 11 | endif | |
12 | 12 | |||
13 | 13 | |||
14 | +VOID = /dev/null | 14 | +VOID = /dev/null | |
15 | + | 15 | + | |
16 | +# Make 4.3 doesn't support '\#' anymore (https://lwn.net/Articles/810071/) | 16 | +# Make 4.3 doesn't support '\#' anymore (https://lwn.net/Articles/810071/) | |
17 | +NUM_SYMBOL := \# | 17 | +NUM_SYMBOL := \# | |
18 | + | 18 | + | |
19 | +# thread detection | 19 | +# thread detection | |
20 | +HAVE_PTHREAD := $(shell printf '$(NUM_SYMBOL)include <pthread.h>\nint main(void) { return 0; }' | $(CC) $(FLAGS) -o have_pthread$(EXT) -x c - -pthread 2> $(VOID) && rm have_pthread$(EXT) && echo 1 || echo 0) | 20 | +HAVE_PTHREAD := $(shell printf '$(NUM_SYMBOL)include <pthread.h>\nint main(void) { return 0; }' | $(CC) $(FLAGS) -o have_pthread$(EXT) -x c - -pthread 2> $(VOID) && rm have_pthread$(EXT) && echo 1 || echo 0) | |
21 | +HAVE_THREAD := $(shell [ "$(HAVE_PTHREAD)" -eq "1" -o -n "$(filter Windows%,$(OS))" ] && echo 1 || echo 0) | 21 | +HAVE_THREAD := $(shell [ "$(HAVE_PTHREAD)" -eq "1" -o -n "$(filter Windows%,$(OS))" ] && echo 1 || echo 0) | |
22 | +ifeq ($(HAVE_THREAD), 1) | 22 | +ifeq ($(HAVE_THREAD), 1) | |
23 | +THREAD_MSG := ==> building with threading support | 23 | +THREAD_MSG := ==> building with threading support | |
24 | +THREAD_CPP := -DZSTD_MULTITHREAD | 24 | +THREAD_CPP := -DZSTD_MULTITHREAD | |
@@ -41,38 +41,38 @@ Fix pkgconfig installation path. | @@ -41,38 +41,38 @@ Fix pkgconfig installation path. | |||
41 | +endif | 41 | +endif | |
42 | + | 42 | + | |
43 | +# lz4 detection | 43 | +# lz4 detection | |
44 | +HAVE_LZ4 := $(shell printf '$(NUM_SYMBOL)include <lz4frame.h>\n$(NUM_SYMBOL)include <lz4.h>\nint main(void) { return 0; }' | $(CC) $(FLAGS) -o have_lz4$(EXT) -x c - -llz4 2> $(VOID) && rm have_lz4$(EXT) && echo 1 || echo 0) | 44 | +HAVE_LZ4 := $(shell printf '$(NUM_SYMBOL)include <lz4frame.h>\n$(NUM_SYMBOL)include <lz4.h>\nint main(void) { return 0; }' | $(CC) $(FLAGS) -o have_lz4$(EXT) -x c - -llz4 2> $(VOID) && rm have_lz4$(EXT) && echo 1 || echo 0) | |
45 | +ifeq ($(HAVE_LZ4), 1) | 45 | +ifeq ($(HAVE_LZ4), 1) | |
46 | +LZ4CPP = -DZSTD_LZ4COMPRESS -DZSTD_LZ4DECOMPRESS | 46 | +LZ4CPP = -DZSTD_LZ4COMPRESS -DZSTD_LZ4DECOMPRESS | |
47 | +LZ4LD = -llz4 | 47 | +LZ4LD = -llz4 | |
48 | +endif | 48 | +endif | |
49 | + | 49 | + | |
50 | + | 50 | + | |
51 | # macOS linker doesn't support -soname, and use different extension | 51 | # macOS linker doesn't support -soname, and use different extension | |
52 | # see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html | 52 | # see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html | |
53 | ifeq ($(UNAME), Darwin) | 53 | ifeq ($(UNAME), Darwin) | |
54 | @@ -374,7 +411,6 @@ clean: | 54 | @@ -249,7 +286,6 @@ clean: | |
55 | #----------------------------------------------------------------------------- | 55 | #----------------------------------------------------------------------------- | |
56 | # make install is validated only for below listed environments | 56 | # make install is validated only for below listed environments | |
57 | #----------------------------------------------------------------------------- | 57 | #----------------------------------------------------------------------------- | |
58 | -ifneq (,$(filter $(UNAME),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku)) | 58 | -ifneq (,$(filter $(UNAME),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku AIX)) | |
59 | 59 | |||
60 | all: libzstd.pc | 60 | lib: libzstd.pc | |
61 | 61 | |||
62 | @@ -405,11 +441,7 @@ PCLIBPREFIX := $(if $(findstring $(LIBDI | 62 | @@ -280,11 +316,7 @@ PCLIBPREFIX := $(if $(findstring $(LIBDI | |
63 | # to PREFIX, rather than as a resolved value. | 63 | # to PREFIX, rather than as a resolved value. | |
64 | PCEXEC_PREFIX := $(if $(HAS_EXPLICIT_EXEC_PREFIX),$(EXEC_PREFIX),$${prefix}) | 64 | PCEXEC_PREFIX := $(if $(HAS_EXPLICIT_EXEC_PREFIX),$(EXEC_PREFIX),$${prefix}) | |
65 | 65 | |||
66 | -ifneq (,$(filter $(UNAME),FreeBSD NetBSD DragonFly)) | 66 | -ifneq (,$(filter $(UNAME),FreeBSD NetBSD DragonFly)) | |
67 | - PKGCONFIGDIR ?= $(PREFIX)/libdata/pkgconfig | 67 | - PKGCONFIGDIR ?= $(PREFIX)/libdata/pkgconfig | |
68 | -else | 68 | -else | |
69 | PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig | 69 | PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig | |
70 | -endif | 70 | -endif | |
71 | 71 | |||
72 | ifneq (,$(filter $(UNAME),SunOS)) | 72 | ifneq (,$(filter $(UNAME),SunOS)) | |
73 | INSTALL ?= ginstall | 73 | INSTALL ?= ginstall | |
74 | @@ -479,4 +511,3 @@ uninstall: | 74 | @@ -354,4 +386,3 @@ uninstall: | |
75 | $(RM) $(DESTDIR)$(INCLUDEDIR)/zdict.h | 75 | $(RM) $(DESTDIR)$(INCLUDEDIR)/zdict.h | |
76 | @echo zstd libraries successfully uninstalled | 76 | @echo zstd libraries successfully uninstalled | |
77 | 77 | |||
78 | -endif | 78 | -endif |