build - Add zstd to the build (libzstd as private library)

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 2 April 2021 16:23 UTC

- Bring in contrib/zstd from FreeBSD.

- Add libzstd as a private library (i.e. priv/libprivate_zstd) to avoid confusion. (Note that FreeBSD also has zstd in base as a private library).

- Add zstd, unzstd, zstdcat, zstdmt utilities.

- Integrate into libarchive, initrd, dsynth, and misc other base system elements.

Ported-from: FreeBSD

c37c9ab323 build - Add zstd to the build (libzstd as private library)
Makefile.inc1 | 2 +-
contrib/zstd/.buckconfig | 9 +
contrib/zstd/.buckversion | 1 +
contrib/zstd/.gitattributes | 21 +
contrib/zstd/CHANGELOG | 616 +++
contrib/zstd/CONTRIBUTING.md | 406 ++
contrib/zstd/COPYING | 339 ++
contrib/zstd/FREEBSD-Xlist | 12 +
contrib/zstd/FREEBSD-upgrade | 14 +
contrib/zstd/LICENSE | 30 +
contrib/zstd/Makefile | 420 ++
contrib/zstd/README.md | 199 +
contrib/zstd/TESTING.md | 44 +
contrib/zstd/appveyor.yml | 292 ++
contrib/zstd/doc/README.md | 25 +
contrib/zstd/doc/educational_decoder/Makefile | 62 +
contrib/zstd/doc/educational_decoder/README.md | 36 +
contrib/zstd/doc/educational_decoder/harness.c | 119 +
.../zstd/doc/educational_decoder/zstd_decompress.c | 2320 +++++++++
.../zstd/doc/educational_decoder/zstd_decompress.h | 61 +
contrib/zstd/doc/images/CSpeed2.png | Bin 0 -> 73335 bytes
contrib/zstd/doc/images/DCspeed5.png | Bin 0 -> 69278 bytes
contrib/zstd/doc/images/DSpeed3.png | Bin 0 -> 27123 bytes
contrib/zstd/doc/images/cdict_v136.png | Bin 0 -> 33330 bytes
contrib/zstd/doc/images/dict-cr.png | Bin 0 -> 90412 bytes
contrib/zstd/doc/images/dict-cs.png | Bin 0 -> 91518 bytes
contrib/zstd/doc/images/dict-ds.png | Bin 0 -> 98316 bytes
contrib/zstd/doc/images/zstd_cdict_v1_3_5.png | Bin 0 -> 93969 bytes
contrib/zstd/doc/images/zstd_logo86.png | Bin 0 -> 5963 bytes
contrib/zstd/doc/zstd_compression_format.md | 1692 +++++++
contrib/zstd/doc/zstd_manual.html | 1818 +++++++
contrib/zstd/examples/Makefile | 93 +
contrib/zstd/examples/README.md | 46 +
contrib/zstd/examples/common.h | 234 +
contrib/zstd/examples/dictionary_compression.c | 97 +
contrib/zstd/examples/dictionary_decompression.c | 99 +
.../zstd/examples/multiple_simple_compression.c | 116 +
.../zstd/examples/multiple_streaming_compression.c | 133 +
contrib/zstd/examples/simple_compression.c | 68 +
contrib/zstd/examples/simple_decompression.c | 65 +
contrib/zstd/examples/streaming_compression.c | 124 +
.../examples/streaming_compression_thread_pool.c | 178 +
contrib/zstd/examples/streaming_decompression.c | 100 +
contrib/zstd/examples/streaming_memory_usage.c | 137 +
contrib/zstd/lib/BUCK | 234 +
contrib/zstd/lib/Makefile | 451 ++
contrib/zstd/lib/README.md | 207 +
contrib/zstd/lib/common/bitstream.h | 463 ++
contrib/zstd/lib/common/compiler.h | 288 ++
contrib/zstd/lib/common/cpu.h | 213 +
contrib/zstd/lib/common/debug.c | 24 +
contrib/zstd/lib/common/debug.h | 107 +
contrib/zstd/lib/common/entropy_common.c | 362 ++
contrib/zstd/lib/common/error_private.c | 56 +
contrib/zstd/lib/common/error_private.h | 80 +
contrib/zstd/lib/common/fse.h | 716 +++
contrib/zstd/lib/common/fse_decompress.c | 393 ++
contrib/zstd/lib/common/huf.h | 361 ++
contrib/zstd/lib/common/mem.h | 426 ++
contrib/zstd/lib/common/pool.c | 350 ++
contrib/zstd/lib/common/pool.h | 84 +
contrib/zstd/lib/common/threading.c | 122 +
contrib/zstd/lib/common/threading.h | 155 +
contrib/zstd/lib/common/xxhash.c | 826 ++++
contrib/zstd/lib/common/xxhash.h | 288 ++
contrib/zstd/lib/common/zstd_common.c | 83 +
contrib/zstd/lib/common/zstd_deps.h | 111 +
contrib/zstd/lib/common/zstd_errors.h | 95 +
contrib/zstd/lib/common/zstd_internal.h | 478 ++
contrib/zstd/lib/compress/fse_compress.c | 705 +++
contrib/zstd/lib/compress/hist.c | 181 +
contrib/zstd/lib/compress/hist.h | 75 +
contrib/zstd/lib/compress/huf_compress.c | 914 ++++
contrib/zstd/lib/compress/zstd_compress.c | 5208 ++++++++++++++++++++
contrib/zstd/lib/compress/zstd_compress_internal.h | 1206 +++++
contrib/zstd/lib/compress/zstd_compress_literals.c | 158 +
contrib/zstd/lib/compress/zstd_compress_literals.h | 29 +
.../zstd/lib/compress/zstd_compress_sequences.c | 433 ++
.../zstd/lib/compress/zstd_compress_sequences.h | 54 +
.../zstd/lib/compress/zstd_compress_superblock.c | 849 ++++
.../zstd/lib/compress/zstd_compress_superblock.h | 32 +
contrib/zstd/lib/compress/zstd_cwksp.h | 561 +++
contrib/zstd/lib/compress/zstd_double_fast.c | 521 ++
contrib/zstd/lib/compress/zstd_double_fast.h | 38 +
contrib/zstd/lib/compress/zstd_fast.c | 496 ++
contrib/zstd/lib/compress/zstd_fast.h | 37 +
contrib/zstd/lib/compress/zstd_lazy.c | 1412 ++++++
contrib/zstd/lib/compress/zstd_lazy.h | 87 +
contrib/zstd/lib/compress/zstd_ldm.c | 660 +++
contrib/zstd/lib/compress/zstd_ldm.h | 116 +
contrib/zstd/lib/compress/zstd_opt.c | 1345 +++++
contrib/zstd/lib/compress/zstd_opt.h | 56 +
contrib/zstd/lib/compress/zstdmt_compress.c | 1811 +++++++
contrib/zstd/lib/compress/zstdmt_compress.h | 110 +
contrib/zstd/lib/decompress/huf_decompress.c | 1350 +++++
contrib/zstd/lib/decompress/zstd_ddict.c | 244 +
contrib/zstd/lib/decompress/zstd_ddict.h | 44 +
contrib/zstd/lib/decompress/zstd_decompress.c | 1930 ++++++++
.../zstd/lib/decompress/zstd_decompress_block.c | 1540 ++++++
.../zstd/lib/decompress/zstd_decompress_block.h | 62 +
.../zstd/lib/decompress/zstd_decompress_internal.h | 190 +
contrib/zstd/lib/deprecated/zbuff.h | 214 +
contrib/zstd/lib/deprecated/zbuff_common.c | 26 +
contrib/zstd/lib/deprecated/zbuff_compress.c | 147 +
contrib/zstd/lib/deprecated/zbuff_decompress.c | 75 +
contrib/zstd/lib/dictBuilder/cover.c | 1245 +++++
contrib/zstd/lib/dictBuilder/cover.h | 157 +
contrib/zstd/lib/dictBuilder/divsufsort.c | 1913 +++++++
contrib/zstd/lib/dictBuilder/divsufsort.h | 67 +
contrib/zstd/lib/dictBuilder/fastcover.c | 758 +++
contrib/zstd/lib/dictBuilder/zdict.c | 1137 +++++
contrib/zstd/lib/dictBuilder/zdict.h | 305 ++
contrib/zstd/lib/freebsd/limits.h | 3 +
contrib/zstd/lib/freebsd/stddef.h | 3 +
contrib/zstd/lib/freebsd/stdint.h | 3 +
contrib/zstd/lib/freebsd/stdio.h | 3 +
contrib/zstd/lib/freebsd/stdlib.h | 45 +
contrib/zstd/lib/freebsd/string.h | 3 +
contrib/zstd/lib/freebsd/zstd_kfreebsd.c | 94 +
contrib/zstd/lib/freebsd/zstd_kfreebsd.h | 48 +
contrib/zstd/lib/freebsd/zstd_kmalloc.c | 39 +
contrib/zstd/lib/legacy/zstd_legacy.h | 415 ++
contrib/zstd/lib/legacy/zstd_v01.c | 2162 ++++++++
contrib/zstd/lib/legacy/zstd_v01.h | 94 +
contrib/zstd/lib/legacy/zstd_v02.c | 3522 +++++++++++++
contrib/zstd/lib/legacy/zstd_v02.h | 93 +
contrib/zstd/lib/legacy/zstd_v03.c | 3164 ++++++++++++
contrib/zstd/lib/legacy/zstd_v03.h | 93 +
contrib/zstd/lib/legacy/zstd_v04.c | 3651 ++++++++++++++
contrib/zstd/lib/legacy/zstd_v04.h | 142 +
contrib/zstd/lib/legacy/zstd_v05.c | 4054 +++++++++++++++
contrib/zstd/lib/legacy/zstd_v05.h | 162 +
contrib/zstd/lib/legacy/zstd_v06.c | 4158 ++++++++++++++++
contrib/zstd/lib/legacy/zstd_v06.h | 172 +
contrib/zstd/lib/legacy/zstd_v07.c | 4545 +++++++++++++++++
contrib/zstd/lib/legacy/zstd_v07.h | 187 +
contrib/zstd/lib/libzstd.pc.in | 15 +
contrib/zstd/lib/zstd.h | 2391 +++++++++
contrib/zstd/programs/BUCK | 44 +
contrib/zstd/programs/Makefile | 501 ++
contrib/zstd/programs/README.md | 299 ++
contrib/zstd/programs/benchfn.c | 256 +
contrib/zstd/programs/benchfn.h | 183 +
contrib/zstd/programs/benchzstd.c | 888 ++++
contrib/zstd/programs/benchzstd.h | 212 +
contrib/zstd/programs/datagen.c | 186 +
contrib/zstd/programs/datagen.h | 30 +
contrib/zstd/programs/dibio.c | 372 ++
contrib/zstd/programs/dibio.h | 39 +
contrib/zstd/programs/fileio.c | 3083 ++++++++++++
contrib/zstd/programs/fileio.h | 175 +
contrib/zstd/programs/platform.h | 214 +
contrib/zstd/programs/timefn.c | 169 +
contrib/zstd/programs/timefn.h | 89 +
contrib/zstd/programs/util.c | 1257 +++++
contrib/zstd/programs/util.h | 289 ++
contrib/zstd/programs/zstd.1 | 491 ++
contrib/zstd/programs/zstd.1.md | 582 +++
contrib/zstd/programs/zstdcli.c | 1379 ++++++
contrib/zstd/programs/zstdgrep | 134 +
contrib/zstd/programs/zstdgrep.1 | 23 +
contrib/zstd/programs/zstdgrep.1.md | 26 +
contrib/zstd/programs/zstdless | 2 +
contrib/zstd/programs/zstdless.1 | 14 +
contrib/zstd/programs/zstdless.1.md | 16 +
contrib/zstd/zlibWrapper/BUCK | 22 +
contrib/zstd/zlibWrapper/Makefile | 119 +
contrib/zstd/zlibWrapper/README.md | 163 +
contrib/zstd/zlibWrapper/examples/example.c | 629 +++
.../zstd/zlibWrapper/examples/example_original.c | 618 +++
contrib/zstd/zlibWrapper/examples/fitblk.c | 254 +
.../zstd/zlibWrapper/examples/fitblk_original.c | 233 +
contrib/zstd/zlibWrapper/examples/minigzip.c | 640 +++
contrib/zstd/zlibWrapper/examples/zwrapbench.c | 1001 ++++
contrib/zstd/zlibWrapper/gzclose.c | 28 +
contrib/zstd/zlibWrapper/gzcompatibility.h | 68 +
contrib/zstd/zlibWrapper/gzguts.h | 229 +
contrib/zstd/zlibWrapper/gzlib.c | 640 +++
contrib/zstd/zlibWrapper/gzread.c | 678 +++
contrib/zstd/zlibWrapper/gzwrite.c | 671 +++
contrib/zstd/zlibWrapper/zstd_zlibwrapper.c | 1176 +++++
contrib/zstd/zlibWrapper/zstd_zlibwrapper.h | 88 +
etc/mtree/BSD.include.dist | 2 +
initrd/rescue.libcrypto/Makefile | 1 +
initrd/rescue/Makefile | 1 +
lib/Makefile | 2 +
lib/libarchive/Makefile | 8 +-
lib/libarchive/Symbol.map | 2 +
lib/libarchive/config.h | 4 +-
lib/libzstd/Makefile | 74 +
lib/libzstd/Makefile.depend | 17 +
lib/libzstd/Symbol.map | 367 ++
lib/libzstd/Versions.def | 5 +
share/mk/bsd.libnames.mk | 1 +
usr.bin/Makefile | 3 +-
usr.bin/bsdcat/Makefile | 7 +-
usr.bin/cpio/Makefile | 5 +-
usr.bin/tar/Makefile | 5 +-
usr.bin/zstd/Makefile | 41 +
usr.bin/zstd/Makefile.depend | 19 +
200 files changed, 93522 insertions(+), 12 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share