head 1.9; access; symbols pkgsrc-2021Q1:1.8.0.2 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.7.0.6 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.4 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.2 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.6.0.6 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.8 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.4 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.2 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.5.0.2 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.4.0.2 pkgsrc-2018Q4-base:1.4 pkgsrc-2016Q3:1.2.0.2 pkgsrc-2016Q3-base:1.2; locks; strict; comment @# @; 1.9 date 2021.04.05.10.12.38; author ryoon; state dead; branches; next 1.8; commitid cPvdwIkHEG75B5OC; 1.8 date 2021.01.03.14.55.50; author adam; state Exp; branches; next 1.7; commitid gJSw5kPEuTc77iCC; 1.7 date 2020.06.14.13.51.55; author adam; state Exp; branches; next 1.6; commitid tCYtsrA4KCAWhccC; 1.6 date 2019.05.01.08.24.58; author wiz; state Exp; branches; next 1.5; commitid iKh1jIAqTgL8FtlB; 1.5 date 2019.01.02.14.27.36; author adam; state Exp; branches; next 1.4; commitid ldKt8MQUlEG7ud6B; 1.4 date 2018.10.22.15.28.03; author adam; state Exp; branches; next 1.3; commitid mTifI5yOjnoF8YWA; 1.3 date 2016.10.04.14.37.03; author wiz; state dead; branches; next 1.2; commitid MfK8cIOaLTv5UPoz; 1.2 date 2016.09.04.12.40.24; author wiz; state Exp; branches; next 1.1; commitid hAI6O11AmVmUdYkz; 1.1 date 2016.09.04.12.36.59; author wiz; state Exp; branches; next ; commitid PGfnfcaNOHpJcYkz; desc @@ 1.9 log @zstd: Update to 1.4.9 Changelog: bug: Use umask() to Constrain Created File Permissions (#2495, @@felixhandte) bug: Make Simple Single-Pass Functions Ignore Advanced Parameters (#2498, @@terrelln) api: Add (De)Compression Tracing Functionality (#2482, @@terrelln) api: Support References to Multiple DDicts (#2446, @@senhuang42) api: Add Function to Generate Skippable Frame (#2439, @@senhuang42) perf: New Algorithms for the Long Distance Matcher (#2483, @@mpu) perf: Performance Improvements for Long Distance Matcher (#2464, @@mpu) perf: Don't Shrink Window Log when Streaming with a Dictionary (#2451, @@terrelln) cli: Fix --output-dir-mirror's Rejection of ..-Containing Paths (#2512, @@felixhandte) cli: Allow Input From Console When -f/--force is Passed (#2466, @@felixhandte) cli: Improve Help Message (#2500, @@senhuang42) tests: Avoid Using stat -c on NetBSD (#2513, @@felixhandte) tests: Correctly Invoke md5 Utility on NetBSD (#2492, @@niacat) tests: Remove Flaky Tests (#2455, #2486, #2445, @@Cyan4973) build: Zstd CLI Can Now be Linked to Dynamic libzstd (#2457, #2454 @@Cyan4973) build: Avoid Using Static-Only Symbols (#2504, @@skitt) build: Fix Fuzzer Compiler Detection & Update UBSAN Flags (#2503, @@terrelln) build: Explicitly Hide Static Symbols (#2501, @@skitt) build: CMake: Enable Only C for lib/ and programs/ Projects (#2498, @@concatime) build: CMake: Use configure_file() to Create the .pc File (#2462, @@lazka) build: Add Guards for _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE (#2444, @@indygreg) build: Improve zlibwrapper Makefile (#2437, @@Cyan4973) contrib: Add recover_directory Program (#2473, @@terrelln) doc: Change License Year to 2021 (#2452 & #2465, @@terrelln & @@senhuang42) doc: Fix Typos (#2459, @@ThomasWaldmann) @ text @$NetBSD: patch-programs_Makefile,v 1.8 2021/01/03 14:55:50 adam Exp $ Use zstd shared library. --- programs/Makefile.orig 2020-12-19 00:39:42.000000000 +0000 +++ programs/Makefile @@@@ -222,14 +222,14 @@@@ zstd: else # BUILD_DIR is defined -ZSTD_OBJ := $(addprefix $(BUILD_DIR)/, $(ZSTD_ALL_OBJ)) +ZSTD_OBJ := $(addprefix $(BUILD_DIR)/, $(ZSTD_CLI_OBJ)) $(BUILD_DIR)/zstd : $(ZSTD_OBJ) @@echo "$(THREAD_MSG)" @@echo "$(ZLIB_MSG)" @@echo "$(LZMA_MSG)" @@echo "$(LZ4_MSG)" @@echo LINK $@@ - $(CC) $(FLAGS) $^ -o $@@$(EXT) $(LDFLAGS) + $(CC) $(FLAGS) $^ -o $@@$(EXT) $(LDFLAGS) -L$(ZSTDDIR) -lzstd ifeq ($(HAVE_HASH),1) SRCBIN_HASH = $(shell cat $(BUILD_DIR)/zstd 2> $(VOID) | $(HASH) | cut -f 1 -d " ") @ 1.8 log @zstd: updated to 1.4.8 v1.4.8 hotfix: wrong alignment of an internal buffer v1.4.7 perf: stronger --long mode at high compression levels perf: stronger --patch-from at high compression levels, thanks to --long improvements perf: faster dictionary compression at medium compression levels perf: small speed & memory usage improvements for ZSTD_compress2() perf: improved fast compression speeds with Visual Studio cli : Set nb of threads with environment variable ZSTD_NBTHREADS cli : accept decompressing files with *.zstd suffix cli : provide a condensed summary by default when processing multiple files cli : fix : stdin input no longer confused as user prompt cli : improve accuracy of several error messages api : new sequence ingestion API api : shared thread pool: control total nb of threads used by multiple compression jobs api : new ZSTD_getDictID_fromCDict() api : zlibWrapper only uses public API, and is compatible with dynamic library api : fix : multithreaded compression has predictable output even in special cases api : fix : dictionary compression correctly respects dictionary compression level build: fix cmake script when using path with spaces build: improved compile-time detection of aarch64/neon platforms build: Fix building on AIX 5.1 build: compile paramgrill with cmake on Windows, requested by @@mirh doc : clarify repcode updates in format specification v1.4.6 fix : Always return dstSize_tooSmall when that is the case fix : Fix ZSTD_initCStream_advanced() with static allocation and no dictionary perf: Improve small block decompression speed by 20%+ perf: Reduce compression stack usage by 1 KB perf: Improve decompression speed by improving ZSTD_wildcopy perf: Improve histogram construction cli : Add --output-dir-mirror option cli : Warn when (de)compressing multiple files into a single output cli : Improved progress bar and status summary when (de)compressing multiple files cli : Call stat less often cli : Allow --patch-from XXX and --filelist XXX in addition to --patch-from=XXX and --filelist=XXX cli : Allow --patch-from to compress stdin with --stream-size api : Do not install zbuff.h, since it has long been deprecated api : Fix ZSTD_CCtx_setParameter() with ZSTD_c_compressionLevel to make 0 mean default level api : Rename ZSTDMT_NBTHREADS_MAX to ZSTDMT_NBWORKERS_MAX build: Install pkg-config file with CMake and MinGW build: Install DLL with CMake on Windows build: Fix DLL install location with CMake build: Add ZSTD_NO_UNUSED_FUNCTIONS macro to hide unused functions build: Add ZSTD_NO_INTRINSICS macro to avoid explicit intrinsics build: Add STATIC_BMI2 macro for compile time detection of BMI2 on MSVC build: Fix -Wcomma warnings build: Remove distutils requirement for meson build build: Fix cli compilation with uclibc build: Fix cli compilation without st_mtime build: Fix shadowing warnings in library build: Fix single file library compilation with Enscripten misc: Improve single file library and include dictBuilder misc: Allow compression dictionaries with missing symbols misc: Add freestanding translation script in contrib/freestanding_lib misc: Collect all of zstd's libc dependencies into zstd_deps.h doc : Add ZSTD_versionString() to manual doc : Fix documentation for ZSTD_CCtxParams_setParameter() @ text @d1 1 a1 1 $NetBSD: patch-programs_Makefile,v 1.7 2020/06/14 13:51:55 adam Exp $ @ 1.7 log @zstd: updated to 1.4.5 Zstd v1.4.5 Release Notes This is a fairly important release which includes performance improvements and new major CLI features. It also fixes a few corner cases, making it a recommended upgrade. perf: Improved decompression speed (x64 >+5%, ARM >+15%), by @@terrelln perf: Automatically downsizes ZSTD_DCtx when too large for too long perf: Improved fast compression speed on aarch64 perf: Small level 1 compression speed gains (depending on compiler) fix: Compression ratio regression on huge files (> 3 GB) using high levels (--ultra) and multithreading, by @@terrelln api: ZDICT_finalizeDictionary() is promoted to stable api: new experimental parameter ZSTD_d_stableOutBuffer build: Generate a single-file libzstd library build: Relative includes, no longer require -I flags for zstd lib subdirs build: zstd now compiles cleanly under -pedantic build: zstd now compiles with make-4.3 build: Support mingw cross-compilation from Linux, by @@Ericson2314 build: Meson multi-thread build fix on windows build: Some misc icc fixes backed by new ci test on travis cli: New --patch-from command, create and apply patches from files, by @@bimbashreshta cli: --filelist= : Provide a list of files to operate upon from a file cli: -b can now benchmark multiple files in decompression mode cli: New --no-content-size command cli: New --show-default-cparams command misc: new diagnosis tool, checked_flipped_bits, in contrib/, by @@felixhandte misc: Extend largeNbDicts benchmark to compression misc: experimental edit-distance match finder in contrib/ doc: Improved beginner CONTRIBUTING.md docs doc: New issue templates for zstd @ text @d1 1 a1 1 $NetBSD: patch-programs_Makefile,v 1.6 2019/05/01 08:24:58 wiz Exp $ d5 1 a5 1 --- programs/Makefile.orig 2020-05-22 05:04:00.000000000 +0000 d7 7 a13 6 @@@@ -172,12 +172,12 @@@@ zstd : CPPFLAGS += -DZSTD_LEGACY_SUPPORT ifneq (,$(filter Windows%,$(OS))) zstd : $(RES_FILE) endif -zstd : $(ZSTDLIB_FILES) $(ZSTD_CLI_OBJ) +zstd : $(ZSTD_CLI_OBJ) d18 1 d22 2 a23 2 .PHONY: zstd-release zstd-release: DEBUGFLAGS := -DBACKTRACE_ENABLE=0 @ 1.6 log @zstd: update to 1.4.0. v1.4.0 perf: Improve level 1 compression speed in most scenarios by 6% by @@gbtucker and @@terrelln api: Move the advanced API, including all functions in the staging section, to the stable section api: Make ZSTD_e_flush and ZSTD_e_end block for maximum forward progress api: Rename ZSTD_CCtxParam_getParameter to ZSTD_CCtxParams_getParameter api: Rename ZSTD_CCtxParam_setParameter to ZSTD_CCtxParams_setParameter api: Don't export ZSTDMT functions from the shared library by default api: Require ZSTD_MULTITHREAD to be defined to use ZSTDMT api: Add ZSTD_decompressBound() to provide an upper bound on decompressed size by @@shakeelrao api: Fix ZSTD_decompressDCtx() corner cases with a dictionary api: Move ZSTD_getDictID_*() functions to the stable section api: Add ZSTD_c_literalCompressionMode flag to enable or disable literal compression by @@terrelln api: Allow compression parameters to be set when a dictionary is used api: Allow setting parameters before or after ZSTD_CCtx_loadDictionary() is called api: Fix ZSTD_estimateCStreamSize_usingCCtxParams() api: Setting ZSTD_d_maxWindowLog to 0 means use the default cli: Ensure that a dictionary is not used to compress itself by @@shakeelrao cli: Add --[no-]compress-literals flag to enable or disable literal compression doc: Update the examples to use the advanced API doc: Explain how to transition from old streaming functions to the advanced API in the header build: Improve the Windows release packages build: Improve CMake build by @@hjmjohnson build: Build fixes for FreeBSD by @@lwhsu build: Remove redundant warnings by @@thatsafunnyname build: Fix tests on OpenBSD by @@bket build: Extend fuzzer build system to work with the new clang engine build: CMake now creates the libzstd.so.1 symlink build: Improve Menson build by @@lzutao misc: Fix symbolic link detection on FreeBSD misc: Use physical core count for -T0 on FreeBSD by @@cemeyer misc: Fix zstd --list on truncated files by @@kostmo misc: Improve logging in debug mode by @@felixhandte misc: Add CirrusCI tests by @@lwhsu misc: Optimize dictionary memory usage in corner cases misc: Improve the dictionary builder on small or homogeneous data misc: Fix spelling across the repo by @@jsoref @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- programs/Makefile.orig 2019-04-16 22:37:24.000000000 +0000 d7 6 a12 6 @@@@ -165,7 +165,7 @@@@ $(ZSTDDECOMP_O): CFLAGS += $(ALIGN_LOOP) zstd : CPPFLAGS += $(THREAD_CPP) $(ZLIBCPP) $(LZMACPP) $(LZ4CPP) zstd : LDFLAGS += $(THREAD_LD) $(ZLIBLD) $(LZMALD) $(LZ4LD) $(DEBUGFLAGS_LD) zstd : CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT) -zstd : $(ZSTDLIB_FILES) zstdcli.o util.o timefn.o fileio.o benchfn.o benchzstd.o datagen.o dibio.o +zstd : zstdcli.o util.o timefn.o fileio.o benchfn.o benchzstd.o datagen.o dibio.o d16 3 a18 6 @@@@ -173,7 +173,7 @@@@ zstd : $(ZSTDLIB_FILES) zstdcli.o util.o ifneq (,$(filter Windows%,$(OS))) windres/generate_res.bat endif - $(CC) $(FLAGS) $^ $(RES_FILE) -o $@@$(EXT) $(LDFLAGS) + $(CC) $(FLAGS) $^ $(RES_FILE) -o $@@$(EXT) $(LDFLAGS) -L$(ZSTDDIR) -lzstd @ 1.5 log @zstd: updated to 1.3.8 Zstandard v1.3.8 perf: better decompression speed on large files (+7%) and cold dictionaries (+15%) perf: slightly better compression ratio at high compression modes api : finalized advanced API, last stage before "stable" status api : new --rsyncable mode api : support decompression of empty frames into NULL (used to be an error) build: new set of build macros to generate a minimal size decoder build: fix compilation on MIPS32 build: fix compilation with multiple -arch flags build: highly upgraded meson build build: improved buck support build: fix cmake script : can create debug build build: Makefile : grep works on both colored consoles and systems without color support build: fixed zstd-pgo target cli : support ZSTD_CLEVEL environment variable cli : --no-progress flag, preserving final summary cli : ensure destination file is not source file cli : clearer error messages, notably when input file not present doc : clarified zstd_compression_format.md misc: fixed zstdgrep, returns 1 on failure misc: NEWS renamed as CHANGELOG, in accordance with fb.oss policy @ text @d1 1 a1 1 $NetBSD: patch-programs_Makefile,v 1.4 2018/10/22 15:28:03 adam Exp $ d5 1 a5 1 --- programs/Makefile.orig 2018-12-27 12:42:44.000000000 +0000 d11 2 a12 2 -zstd : $(ZSTDLIB_FILES) zstdcli.o util.o fileio.o benchfn.o benchzstd.o datagen.o dibio.o +zstd : zstdcli.o util.o fileio.o benchfn.o benchzstd.o datagen.o dibio.o @ 1.4 log @zstd: updated to 1.3.7 Zstandard v1.3.7 perf: slightly better decompression speed on clang (depending on hardware target) fix: ratio for dictionary compression at levels 9 and 10, reported by @@indygreg build: no longer build backtrace by default in release mode; restrict further automatic mode build: control backtrace support through build macro BACKTRACE misc: added man pages for zstdless and zstdgrep, by @@samrussell @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- programs/Makefile.orig 2018-10-17 03:58:52.000000000 +0000 d7 1 a7 1 @@@@ -160,7 +160,7 @@@@ $(ZSTDDECOMP_O): CFLAGS += $(ALIGN_LOOP) d11 2 a12 2 -zstd : $(ZSTDLIB_FILES) zstdcli.o fileio.o bench.o datagen.o dibio.o +zstd : zstdcli.o fileio.o bench.o datagen.o dibio.o d16 1 a16 1 @@@@ -168,7 +168,7 @@@@ zstd : $(ZSTDLIB_FILES) zstdcli.o fileio @ 1.3 log @Updated zstd to 1.1.0. v1.1.0 New : contrib/pzstd, parallel version of zstd, by Nick Terrell added : NetBSD install target (#338) Improved : speed for batches of small files Improved : speed of zlib wrapper, by Przemyslaw Skibinski Changed : libzstd on Windows supports legacy formats, by Christophe Chevalier Fixed : CLI -d output to stdout by default when input is stdin (#322) Fixed : CLI correctly detects console on Mac OS-X Fixed : CLI supports recursive mode `-r` on Mac OS-X Fixed : Legacy decoders use unified error codes, reported by benrg (#341), fixed by Przemyslaw Skibinski Fixed : compatibility with OpenBSD, reported by Juan Francisco Cantero Hurtado (#319) Fixed : compatibility with Hurd, by Przemyslaw Skibinski (#365) Fixed : zstd-pgo, reported by octoploid (#329) @ text @d1 1 a1 1 $NetBSD: patch-programs_Makefile,v 1.2 2016/09/04 12:40:24 wiz Exp $ d3 1 a3 2 Enable install target for NetBSD. https://github.com/facebook/zstd/pull/338 d5 1 a5 1 --- programs/Makefile.orig 2016-08-31 16:09:10.000000000 +0000 d7 18 a24 9 @@@@ -125,7 +125,7 @@@@ clean: #---------------------------------------------------------------------------------- #make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets #---------------------------------------------------------------------------------- -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly)) +ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD)) install: zstd @@echo Installing binaries @@install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/ @ 1.2 log @Add upstream pull request. @ text @d1 1 a1 1 $NetBSD: patch-programs_Makefile,v 1.1 2016/09/04 12:36:59 wiz Exp $ @ 1.1 log @Import zstd-1.0.0 as archivers/zstd. Zstd, short for Zstandard, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios. @ text @d1 1 a1 1 $NetBSD$ d4 1 @