aboutsummaryrefslogtreecommitdiff
path: root/lib/libzstd
Commit message (Collapse)AuthorAgeFilesLines
* libzstd: Explicitly define ZSTD_DISABLE_ASMJessica Clarke2023-08-221-0/+5
| | | | | | | | | | | | | | On FreeBSD, ZSTD_ASM_SUPPORTED is defined as 0, but on macOS and Linux it is defined as 1, yet we don't build any of the assembly sources. Rather than add them just for bootstrapping on non-FreeBSD, explicitly define ZSTD_DISABLE_ASM so they're not needed and everything is consistent. This fixes building a bootstrap LLVM toolchain on non-FreeBSD amd64 (the only architecture with assembly available). Reviewed by: emaste, imp Differential Revision: https://reviews.freebsd.org/D41543
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Disable clang 14 warning about bitwise operators in zstdDimitry Andric2022-02-081-0/+2
| | | | | | | | | | | | | | | | Parts of zstd, used in openzfs and other places, trigger a new clang 14 -Werror warning: ``` sys/contrib/zstd/lib/decompress/huf_decompress.c:889:25: error: use of bitwise '&' with boolean operands [-Werror,-Wbitwise-instead-of-logical] (BIT_reloadDStreamFast(&bitD1) == BIT_DStream_unfinished) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` While the warning is benign, it should ideally be fixed upstream and then vendor-imported, but for now silence it selectively. MFC after: 3 days
* libprivatezstd: Restrict symbol visibility similar to upstreamConrad Meyer2021-01-031-1/+1
| | | | | We have to relax three symbols to dynamically link zstd(1), but the rest are the same.
* pkgbase: Move libprivatezstd from utilities to runtimeEmmanuel Vadot2020-11-121-0/+1
| | | | | | | | | | | | | | | | | | libarchive depends on it by default and tar uses libarchive. So on a update : 1/ runtime contain tar 2/ runtime have libarchive in shlibs_required 3/ libarchive packages depends on utilities 4/ utilities depends on runtime 5/ kaboom All users of libprivatezstd (libarchive related stuff and objcopy/ar) are already in utilities. Discussed with: bapt Notes: svn path=/head/; revision=367616
* Only set WARNS if not definedKyle Evans2020-09-111-1/+1
| | | | | | | | | | | | | This would allow interested parties to do experimental runs with an environment set appropriately to raise all the warnings throughout the build; e.g. env WARNS=6 NO_WERROR=yes buildworld. Not currently touching the numerous instances in ^/tools. MFC after: 1 week Notes: svn path=/head/; revision=365631
* Update to Zstandard 1.4.5Conrad Meyer2020-05-231-7/+1
| | | | | | | | | | | | | | | | | | | | | | | As usual, the full release notes are found on Github: https://github.com/facebook/zstd/releases/tag/v1.4.5 Notable changes include: * Improved decompress performance on amd64 and arm (5-10% and 15-50%, respectively). * '--patch-from' zstd(1) CLI option, which provides something like a very fast version of bspatch(1) with slightly worse compression. See release notes. In this update, I dropped the 3-year old -O0 workaround for an LLVM ARM bug; the bug was fixed in LLVM SVN in 2017, but we didn't remove this workaround from our tree until now. MFC after: I won't, but feel free Relnotes: yes Notes: svn path=/head/; revision=361426
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* Update to Zstandard 1.4.2Conrad Meyer2019-08-081-0/+15
| | | | | | | | | | | | | | | The full release notes for 1.4.1 (skipped) and 1.4.2 can be found on Github: https://github.com/facebook/zstd/releases/tag/v1.4.1 https://github.com/facebook/zstd/releases/tag/v1.4.2 These are mostly minor updates; 1.4.1 purportedly brings something like 7% faster decompression speed. Relnotes: yes Notes: svn path=/head/; revision=350760
* Update to Zstandard 1.3.8Conrad Meyer2018-12-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | This merge brings in a couple new files, which needed to be attached to the build; a new dependency on <limits.h>, which must be stubbed; and a name change in the Context parameter constants, from ZSTD_p_foo to ZSTD_c_foo. Significantly, it fixes a kernel build error with GCC where floating-point functions were included in the kernel build, by hiding them under the same compile-time #ifdef that already covered their invocation. That issue was introduced to FreeBSD in the 1.3.7 update and tracked upstream here: https://github.com/facebook/zstd/issues/1386 The full 1.3.8 release notes can be found on Github: https://github.com/facebook/zstd/releases/tag/v1.3.8 Relnotes: yes Notes: svn path=/head/; revision=342598
* Update to Zstandard 1.3.7Conrad Meyer2018-10-221-1/+4
| | | | | | | | Relnotes: yes Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=339606
* lib(private)zstd: Fix riscv buildConrad Meyer2018-03-181-0/+7
| | | | | | | | | | | | | Link __bswap[ds]i2() intrinsics in to libzstd for riscv, where the C runtime apparently lacks such intrinsics. Broken in r330894. Reported by: asomers Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=331115
* Addd work around for LLVM bug 35023.Michal Meloun2017-11-261-0/+5
| | | | | | | | Clang crashes when compiling zstd_compress.c with optimization for ARM targets. https://bugs.llvm.org/show_bug.cgi?id=35023 Notes: svn path=/head/; revision=326232
* Move zstd from contrib to sys/contrib so it can be used in theWarner Losh2017-11-141-1/+1
| | | | | | | | | | kernel. Adjust the Makefiles that referenced it to the new path. Sponsored by: Netflix OK'd by: cem@ and AllanJude@ Notes: svn path=/head/; revision=325792
* Follow up on zstd updateBaptiste Daroussin2017-11-111-1/+6
| | | | Notes: svn path=/head/; revision=325714
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Connect new directories.Bryan Drewery2017-05-091-0/+19
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317999
* Build zstandard with threading enabledBaptiste Daroussin2017-05-061-1/+3
| | | | Notes: svn path=/head/; revision=317879
* Import zstandard 1.1.4 in baseBaptiste Daroussin2017-04-151-0/+34
zstandard is a new compression library/tool which is very fast at compression/decompression For now import as a private library Notes: svn path=/head/; revision=316978