pkgsrc/archivers
adam 9377cb41da py-zstandard: updated to 0.15.1
0.15.1:

Bug Fixes

setup.py no longer attempts to build the C backend on PyPy.
<sys/types.h> is now included before <sys/sysctl.h>. This was
the case in releases prior to 0.15.0 and the include order was reversed
as part of running clang-format. The old/working order has been
restored.
Include some private zstd C headers so we can build the C extension against
a system library. The previous behavior of referencing these headers is
restored. That behave is rather questionable and undermines the desire to
use the system zstd.


0.15.0:

Backwards Compatibility Notes

Support for Python 2.7 has been dropped. Python 3.5 is now the
minimum required Python version.
train_dictionary() now uses the fastcover training mechanism
(as opposed to cover). Some parameter values that worked with the old
mechanism may not work with the new one. e.g. d must be 6 or 8
if it is defined.
train_dictionary() now always calls
ZDICT_optimizeTrainFromBuffer_fastCover() instead of different APIs
depending on which arguments were passed.
The names of various Python modules have been changed. The C extension
is now built as zstandard.backend_c instead of zstd. The
CFFI extension module is now built as zstandard._cffi instead of
_zstd_cffi. The CFFI backend is now zstandard.backend_cffi instead
of zstandard.cffi.
ZstdDecompressionReader.seekable() now returns False instead of
True because not all seek operations are supported and some Python
code in the wild keys off this value to determine if seek() can be
called for all scenarios.
ZstdDecompressionReader.seek() now raises OSError instead of
ValueError when the seek cannot be fulfilled.
ZstdDecompressionReader.readline() and
ZstdDecompressionReader.readlines() now accept an integer argument.
This makes them conform with the IO interface. The methods still raise
io.UnsupportedOperation.
ZstdCompressionReader.__enter__ and ZstdDecompressionReader.__enter__
now raise ValueError if the instance was already closed.
The deprecated overlap_size_log attribute on ZstdCompressionParameters
instances has been removed. The overlap_log attribute should be used
instead.
The deprecated overlap_size_log argument to ZstdCompressionParameters
has been removed. The overlap_log argument should be used instead.
The deprecated ldm_hash_every_log attribute on
ZstdCompressionParameters instances has been removed. The
ldm_hash_rate_log attribute should be used instead.
The deprecated ldm_hash_every_log argument to
ZstdCompressionParameters has been removed. The ldm_hash_rate_log
argument should be used instead.
The deprecated CompressionParameters type alias to
ZstdCompressionParamaters has been removed. Use
ZstdCompressionParameters.
The deprecated aliases ZstdCompressor.read_from() and
ZstdDecompressor.read_from() have been removed. Use the corresponding
read_to_iter() methods instead.
The deprecated aliases ZstdCompressor.write_to() and
ZstdDecompressor.write_to() have been removed. Use the corresponding
stream_writer() methods instead.
ZstdCompressor.copy_stream(), ZstdCompressorIterator.__next__(),
and ZstdDecompressor.copy_stream() now raise the original exception
on error calling the source stream's read() instead of raising
ZstdError. This only affects the C backend.
ZstdDecompressionObj.flush() now returns bytes instead of
None. This makes it behave more similarly to flush() methods
for similar types in the Python standard library.
ZstdCompressionWriter.__exit__() now always calls close().
Previously, close() would not be called if the context manager
raised an exception. The old behavior was inconsistent with other
stream types in this package and with the behavior of Python's
standard library IO types.
Distribution metadata no longer lists cffi as an install_requires
except when running on PyPy. Instead, cffi is listed as an
extras_require.
ZstdCompressor.stream_reader() and ZstdDecompressor.stream_reader()
now default to closing the source stream when the instance is itself
closed. To change this behavior, pass closefd=False.
The CFFI backend now defines
ZstdCompressor.multi_compress_to_buffer() and
ZstdDecompressor.multi_decompress_to_buffer(). However, they
raise NotImplementedError, as they are not yet implemented.
The CFFI backend now exposes the types ZstdCompressionChunker,
ZstdCompressionObj, ZstdCompressionReader,
ZstdCompressionWriter, ZstdDecompressionObj,
ZstdDecompressionReader, and ZstdDecompressionWriter as
symbols on the zstandard module.
The CFFI backend now exposes the types BufferSegment,
BufferSegments, BufferWithSegments, and
BufferWithSegmentsCollection. However, they are not implemented.
ZstdCompressionWriter.flush() now calls flush() on the inner stream
if such a method exists. However, when close() itself calls
self.flush(), flush() is not called on the inner stream.
ZstdDecompressionWriter.close() no longer calls flush() on
the inner stream. However, ZstdDecompressionWriter.flush() still
calls flush() on the inner stream.
ZstdCompressor.stream_writer() and ZstdDecompressor.stream_writer()
now have their write_return_read argument default to True.
This brings the behavior of write() in compliance with the
io.RawIOBase interface by default. The argument may be removed
in a future release.
ZstdCompressionParameters no longer exposes a compression_strategy
property. Its constructor no longer accepts a compression_strategy
argument. Use the strategy property/argument instead.

