From 0339201dc4fdf2f3389b4b90c6c3c923f6791b85d782167772f2d038ff100df6 Mon Sep 17 00:00:00 2001 From: Bernhard Wiedemann Date: Thu, 20 Feb 2025 03:01:34 +0000 Subject: [PATCH 1/2] update to 1.5.7: * zstd now employs multiple threads by default * Fix a rare bug in 32-bit mode * Enhanced Compression Speed for Small Data Blocks * Substantial --patch-from performance improvements OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=102 --- .gitattributes | 23 ++ .gitignore | 1 + _constraints | 8 + baselibs.conf | 6 + pzstd.1.patch | 17 ++ zstd-1.5.6.tar.gz | 3 + zstd-1.5.6.tar.gz.sig | 17 ++ zstd-1.5.7.tar.gz | 3 + zstd-1.5.7.tar.gz.sig | 17 ++ zstd.changes | 628 ++++++++++++++++++++++++++++++++++++++++++ zstd.keyring | 29 ++ zstd.spec | 175 ++++++++++++ 12 files changed, 927 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _constraints create mode 100644 baselibs.conf create mode 100644 pzstd.1.patch create mode 100644 zstd-1.5.6.tar.gz create mode 100644 zstd-1.5.6.tar.gz.sig create mode 100644 zstd-1.5.7.tar.gz create mode 100644 zstd-1.5.7.tar.gz.sig create mode 100644 zstd.changes create mode 100644 zstd.keyring create mode 100644 zstd.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..fb5db1f --- /dev/null +++ b/_constraints @@ -0,0 +1,8 @@ + + + + + 6 + + + diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..c1cf378 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,6 @@ +libzstd1 + obsoletes "libzstd- < " + provides "libzstd- = " +libzstd-devel + requires -libzstd- + requires "libzstd1- = " diff --git a/pzstd.1.patch b/pzstd.1.patch new file mode 100644 index 0000000..b80716c --- /dev/null +++ b/pzstd.1.patch @@ -0,0 +1,17 @@ +Index: zstd-1.5.6/programs/zstd.1 +=================================================================== +--- zstd-1.5.6.orig/programs/zstd.1 ++++ zstd-1.5.6/programs/zstd.1 +@@ -258,6 +258,12 @@ do not store the original filename and t + \fB\-\-best\fR + alias to the option \fB\-9\fR\. + . ++.SS Parallel Zstd OPTIONS ++Additional options for the pzstd utility ++.TP ++\fB\-p\fR, \fB\-\-processes\fR ++ number of threads to use for (de)compression (default:4) ++. + .SS "Environment Variables" + Employing environment variables to set parameters has security implications\. Therefore, this avenue is intentionally limited\. Only \fBZSTD_CLEVEL\fR and \fBZSTD_NBTHREADS\fR are currently supported\. They set the default compression level and number of threads to use during compression, respectively\. + . diff --git a/zstd-1.5.6.tar.gz b/zstd-1.5.6.tar.gz new file mode 100644 index 0000000..486c25d --- /dev/null +++ b/zstd-1.5.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1 +size 2406875 diff --git a/zstd-1.5.6.tar.gz.sig b/zstd-1.5.6.tar.gz.sig new file mode 100644 index 0000000..7b20e2d --- /dev/null +++ b/zstd-1.5.6.tar.gz.sig @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- + +iQJFBAADCgAvFiEETvSsY0VfyfRUXZt974/plSi1L/0FAmYDZzgRHHNpZ25pbmdA +enN0ZC5uZXQACgkQ74/plSi1L/1Slw/+L4Z0YQU+3OwcbS7c/dmP/FHiCtyZHdHg +ShhC4YEmDvFsYeYLotkhB9v0rf+/ZMZLzaHGWbBqSA27VMfHNth0NA/onDE01PGm +0WetCZKG8DS4Nay/6YA/M9Z2Ag/LrXEZd2r643p/eiGXq70ufKpZujMF9B4iXW8c +T/vPPXiRffB/KuzPRSoGfiN5HZwD1+FWfZ+X2SWhEZ9tutwcaYpKazJtwOb6eEBN +SwDg7elwp3aqt0ci6CVCeU810lNmAKuedhHU6nZPSBeXWEMGSQ6OHJhKdm/Jolkv +r0DtiKvQFn1cN8rzohmxLO3/OplTDEOnSgfVkyfxxldu+0j4hvR3eCOOicHp70v/ +WTSpVSlraIn4nJdTfLwO7xNxntdiGczR/fqLmewIctg2gY9wfx7ITOTgTyumuVcX +C0boMIS/Ra6l4RtLvwRC/QMXQNLmnkGPxULnGPpDfOfnF1NJzr0AVsD5D1V3wlZl ++ANBR3sjQbQOYGr7h15wgGWmTx/0hvANceUZcBWR2fUvBQQGkkwSQPpHjqdcVC8c +cMs56qFyihrXWyX3kohuPJ2EQEQl/s3FGoZKnuLjh98nXSh5uuXODDJUaB7adu2d +Ok2hJ34Xzyvgx1PwrHW6upfNeKsTcxATVg+1l42Yan0hExiZ+prDANdr8DJT/MYf +vSAV1ZQ2rPU= +=YKei +-----END PGP SIGNATURE----- diff --git a/zstd-1.5.7.tar.gz b/zstd-1.5.7.tar.gz new file mode 100644 index 0000000..1609ac2 --- /dev/null +++ b/zstd-1.5.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3 +size 2434947 diff --git a/zstd-1.5.7.tar.gz.sig b/zstd-1.5.7.tar.gz.sig new file mode 100644 index 0000000..5f4530b --- /dev/null +++ b/zstd-1.5.7.tar.gz.sig @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- + +iQJFBAADCgAvFiEETvSsY0VfyfRUXZt974/plSi1L/0FAme2UiwRHHNpZ25pbmdA +enN0ZC5uZXQACgkQ74/plSi1L/0AXQ/8Cws6GYY/1VLiBKsxKaOTeETM0poDGtzX +plYMAnbSrDLLoUKXN4ovy2Zrz6iJoi1WLdTwpYRR5En90tvaQaDHXrFDvf1bKJw0 +C5ldy0xDxZ4TPJr7QBL3Xv1/XResNnFjzYdKMKTa4R9gVPca4BTzszolq8VHyKp7 +aj2NlDdm/jrq67o5GGDo3K+GzUlzvOgxfdV5+eBWyjCYLSzBEfI6kX6mRJ7BdYBL +JWk+OnmW7K9vQTYANkrNMTqeKxaI8OJxfs8zk14TqKYSMoyj1MUW94eknj+A6Inv +vEW749Pb/u1iUEouRdTuNyG6iDRi1Jm7e9huiocWzNqH7XSYZDDUA0LwGJamdn7y +VH9Au8tABEfzHX5KWS/HYkKEkOXagNdUp24Kma9CdhmTjZny9oOJKEvv4rtRMf+z +XgoSRIR5OxAv6u0aCgi9CR5xQyiMiklQ07x+r1CpMeaj+dzwOAM0nQtwPmXDVc4d +9fwe7fBmBtDHiKqJV5k526UndxRay1GdmS1TOTahDjAbivGpHrVvulabfVO1MbJn +PlzMaW+jZ6kJ1+YKZELlwXRi9NeoOSQAQcIheL/DOZ22ThnWKG3fQQ8Q5ismCAkm +Hw6ypXSD2mndquoq8eUTlpbjIiqj9CuhIvz9TDnkeJhkWzXhnlC7hA8RNamkKQ5W +LC1I0ec0Dkw= +=8zJz +-----END PGP SIGNATURE----- diff --git a/zstd.changes b/zstd.changes new file mode 100644 index 0000000..ee8eeef --- /dev/null +++ b/zstd.changes @@ -0,0 +1,628 @@ +------------------------------------------------------------------- +Thu Feb 20 02:56:07 UTC 2025 - Bernhard Wiedemann + +- update to 1.5.7: + * zstd now employs multiple threads by default + * Fix a rare bug in 32-bit mode + * Enhanced Compression Speed for Small Data Blocks + * Substantial --patch-from performance improvements + +------------------------------------------------------------------- +Thu Mar 28 15:56:09 UTC 2024 - Andreas Stieger + +- update to 1.5.6: + * Introduce a new stable parameter ZSTD_c_targetCBlockSize, + enabling the division of blocks into smaller segments to + enhance initial byte delivery speed for congested networks + * library allows allow ganular binary size selection +- drop zstd-pr-3961.patch, merged upstream + +------------------------------------------------------------------- +Thu Mar 14 07:13:30 UTC 2024 - Guillaume GARDET + +- Backport PAC/BTI fix for aarch64 + https://github.com/facebook/zstd/pull/3961 : + * zstd-pr-3961.patch + +------------------------------------------------------------------- +Fri Dec 29 13:21:02 UTC 2023 - ecsos + +- Disable build of gzip for Leap 15.x to fix build error. + +------------------------------------------------------------------- +Thu May 25 11:41:00 UTC 2023 - Ben Greiner + +- Revert the addition of build specific cmake files: breaks + gdal, apache-arrow and possibly others -- boo#1211566 + * note that shipping cmake files is not intentional or supported + upstream at the moment: gh#facebook/zstd#3642 + +------------------------------------------------------------------- +Wed May 10 01:42:06 UTC 2023 - Bernhard Wiedemann + +- Add cmake files manually because we do not want to add + cmake to the bootstrap ring0 + +------------------------------------------------------------------- +Thu Apr 13 11:15:39 UTC 2023 - Dirk Müller + +- update to 1.5.5: + * fix: fix rare corruption bug affecting the high compression + mode, reported by @danlark1 + * perf: improve mid-level compression speed + * lib: deprecated bufferless block-level API (#3534) by + @terrelln + * cli: mmap large dictionaries to save memory, by + @daniellerozenblit + * cli: improve speed of --patch-from mode (~+50%) (#3545) by + @daniellerozenblit + * cli: improve i/o speed (~+10%) when processing lots of small + files (#3479) by @felixhandte + * cli: zstd no longer crashes when requested to write into + write-protected directory (#3541) by @felixhandte + * cli: fix decompression into block device using -o, reported + by @georgmu + * misc: improve seekable format ingestion speed (~+100%) for + very small chunk sizes (#3544) by @Cyan4973 + * misc: tests/fullbench can benchmark multiple files (#3516) by + @dloidolt + +------------------------------------------------------------------- +Wed Mar 8 09:28:33 UTC 2023 - Martin Pluskal + +- Build AVX2 enabled hwcaps library for x86_64-v3 + +------------------------------------------------------------------- +Fri Feb 10 08:22:04 UTC 2023 - Bernhard Wiedemann + +- update to 1.5.4: + * perf: +20% faster huffman decompression for targets that + can't compile x64 assembly + * perf: up to +10% faster streaming compression at levels 1-2 + * perf: +4-13% for levels 5-12 by optimizing function + generation + * pref: +3-11% compression speed for `arm` target + * perf: +5-30% faster dictionary compression at levels 1-4 + * perf: +10-20% cold dict compression speed by prefetching + CDict tables + * perf: +1% faster compression by removing a branch in + ZSTD_fast_noDict + * perf: Small compression ratio improvements in high + compression mode + * perf: small speed improvement by better detecting + `STATIC_BMI2` for `clang` + * perf: Improved streaming performance when + `ZSTD_c_stableInBuffer` is set + * cli: Asynchronous I/O for improved cli speed + * cli: Change `zstdless` behavior to align with `zless` + * cli: Keep original file if `-c` or `--stdout` is given + * cli: Keep original files when result is concatenated into a + single output with `-o` + * cli: Preserve Permissions and Ownership of regular files + * cli: Print zlib/lz4/lzma library versions with `-vv` + * cli: Print checksum value for single frame files with `-lv` + * cli: Print `dictID` when present with `-lv` + * cli: when `stderr` is *not* the console, disable status + updates, but preserve final summary + * cli: support `--best` and `--no-name` in `gzip` compatibility + mode + * cli: support for `posix` high resolution timer + `clock_gettime()`, for improved benchmark accuracy + * cli: improved help/usage (`-h`, `-H`) formatting + * cli: Fix better handling of bogus numeric values + * cli: Fix input consists of multiple files _and_ `stdin` + * cli: Fix tiny files passthrough + * cli: Fix for `-r` on empty directory + * cli: Fix empty string as argument for `--output-dir-*` + * cli: Fix decompression memory usage reported by `-vv --long` + * cli: Fix infinite loop when empty input is passed to trainer + * cli: Fix `--adapt` doesn't work when `--no-progress` is also + set + * api: Support for Block-Level Sequence Producer + * api: Support for in-place decompression + * api: New `ZSTD_CCtx_setCParams()` function, set all + parameters defined in a `ZSTD_compressionParameters` + structure + * api: Streaming decompression detects incorrect header ID + sooner + * api: Window size resizing optimization for edge case + * api: More accurate error codes for busy-loop scenarios + * api: Fix limit overflow in `compressBound` and + `decompressBound` (#3362, #3373, Cyan4973) reported by + @nigeltao + * api: Deprecate several advanced experimental functions: + streaming (#3408, @embg), copy + * bug: Fix corruption that rarely occurs in 32-bit mode with + wlog=25 + * bug: Fix for block-splitter + * bug: Fixes for Sequence Compression API + * bug: Fix leaking thread handles on Windows + * bug: Fix timing issues with cmake/meson builds + * build: Allow user to select legacy level for cmake + * build: Enable legacy support by default in cmake + * build: Meson build script improvements + * build: Add aarch64 to supported architectures for zstd_trace + * build: support AIX architecture + * build: Fix `ZSTD_LIB_MINIFY` build macro, which now reduces + static library size by half + * build: Fix Windows issues with Multithreading translation + layer (#3364, #3380, @yoniko) and ARM64 target + * build: Fix `cmake` script + * doc: Updated man page, providing more details for `--train` + mode + * doc: Add decompressor errata document + * misc: Enable Intel CET + * misc: Fix `contrib/` seekable format + * misc: Improve speed of the one-file library generator +- rebase pzstd.1.patch + * Dropped patches: + - Disallow-empty-output-directory.patch + - Fix-buffer-underflow-for-null-dir1.patch + Fixed upstream + +------------------------------------------------------------------- +Thu Feb 9 08:39:08 UTC 2023 - Ali Abdallah + +- Fix CVE-2022-4899, bsc#1209533 + * Fix buffer underflow when dir1 == "" + * Disallow empty string as an argument for --output-dir-flat="" + and --output-dir-mirror="". +- Added patches: + * Disallow-empty-output-directory.patch + * Fix-buffer-underflow-for-null-dir1.patch + +------------------------------------------------------------------- +Tue Jan 3 09:03:22 UTC 2023 - Dirk Müller + +- add zcat in zstd-gzip (needed by for example the kernel scripts) + +------------------------------------------------------------------- +Sun Jan 30 22:59:24 UTC 2022 - Dirk Müller + +- enable zlib/gzip compatible backend, as zlib is significantly + (50%-100%) faster than gzip +- add zstd-gzip compatibility subpackage which can be used + as a drop in compatible replacement for gzip +- small spec file cleanups + +------------------------------------------------------------------- +Fri Jan 21 04:53:08 UTC 2022 - Bernhard Wiedemann + +- update to 1.5.2: + * correct a performance regression + * smaller improvements and fixes + * See https://github.com/facebook/zstd/releases/tag/v1.5.2 +- Refresh pzstd.1.patch +- Drop upstream noexecstack.patch + +------------------------------------------------------------------- +Wed Jan 5 13:12:22 UTC 2022 - Dirk Müller + +- add noexecstack.patch (bsc#1194337) + +------------------------------------------------------------------- +Mon Jan 3 09:18:49 UTC 2022 - Dirk Müller + +- fix pkgconfig pc file settings by passing in right prefix during build + +------------------------------------------------------------------- +Mon Dec 27 14:59:02 UTC 2021 - Dirk Müller + +- update to 1.5.1: + * perf: rebalanced compression levels, to better match the intended speed/level curve + * perf: faster huffman decoder, using x64 assembly + * perf: slightly faster high speed modes (strategies fast & dfast) + * perf: improved binary size and faster compilation times + * perf: new row64 mode, used notably in level 12 + * perf: faster mid-level compression speed in presence of highly repetitive patterns + * perf: minor compression ratio improvements for small data at high levels + * perf: reduced stack usage (mostly useful for Linux Kernel) + * perf: faster compression speed on incompressible data + * perf: on-demand reduced ZSTD_DCtx state size, using build macro ZSTD_DECODER_INTERNAL_BUFFER, at a small cost of performance + * build: allows hiding static symbols in the dynamic library, using build macro + * build: support for m68k (Motorola 68000's) + * build: improved AIX support + * build: improved meson unofficial build + * cli : custom memory limit when training dictionary (#2925) + * cli : report advanced parameters information when compressing in very verbose mode (``-vv`) + +------------------------------------------------------------------- +Fri May 14 20:34:25 UTC 2021 - Ismail Dönmez + +- Update to version 1.5.0 + * https://github.com/facebook/zstd/releases/tag/v1.5.0 + * Improved Middle-Level Compression Speed + * Improved High-Level Compression Ratio + * Faster Decompression Speed + * Dynamic Library Supports Multithreading by Default +- Drop zstd-1.4.9-Avoid-SIGBUS-on-armv6.patch, merged upstream + +------------------------------------------------------------------- +Tue May 11 18:28:45 UTC 2021 - Bernhard Wiedemann + +- Add zstd-1.4.9-Avoid-SIGBUS-on-armv6.patch + to fix crashes when running armv6 userspace on armv8 64-bit kernels + +------------------------------------------------------------------- +Thu Mar 4 01:36:14 UTC 2021 - Bernhard Wiedemann + +- Update to version 1.4.9 + * https://github.com/facebook/zstd/releases/tag/v1.4.9 + * >2x Faster Long Distance Mode + * New Experimental Decompression Feature: ZSTD_d_refMultipleDDicts + * bug: Use umask() to Constrain Created File Permissions + * bug: Make Simple Single-Pass Functions Ignore Advanced Parameters + * cli: Fix --output-dir-mirror's Rejection of ..-Containing Paths + * cli: Allow Input From Console When -f/--force is Passed + +------------------------------------------------------------------- +Fri Jan 22 14:34:28 UTC 2021 - Bernhard Wiedemann + +- Add libzstd-devel-32bit (boo#1181272) + +------------------------------------------------------------------- +Sat Dec 19 04:01:08 UTC 2020 - Bernhard Wiedemann + +- Update to version 1.4.8 to fix i586+s390x + +------------------------------------------------------------------- +Thu Dec 17 04:04:42 UTC 2020 - Bernhard Wiedemann + +- Update to version 1.4.7 + * Improved --long mode + * --long now automatically enabled for any window size >= 128MB + * Faster decompression of small blocks + * CLI improvements + + accept parameter through environment variable ZSTD_NBTHREADS + + new command --output-dir-mirror + + more accurate warning and error messages + * New experimental features + + Shared Thread Pool + + Faster Dictionary Compression + + New Sequence Ingestion API + * Drop upstream fix-lib-build.patch + +------------------------------------------------------------------- +Wed Jul 8 18:33:04 UTC 2020 - Martin Liška + +- Remove not needed exports in %install section. + +------------------------------------------------------------------- +Wed Jul 8 17:47:50 UTC 2020 - Martin Liška + +- Use %make_build macro. +- Add upstream patch fix-lib-build.patch which fixes lib-mt target. + +------------------------------------------------------------------- +Fri May 22 08:05:28 UTC 2020 - Ismail Dönmez + +- Update to version 1.4.5 + * perf: Improved decompression speed (x64 >+5%, ARM >+15%) + * perf: Automatically downsizes ZSTD_DCtx when too large for too + * perf: Improved fast compression speed on aarch64 (#2040, ~+3%) + * 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 + * api: ZDICT_finalizeDictionary() is promoted to stable + * api: new experimental parameter ZSTD_d_stableOutBuffer + * cli: New --patch-from command, create and apply patches from files + * 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/ + * misc: Extend largeNbDicts benchmark to compression + * misc: experimental edit-distance match finder in contrib/ + +------------------------------------------------------------------- +Tue Nov 5 18:39:50 UTC 2019 - Ismail Dönmez + +- Update to version 1.4.4 + * perf: Improved decompression speed, by > 10% + * perf: Better compression speed when re-using a context + * perf: Fix compression ratio when compressing large files with + small dictionary + * perf: zstd reference encoder can generate RLE blocks + * perf: minor generic speed optimization + * api: new ability to extract sequences from the parser for analysis + * api: fixed decoding of magic-less frames + * api: fixed ZSTD_initCStream_advanced() performance with fast modes + * cli: Named pipes support + * cli: short tar's extension support + * cli: command --output-dir-flat=DIE , generates target files into + requested directory + * cli: commands --stream-size=# and --size-hint=# + * cli: command --exclude-compressed + * cli: faster -t test mode + * cli: improved some error messages + * cli: fix rare deadlock condition within dictionary builder + * misc: Improved documentation : ZSTD_CLEVEL, DYNAMIC_BMI2, + ZSTD_CDict, function deprecation, zstd format + * misc: fixed educational decoder : accept larger literals section, + and removed UNALIGNED() macro +- Refresh pzstd.1.patch + +------------------------------------------------------------------- +Tue Aug 20 07:25:49 UTC 2019 - Ismail Dönmez + +- Update to version 1.4.3 + * bug: Fix Dictionary Compression Ratio Regression (#1709) + * bug: Fix Buffer Overflow in v0.3 Decompression (#1722) + * build: Add support for IAR C/C++ Compiler for Arm (#1705) + * misc: Add NULL pointer check in util.c (#1706) + +------------------------------------------------------------------- +Tue Jul 30 13:43:02 UTC 2019 - Bernhard Wiedemann + +- Add disk _constraints to fix ppc64le build + +------------------------------------------------------------------- +Fri Jul 26 13:06:18 UTC 2019 - Bernhard Wiedemann + +- Update to version 1.4.2: + * bug: Fix bug in zstd-0.5 decoder by @terrelln (#1696) + * bug: Fix seekable decompression in-memory API by @iburinoc (#1695) + * bug: Close minor memory leak in CLI by @LeeYoung624 (#1701) + * misc: Validate blocks are smaller than size limit by @vivekmig (#1685) + * misc: Restructure source files by @ephiepark (#1679) + +------------------------------------------------------------------- +Mon Jul 22 10:58:28 UTC 2019 - Martin Pluskal + +- Update to version 1.4.1: + * bug: Fix data corruption in niche use cases by @terrelln (#1659) + * bug: Fuzz legacy modes, fix uncovered bugs by @terrelln (#1593, #1594, #1595) + * bug: Fix out of bounds read by @terrelln (#1590) + * perf: Improve decode speed by ~7% @mgrice (#1668) + * perf: Slightly improved compression ratio of level 3 and 4 (ZSTD_dfast) by @cyan4973 (#1681) + * perf: Slightly faster compression speed when re-using a context by @cyan4973 (#1658) + * perf: Improve compression ratio for small windowLog by @cyan4973 (#1624) + * perf: Faster compression speed in high compression mode for repetitive data by @terrelln (#1635) + * api: Add parameter to generate smaller dictionaries by @tyler-tran (#1656) + * cli: Recognize symlinks when built in C99 mode by @felixhandte (#1640) + * cli: Expose cpu load indicator for each file on -vv mode by @ephiepark (#1631) + * cli: Restrict read permissions on destination files by @chungy (#1644) + * cli: zstdgrep: handle -f flag by @felixhandte (#1618) + * cli: zstdcat: follow symlinks by @vejnar (#1604) + * doc: Remove extra size limit on compressed blocks by @felixhandte (#1689) + * doc: Fix typo by @yk-tanigawa (#1633) + * doc: Improve documentation on streaming buffer sizes by @cyan4973 (#1629) + * build: CMake: support building with LZ4 @leeyoung624 (#1626) + * build: CMake: install zstdless and zstdgrep by @leeyoung624 (#1647) + * build: CMake: respect existing uninstall target by @j301scott (#1619) + * build: Make: skip multithread tests when built without support by @michaelforney (#1620) + * build: Make: Fix examples/ test target by @sjnam (#1603) + * build: Meson: rename options out of deprecated namespace by @lzutao (#1665) + * build: Meson: fix build by @lzutao (#1602) + * build: Visual Studio: don't export symbols in static lib by @scharan (#1650) + * build: Visual Studio: fix linking by @absotively (#1639) + * build: Fix MinGW-W64 build by @myzhang1029 (#1600) + * misc: Expand decodecorpus coverage by @ephiepark (#1664) + +------------------------------------------------------------------- +Thu Jul 11 08:17:23 UTC 2019 - Dominique Leuenberger + +- Add baselibs.conf: libarchive gained zstd support and provides + -32bit libraries. This means, zstd also needs to provide -32bit + libs. + +------------------------------------------------------------------- +Fri Jun 14 11:52:32 UTC 2019 - Ismail Dönmez + +- Remove googletest-devel BuildRequires and pzstd-global-gtest.patch + because we want zstd in ring0 (due to rpm's zstd payload support) + Since googletest is only used in build time (it's for testing after + all), this should be fine. + +------------------------------------------------------------------- +Sun Jun 2 10:11:25 UTC 2019 - Jan Engelhardt + +- Update description with 1.4.0 statistics. + +------------------------------------------------------------------- +Fri Apr 26 11:10:57 UTC 2019 - Martin Liška + +- Use FAT LTO objects in order to provide proper static library (boo#1133297). + +------------------------------------------------------------------- +Wed Apr 17 11:30:30 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 1.4.0 + * perf: level 1 compression speed was improved by ~6–8% + * cli: added --[no-]compress-literals flag to enable or disable + literal compression +- Reword "real-time" in description by some actual statistics, + because 603MB/s (lowest zstd level) is not "real-time" for + quite some applications. + +------------------------------------------------------------------- +Sat Jan 5 13:57:58 UTC 2019 - astieger@suse.com + +- zstd 1.3.8: + * better decompression speed on large files (+7%) and cold + dictionaries (+15%) + * slightly better compression ratio at high compression modes + * new --rsyncable mode + * support decompression of empty frames into NULL (used to be an + error) + * support ZSTD_CLEVEL environment variable + * --no-progress flag, preserving final summary + * various CLI fixes + * fix race condition in one-pass compression functions that could + allow out of bounds write (CVE-2019-11922, boo#1142941) + +------------------------------------------------------------------- +Wed Oct 24 08:29:38 UTC 2018 - astieger@suse.com + +- zstd 1.3.7: + * fix ratio for dictionary compression at levels 9 and 10 + * add man pages for zstdless and zstdgrep +- includes changes from zstd 1.3.6: + * faster dictionary builder, also the new default for --train + * previous (slower, slightly higher quality) dictionary builder + to be selected via --train-cover + * Faster dictionary decompression and compression under memory + limits with many dictionaries used simultaneously + * New command --adapt for compressed network piping of data + adjusted to the perceived network conditions +- drop zstd-1.3.5-fix-list-stdin.patch, upstream +- switch from git tag snaphshot to bootstrapped tarball + +------------------------------------------------------------------- +Tue Jul 3 08:13:06 UTC 2018 - astieger@suse.com + +- update to 1.3.5: + * much faster dictionary compression + * small quality improvement for dictionary generation + * slightly improved performance at high compression levels + * automatic memory release for long duration contexts + * fix overlapLog can be manually set + * fix decoding invalid lz4 frames + * fix performance degradation for dictionary compression when + using advanced API +- add zstd-1.3.5-fix-list-stdin.patch to avoid test issues with + --list when stdin is not a tty, patch from upstream +- disable failing pzstd tests + +------------------------------------------------------------------- +Thu Jun 14 11:56:45 UTC 2018 - sweet_f_a@gmx.de + +- fix pzstd tests +- add pzstd-global-gtest.patch + +------------------------------------------------------------------- +Thu Jun 14 08:11:32 UTC 2018 - sweet_f_a@gmx.de + +- enable pzstd (parallel zstd) +- add pzstd.1.patch, taken from Fedora package (git 21908004) + +------------------------------------------------------------------- +Thu May 24 14:36:12 CEST 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Wed Mar 28 15:04:25 UTC 2018 - idonmez@suse.com + +- Update to 1.3.4 + * perf: faster speed (especially decoding speed) on recent cpus + (haswell+) + * perf: much better performance associating --long with + multi-threading + * perf: better compression at levels 13-15 + * cli : asynchronous compression by default, for faster + experience (use --single-thread for former behavior) + * cli : smoother status report in multi-threading mode + * cli : added command --fast=#, for faster compression modes + * cli : fix crash when not overwriting existing files + * api : `nbThreads` becomes `nbWorkers` : 1 triggers + asynchronous mode + * api : compression levels can be negative, for even more speed + * api : ZSTD_getFrameProgression() : get precise progress + status of ZSTDMT anytime + * api : ZSTDMT can accept new compression parameters during + compression + * api : implemented all advanced dictionary decompression prototypes + +------------------------------------------------------------------- +Tue Feb 6 00:00:00 CET 2018 - dsterba@suse.cz + +- build the static library (depency for btrfsprogs-static) + +------------------------------------------------------------------- +Thu Dec 21 11:02:54 UTC 2017 - idonmez@suse.com + +- Update to 1.3.3 + * perf: improved zstd_opt strategy (levels 16-19) + * fix : bug #944 : multithreading with shared ditionary and + large data, reported by @gsliepen + * cli : fix : content size written in header by default + * cli : fix : improved LZ4 format support, by @felixhandte + * cli : new : hidden command -b -S, to benchmark multiple files + and generate one result per file + * api : change : when setting pledgedSrcSize, use + ZSTD_CONTENTSIZE_UNKNOWN macro value to mean "unknown" + * api : fix : support large skippable frames, by @terrelln + * api : fix : re-using context could result in suboptimal + block size in some corner case scenarios + * api : fix : streaming interface was adding a useless + 3-bytes null block to small frames + +------------------------------------------------------------------- +Sun Oct 29 15:52:37 UTC 2017 - astieger@suse.com + +- update to 1.3.2: + * new long range mode, using --long command + * new ability to generate and decode magicless frames + * changed maximum nb of threads reduced to 200, to avoid address + space exhaustion in 32-bits mode + * fix multi-threading compression works with custom allocators + * fix ZSTD_sizeof_CStream() was over-evaluating memory usage + * fix a rare compression bug when compression generates very large + distances and bunch of other conditions + (only possible at --ultra -22) + * fix 32-bits build can now decode large offsets (levels 21+) + * cli added LZ4 frame support by default + * cli improved --list output + * cli now can split input file for dictionary training, using + command -B# + * cli new clean operation artefact on Ctrl-C interruption + * do not change /dev/null permissions when using command -t with + root access + * cli fix write file size in header in multiple-files mode + * api: added macro ZSTD_COMPRESSBOUND() for static allocation + * api: new advanced decompression API + * api: sizeof_CCtx() used to over-estimate + * build: fix : no-multithread variant compiles without pool.c + dependency + * build: better compatibility with reproducible builds + * license: changed /examples license to BSD + GPLv2 + * license: fix a few header files to reflect new license + +------------------------------------------------------------------- +Mon Aug 21 13:34:50 UTC 2017 - idonmez@suse.com + +- Update to v1.3.1 + * License is now BSD + GPL-2.0 + * See https://github.com/facebook/zstd/releases for the + complete changelog. + +------------------------------------------------------------------- +Mon Mar 27 14:04:29 UTC 2017 - idonmez@suse.com + +- Update to v1.1.4 + See https://github.com/facebook/zstd/releases for details. +- Drop zstd-lib-no-rebuild.patch + +------------------------------------------------------------------- +Wed Dec 7 09:25:33 UTC 2016 - idonmez@suse.com + +- Fix group name for the shared library + +------------------------------------------------------------------- +Sun Dec 4 12:25:27 UTC 2016 - idonmez@suse.com + +- Update to version 1.1.1 + * New : cli commands -M#, --memory=, --memlimit=, + --memlimit-decompress= to limit allowed memory consumption + during decompression + * Improved : slightly better compression ratio at --ultra levels + * Improved : better memory usage when using streaming + compression API + * Added : API : ZSTD_initCStream_usingCDict(), + ZSTD_initDStream_usingDDict() (experimental section) + * Changed : zstd_errors.h is now installed within /include + (and replaces errors_public.h) + * Fixed : several sanitizer warnings + +------------------------------------------------------------------- +Sun Oct 16 17:55:02 UTC 2016 - jengelh@inai.de + +- Update descriptions + +------------------------------------------------------------------- +Wed Oct 5 09:03:14 UTC 2016 - bwiedemann@suse.com + +- initial package version 1.1.0 + based on https://pbrady.fedorapeople.org/zstd.spec + diff --git a/zstd.keyring b/zstd.keyring new file mode 100644 index 0000000..466af97 --- /dev/null +++ b/zstd.keyring @@ -0,0 +1,29 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGBHFsYDEADO1/NR1gJfA9qejrQB3Z/9hu2CXHU+dCmkXux+g7Q/r+UvFGzD +rV9PezC4cjftkKuQcfnnWZ57WbFnMnlmWiFVpLbO9cBV9D01/ld9XwmcVE917bBk +jhY5PkBfFPtH8q0V8In+VXobqDNEyQsh08vzGmuww1Basra2xMk+jwB6k2x1/rco +1olxVLVgJOU3O0Utrsj2gzj//f33r5iL9R0khMZRtN95uxMvAik8SqCdJCK69SdM +w1fSixDwMOaf1BMzEhRbe9nZ/b7M0cLatnyZnthopEqxM4UbIvdnG20Io+QjLRoc +8i+OkoZ6AOshVsDqyLYg4qqYu6+M9ur82S+yes/VXbjxZYCfNw7KvuRqeUFgQgEe +gv10sB7ZGvSeSFXxTnG0cY/t4ggqMi/OLr7uGHcxOPtjVYeUH1YKrAIHtuDGWK2g +vTGy4jhnOLmym9IM+3Deix3/aXYsuU2ijprf6LqmqYKcjpFrq8UchLV3pdWfggoI +fESpZboFl5dVva+SSZrKiUQ1D7CmCWHFYmMUrKhxiUPq5T3ksCyokCyJ2RDwG4ry +zhHUO7LU9SSOcYbApRzhrkO0WD4TU3kMokj123HHRmn6hPV08lgac4ZGpg9zZS/U +7vpNMvUA20o75YYp7nSvi68qDWLwoPucCzB905bT6W6MWsDnhPSk+v93hwARAQAB +tDBac3RhbmRhcmQgUmVsZWFzZSBTaWduaW5nIEtleSA8c2lnbmluZ0B6c3RkLm5l +dD6JAk4EEwMKADgWIQRO9KxjRV/J9FRdm33vj+mVKLUv/QUCYFAk/wIbAwULCQgH +AgYVCgkICwIEFgIDAQIeAQIXgAAKCRDvj+mVKLUv/Se8D/9jc3RuW7mh+kivqrbx +8goP6zCb+VFFwAdgAqXAZLlyEW+D5DJqsmBdfk0yz8l67IehfxkLKJDu0sinsPwc +BZfo7EnPIsaHLCHwe/DKNW7UaosL2uW/cbYPgLW8LPol+6ggGIOi9bg/NOHf5ty9 ++lSGK06+97PpRx9WG7pBzZBWwFkJ7oLd/EZRXs++HzSnMS4tWwb9exSnx4HufNcH +GC2UR1MPjMbw+qq0E6+2N5XwAkfIT7wzRdCjBFhP3knMbBN/cdxanRtgrBzJCVmh +Xhu5ABVK+ncBi/bPPK8CSDBXNFQ48RJya6SrSfpl2QdPwd81B04V6Gw4MLEqwWxR +IN3zCPLMvICK/e0EFWcFV/9gopExNhz+b422BHqsDV95pvaGU4Vmlgcuq4O0Mflw +L+KjMXZgCtQlYLL7dUUuBq1KodqdYuPqD7JikclV6h7D6Edy7UDdrroBfs8zw5NN +Qhxj7FpgU6tpk/jjk109LlpPaGH/n+MWWdapjOJNt1Y01BYFMvCTp4MgLj/7CvRE +7bvu3GhUy89f6ldmudSwWXYDoCWCD4+aesKRSBf/E7OZZ5Aev4PePb40FDx4rmNP +9KAFCSDxvw2wbyI393uvsa59p1Zf3HaP/lJ2hoTH3k5Cz9oMXKb3C6PBorjQLJGO +f/s+ku7ahtXMGAWcMN6Dhl+aMQ== +=5w/O +-----END PGP PUBLIC KEY BLOCK----- diff --git a/zstd.spec b/zstd.spec new file mode 100644 index 0000000..308b3b8 --- /dev/null +++ b/zstd.spec @@ -0,0 +1,175 @@ +# +# spec file for package zstd +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define libname libzstd1 +%if 0%{?suse_version} <= 1500 +%define with_gzip 0 +%else +%define with_gzip 1 +%endif +Name: zstd +Version: 1.5.7 +Release: 0 +Summary: Zstandard compression tools +License: BSD-3-Clause AND GPL-2.0-only +Group: Productivity/Archiving/Compression +URL: https://github.com/facebook/zstd +Source0: https://github.com/facebook/zstd/releases/download/v%{version}/%{name}-%{version}.tar.gz +Source1: https://github.com/facebook/zstd/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig +Source2: zstd.keyring +Source99: baselibs.conf +Patch1: pzstd.1.patch +BuildRequires: gcc +# C++ is needed for pzstd only +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +# for .gz support +BuildRequires: pkgconfig(zlib) +%{?suse_build_hwcaps_libs} + +%description +Zstd, short for Zstandard, is a lossless compression algorithm. Speed +vs. compression trade-off is configurable in small increments. +Decompression speed is preserved and remains roughly the same at all +settings, a property shared by most LZ compression algorithms, such +as zlib or lzma. + +At roughly the same ratio, zstd (v1.4.0) achieves ~870%% faster +compression than gzip. For roughly the same time, zstd achives a +~12%% better ratio than gzip. LZMA outperforms zstd by ~10%% faster +compression for same ratio, or ~1–4%% size reduction for same time. + +%package -n %{libname} +Summary: Zstd compression library +Group: System/Libraries + +%description -n %{libname} +Zstd, short for Zstandard, is a lossless compression algorithm, +targeting faster compression than zlib at comparable ratios. + +This subpackage contains the implementation as a shared library. + +%package -n lib%{name}-devel +Summary: Development files for the Zstd compression library +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Requires: glibc-devel + +%description -n lib%{name}-devel +Zstd, short for Zstandard, is a lossless compression algorithm, +targeting faster compression than zlib at comparable ratios. + +Needed for compiling programs that link with the library. + +%package -n lib%{name}-devel-static +Summary: Development files for the Zstd compression library +Group: Development/Libraries/C and C++ +BuildRequires: glibc-devel-static +Requires: lib%{name}-devel = %{version} + +%description -n lib%{name}-devel-static +Zstd, short for Zstandard, is a lossless compression algorithm, +targeting faster compression than zlib at comparable ratios. + +Needed for compiling programs that link with the library. + +%if %{with_gzip} +%package gzip +Summary: zstd and zlib based gzip drop-in +Group: Productivity/Archiving/Compression +Requires: %{name} >= %{version} +Conflicts: busybox-gzip +Conflicts: gzip +Conflicts: alternative(gzip) +Provides: gzip +Provides: alternative(gzip) + +%description gzip +Zstd, short for Zstandard, is a lossless compression algorithm, +targeting faster compression than zlib at comparable ratios. + +This subpackage provides a compatible alternative to gzip(1) using +an optimized deflate/zlib handling. +%endif + +%prep +%autosetup -p1 + +%build +%global _lto_cflags %{_lto_cflags} -ffat-lto-objects +export CFLAGS="%{optflags}" +export CXXFLAGS="%{optflags} -std=c++11" +# lib-mt is alias for multi-threaded library support +%make_build HAVE_ZLIB=1 prefix=%{_prefix} libdir=%{_libdir} -C lib lib-mt +for dir in programs contrib/pzstd; do + %make_build -C "$dir" +done + +%check +export CFLAGS="%{optflags}" +export CXXFLAGS="%{optflags} -std=c++11" +%make_build -C tests test-zstd +#make_build -C contrib/pzstd test-pzstd + +%install +%make_install V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir} +install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd +install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1 +%if %{with_gzip} +ln -s zstd %{buildroot}/%{_bindir}/gzip +ln -s zstd %{buildroot}/%{_bindir}/gunzip +ln -s zstdcat %{buildroot}/%{_bindir}/zcat +%endif + +%ldconfig_scriptlets -n %{libname} + +%files +%license COPYING LICENSE +%doc README.md CHANGELOG +%{_bindir}/pzstd +%{_bindir}/unzstd +%{_bindir}/zstd +%{_bindir}/zstdcat +%{_bindir}/zstdgrep +%{_bindir}/zstdless +%{_bindir}/zstdmt +%{_mandir}/man1/*.1%{?ext_man} + +%files -n %{libname} +%license COPYING LICENSE +%{_libdir}/libzstd.so.1* + +%files -n lib%{name}-devel +%license COPYING LICENSE +%{_includedir}/*.h +%{_libdir}/pkgconfig/libzstd.pc +%{_libdir}/libzstd.so + +%files -n lib%{name}-devel-static +%license COPYING LICENSE +%{_libdir}/libzstd.a + +%if %{with_gzip} +%files gzip +%license COPYING LICENSE +%{_bindir}/gzip +%{_bindir}/gunzip +%{_bindir}/zcat +%endif + +%changelog From 70acebaad73d0ff1a15a94a53b0e2e954e0676e81bdb2c5b74e34580bee30ad0 Mon Sep 17 00:00:00 2001 From: Bernhard Wiedemann Date: Thu, 20 Feb 2025 03:11:55 +0000 Subject: [PATCH 2/2] Drop pzstd.1.patch - not upstream, but also not needed OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=103 --- pzstd.1.patch | 17 ----------------- zstd.changes | 1 + zstd.spec | 1 - 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 pzstd.1.patch diff --git a/pzstd.1.patch b/pzstd.1.patch deleted file mode 100644 index b80716c..0000000 --- a/pzstd.1.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: zstd-1.5.6/programs/zstd.1 -=================================================================== ---- zstd-1.5.6.orig/programs/zstd.1 -+++ zstd-1.5.6/programs/zstd.1 -@@ -258,6 +258,12 @@ do not store the original filename and t - \fB\-\-best\fR - alias to the option \fB\-9\fR\. - . -+.SS Parallel Zstd OPTIONS -+Additional options for the pzstd utility -+.TP -+\fB\-p\fR, \fB\-\-processes\fR -+ number of threads to use for (de)compression (default:4) -+. - .SS "Environment Variables" - Employing environment variables to set parameters has security implications\. Therefore, this avenue is intentionally limited\. Only \fBZSTD_CLEVEL\fR and \fBZSTD_NBTHREADS\fR are currently supported\. They set the default compression level and number of threads to use during compression, respectively\. - . diff --git a/zstd.changes b/zstd.changes index ee8eeef..3111f2e 100644 --- a/zstd.changes +++ b/zstd.changes @@ -6,6 +6,7 @@ Thu Feb 20 02:56:07 UTC 2025 - Bernhard Wiedemann * Fix a rare bug in 32-bit mode * Enhanced Compression Speed for Small Data Blocks * Substantial --patch-from performance improvements +- Drop pzstd.1.patch - not upstream, but also not needed ------------------------------------------------------------------- Thu Mar 28 15:56:09 UTC 2024 - Andreas Stieger diff --git a/zstd.spec b/zstd.spec index 308b3b8..925b0b5 100644 --- a/zstd.spec +++ b/zstd.spec @@ -33,7 +33,6 @@ Source0: https://github.com/facebook/zstd/releases/download/v%{version}/% Source1: https://github.com/facebook/zstd/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig Source2: zstd.keyring Source99: baselibs.conf -Patch1: pzstd.1.patch BuildRequires: gcc # C++ is needed for pzstd only BuildRequires: gcc-c++