Bug Fixes

Fix a memory leak in stream_reader decompressor when reader is closed
before reading everything. (Patch by Pierre Fersing.)
The C backend now properly checks for errors after calling IO methods
on inner streams in various methods. ZstdCompressionWriter.write()
now catches exceptions when calling the inner stream's write().
ZstdCompressionWriter.flush() on inner stream's write().
ZstdCompressor.copy_stream() on dest stream's write().
ZstdDecompressionWriter.write() on inner stream's write().
ZstdDecompressor.copy_stream() on dest stream's write().

Changes

Bundled zstandard library upgraded from 1.4.5 to 1.4.8.
The bundled zstandard library is now using the single C source file
distribution. The 2 main header files are still present, as these are
needed by CFFI to generate the CFFI bindings.
PyBuffer instances are no longer checked to be C contiguous and
have a single dimension. The former was redundant with what
PyArg_ParseTuple() already did and the latter is not necessary
in practice because very few extension modules create buffers with
more than 1 dimension.
Added Python typing stub file for the zstandard module.
The make_cffi.py script should now respect the CC environment
variable for locating the compiler.
CI now properly uses the cffi backend when running all tests.
train_dictionary() has been rewritten to use the fastcover APIs
and to consistently call ZDICT_optimizeTrainFromBuffer_fastCover()
instead of different C APIs depending on what arguments were passed.
The function also now accepts arguments f, split_point, and
accel, which are parameters unique to fastcover.
CI now tests and builds wheels for Python 3.9.
zstd.c file renamed to c-ext/backend_c.c.
All built/installed Python modules are now in the zstandard
package. Previously, there were modules in other packages.
C source code is now automatically formatted with clang-format.
ZstdCompressor.stream_writer(), ZstdCompressor.stream_reader(),
ZstdDecompressor.stream_writer(), and
ZstdDecompressor.stream_reader() now accept a closefd
argument to control whether the underlying stream should be closed
when the ZstdCompressionWriter, ZstdCompressReader,
ZstdDecompressionWriter, or ZstdDecompressionReader is closed.
There is now a zstandard.open() function for returning a file
object with zstd (de)compression.
The zstandard module now exposes a backend_features
attribute containing a set of strings denoting optional features
present in that backend. This can be used to sniff feature support
by performing a string lookup instead of sniffing for API presence
or behavior.
Python docstrings have been moved from the C backend to the CFFI
backend. Sphinx docs have been updated to generate API documentation
via the CFFI backend. Documentation for Python APIs is now fully
defined via Python docstrings instead of spread across Sphinx ReST
files and source code.
ZstdCompressionParameters now exposes a strategy property.
There are now compress() and decompress() convenience functions
on the zstandard module. These are simply wrappers around the
corresponding APIs on ZstdCompressor and ZstdDecompressor.
2021-01-03 14:57:53 +00:00
..
9e update master sites 2020-12-03 13:04:11 +00:00
advancecomp advancecomp: Avoid compiler warnings due to redefining bswap* on NetBSD. 2019-10-04 18:08:07 +00:00
afio afio: Update to 2.5.2 2020-11-25 14:59:24 +00:00
arc
archangel
arj all: migrate some SourceForge homepage URLs back from https to http 2020-01-26 05:26:08 +00:00
ark *: Recursive revbump from audio/pulseaudio-14.0 2021-01-01 09:52:09 +00:00
arqiver *: Recursive revbump from textproc/icu-68.1 2020-11-05 09:06:42 +00:00
atool *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
bicom
bmap-tools Revbump packages with a runtime Python dep but no version prefix. 2020-12-04 20:44:57 +00:00
brotli brotli: update to 1.0.9. 2020-08-31 08:45:44 +00:00
bsdtar archivers/bsdtar: avoid circular dependency with PKG_DEVELOPER checks 2020-03-12 20:50:30 +00:00
bunzip
bzip2 archivers: align variable assignments 2019-11-02 22:54:25 +00:00
cabextract cabextract: update to 1.9.1. 2019-03-25 22:47:02 +00:00
dact all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
dar dar: Do not overwrite BUILDLINK_TRANSFORM 2020-03-23 11:50:22 +00:00
engrampa engrampa: More _XOPEN_SOURCE fixes. 2020-09-25 09:02:58 +00:00
fastjar mark perl as not needed 2020-05-10 13:54:19 +00:00
fcrackzip
file-roller file-roller: add missing tool depends (fix sandboxed builds) 2020-11-12 01:20:02 +00:00
freeze all: replace SUBST_SED with the simpler SUBST_VARS 2019-05-23 19:22:54 +00:00
gcpio gcpio: fix packaging failure 2020-02-21 16:21:34 +00:00
gnome-autoar archivers: add gnome-autoar. based on work by Dan Cîrnaț in wip. 2020-11-04 12:27:58 +00:00
go-xz Revbump all Go packages after go115 update 2020-11-13 19:26:03 +00:00
gsharutils all: migrate several HOMEPAGEs to https 2020-01-18 23:29:55 +00:00
gtar all: migrate several HOMEPAGEs to https 2020-01-18 23:29:55 +00:00
gtar-base gtar: fix build on SunOS 2019-05-02 20:27:42 +00:00
gtar-info
gzip all: migrate several HOMEPAGEs to https 2020-01-18 23:29:55 +00:00
gzrecover all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
ha
heirloom-tar
hpack hpack: use -std=gnu89 for older GNU inline semantics. 2019-08-05 19:21:12 +00:00
hs-tar hs-*: add PLIST files 2020-05-11 17:51:58 +00:00
hs-zip-archive hs-*: add PLIST files 2020-05-11 17:51:58 +00:00
hs-zlib hs-*: add PLIST files 2020-05-11 17:51:58 +00:00
innoextract *: Recursive revbump from boost-1.75.0 2021-01-01 08:24:33 +00:00
jamjar
karchive *: Recursive revbump from textproc/icu-68.1 2020-11-05 09:06:42 +00:00
lbrate
lcab
lha archivers/lha: upstream has accepted last remaining patch. 2020-12-19 18:02:03 +00:00
lhasa lhasa: avoid SIGSEGV on decoding 8bit char filenames on NetBSD/amd64. 2020-11-16 15:48:43 +00:00
libaec archivers/libaec: import libaec-1.0.4 2019-04-29 15:51:23 +00:00
libarchive Disable lz4, unbreaking bsdtar build on OmniOS. 2020-07-03 19:57:23 +00:00
libcomprex revbump after updating security/nettle 2020-05-22 10:55:42 +00:00
liblzo all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
libmspack Update libmspack to 0.10.1alpha 2019-08-05 13:39:24 +00:00
libunrar archivers: align variable assignments 2019-11-02 22:54:25 +00:00
libzip *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
lrzip lrzip: Update MAINTAINERship to tm@NetBSD.org email address 2018-12-11 08:45:30 +00:00
lua-zlib lua-zlib: Do not build with -bundle on macOS 2020-12-19 09:17:45 +00:00
lxqt-archiver archivers/lxqt-archiver: update to 0.3.0 2020-12-07 11:59:16 +00:00
lz4 lz4: updated to 1.9.3 2020-11-19 10:36:57 +00:00
lz4json
lzip all: migrate several HOMEPAGEs to https 2020-01-18 23:29:55 +00:00
lziprecover all: migrate several HOMEPAGEs to https 2020-01-18 23:29:55 +00:00
lzma all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
lzmalib all: migrate some SourceForge homepage URLs back from https to http 2020-01-26 05:26:08 +00:00
lzo all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
lzop all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
macutil
makeself Update makeself to 2.4.0. 2019-01-18 22:08:16 +00:00
minizip minizip: Re-enable using fopen64 on Linux only 2020-04-01 10:46:24 +00:00
mousetar
mscompress
nomarch
nulib2 archivers: align variable assignments 2019-11-02 22:54:25 +00:00
ocaml-bz2 archivers: align variable assignments 2019-11-02 22:54:25 +00:00
ocaml-decompress archivers: align variable assignments 2019-11-02 22:54:25 +00:00
ocaml-zip archivers: align variable assignments 2019-11-02 22:54:25 +00:00
p5-Archive-Any *: remove dependency on p5-Archive-Tar, which is part of perl 2020-09-04 10:13:40 +00:00
p5-Archive-Any-Lite *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
p5-Archive-Extract *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
p5-Archive-Peek *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
p5-Archive-Tar-Wrapper p5-Archive-Tar-Wrapper: update to 0.38. 2020-09-20 07:04:49 +00:00
p5-Archive-Zip p5-Archive-Zip: update to 1.68. 2020-09-06 12:12:14 +00:00
p5-Compress-Bzip2 p5-Compress-Bzip2: update to 2.28. 2020-09-06 19:21:38 +00:00
p5-Compress-LZMA-Simple *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
p7zip all: migrate some SourceForge homepage URLs back from https to http 2020-01-26 05:26:08 +00:00
par2 par2: update Github repo 2020-05-04 18:41:22 +00:00
pax all: migrate several HOMEPAGEs to https 2020-01-18 23:29:55 +00:00
pbzip2 Mark packages that require C++03 (or the GNU variants) if they fail with 2018-07-18 00:06:10 +00:00
pdbar
php-bz2
php-pecl-zip archivers/php-pecl-zip: update to 1.19.2 2021-01-03 07:26:53 +00:00
php-zip revbump after updating security/nettle 2020-05-22 10:55:42 +00:00
php-zlib *: Recursive revision bump for openssl 1.1.1. 2020-01-18 21:48:19 +00:00
pigz all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
ppmd all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
ppunpack
py-brotli py-brotli: Import py-brotli-1.0.7 as archivers/py-brotli 2019-12-17 10:15:37 +00:00
py-brotlipy
py-bz2file py-bz2file: added version 0.98 2019-01-09 10:28:19 +00:00
py-czipfile archivers: align variable assignments 2019-11-02 22:54:25 +00:00
py-lhafile
py-libarchive-c py-libarchive-c: updated to 2.9 2019-12-11 13:46:46 +00:00
py-lz4 py-lz4: updated to 3.1.1 2020-11-19 10:37:24 +00:00
py-rarfile py-rarfile: updated to 3.3 2020-07-29 12:10:46 +00:00
py-yuicompressor
py-zipp py-zipp: updated to 3.4.0 2020-11-30 20:18:06 +00:00
py-zipp1 py-zipp1: let it build for Python 3.x 2020-03-12 15:20:36 +00:00
py-zipstream py-zipstream: Add version 1.1.4 2019-11-03 01:06:10 +00:00
py-zstandard py-zstandard: updated to 0.15.1 2021-01-03 14:57:53 +00:00
quazip *: Recursive revbump from textproc/icu-68.1 2020-11-05 09:06:42 +00:00
R-zip (archivers/R-zip) Updated 2.0.4 to 2.1.1 2020-12-21 11:09:11 +00:00
rar
rox-archive Revbump packages with a runtime Python dep but no version prefix. 2020-12-04 20:44:57 +00:00
ruby-archive-tar-minitar archivers/ruby-archive-tar-minitar: update to 0.8 2019-10-22 07:33:37 +00:00
ruby-bz2
ruby-ffi-libarchive archivers/ruby-ffi-libarchive: update to 1.0.4 2020-09-13 14:58:20 +00:00
ruby-libarchive
ruby-minitar archivers/ruby-minitar: update to 0.9 2019-10-22 07:29:24 +00:00
ruby-minitar-cli archivers/ruby-minitar-cli: update to 0.8 2019-10-22 07:30:39 +00:00
ruby-mixlib-archive archivers/ruby-mixlib-archive: update to 1.0.7 2020-09-13 15:01:40 +00:00
ruby-xz archivers/ruby-xz: remove redundant SUBST block 2020-04-25 19:56:49 +00:00
ruby-zip archivers/ruby-zip: update to 2.3.0 2020-03-15 15:52:07 +00:00
rzip all: migrate homepages from http to https 2020-01-26 17:30:40 +00:00
sarab all: migrate some SourceForge homepage URLs back from https to http 2020-01-26 05:26:08 +00:00
squsq
star star: Update to 1.6.1nb12 2020-11-25 15:40:16 +00:00
szip szip: fix typo 2020-03-01 03:01:19 +00:00
torrentzip torrentzip: update to 1.0.6. 2020-10-05 15:21:07 +00:00
unace archivers: align variable assignments 2019-11-02 22:54:25 +00:00
unace-bin archivers: align variable assignments 2019-11-02 22:54:25 +00:00
unalz
unarj archivers: align variable assignments 2019-11-02 22:54:25 +00:00
undms
unlzx
unrar unrar: updated to 5.9.4 2020-07-01 07:54:38 +00:00
unshield *: Recursive revision bump for openssl 1.1.1. 2020-01-18 21:48:19 +00:00
unzip unzip: Apply a patch from CVE-2018-18384 2019-07-15 14:08:03 +00:00
unzoo archivers/unzoo: fix out-of-bounds read when matching non-ASCII 2020-03-26 22:29:47 +00:00
upx *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
xbin archivers: align variable assignments 2019-11-02 22:54:25 +00:00
xfce4-thunar-archive *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
xmill
xpk
xz xz: updated to 5.2.5 2020-05-03 10:10:43 +00:00
zip
zoo
zopfli (archivers/zopfli) Updated 1.0.1 to 1.0.3, ChangeLog not easily found 2020-02-29 15:56:39 +00:00
zstd zstd: updated to 1.4.8 2021-01-03 14:55:50 +00:00
zutils (archivers/zutils) Updated 1.6 to 1.8 2020-02-29 16:19:50 +00:00
zziplib zziplib: update to 0.13.71. 2020-11-25 13:26:21 +00:00
Makefile archivers: Resurrect file-roller package based on the new GNOME 3 version 2020-11-04 13:02:52 +00:00