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

OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=52
This commit is contained in:
Bernhard M. Wiedemann 2020-12-17 04:11:04 +00:00 committed by Git OBS Bridge
parent c619345525
commit fc113dd140
6 changed files with 27 additions and 49 deletions

View File

@ -1,37 +0,0 @@
From 39a32f40c91c306898d771962aab5bd22235554f Mon Sep 17 00:00:00 2001
From: Yann Collet <cyan@fb.com>
Date: Mon, 25 May 2020 06:50:45 -0700
Subject: [PATCH] fixed default rule for lib/Makefile
default rule is `lib-release`
`lib-release` wasn't working : it was just skipped.
Removing `lib-release` from the list of .PHONY targets fixes it.
Same for `lib-mt`.
---
lib/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
index e6213ac86..c4305d6f8 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -220,13 +220,14 @@ libzstd : $(LIBZSTD)
.PHONY: lib
lib : libzstd.a libzstd
-.PHONY: lib-mt
+# note : do not define lib-mt or lib-release as .PHONY
+# make does not consider implicit pattern rule for .PHONY target
+
%-mt : CPPFLAGS += -DZSTD_MULTITHREAD
%-mt : LDFLAGS += -pthread
%-mt : %
@echo multi-threading build completed
-.PHONY: lib-release
%-release : DEBUGFLAGS :=
%-release : %
@echo release build completed

View File

@ -1,10 +1,10 @@
Index: zstd-1.4.4/programs/zstd.1
Index: zstd-1.4.7/programs/zstd.1
===================================================================
--- zstd-1.4.4.orig/programs/zstd.1
+++ zstd-1.4.4/programs/zstd.1
@@ -213,6 +213,12 @@ All arguments after \fB\-\-\fR are treat
.SS "Restricted usage of Environment Variables"
Using environment variables to set parameters has security implications\. Therefore, this avenue is intentionally restricted\. Only \fBZSTD_CLEVEL\fR is supported currently, for setting compression level\. \fBZSTD_CLEVEL\fR can be used to set the level between 1 and 19 (the "normal" range)\. If the value of \fBZSTD_CLEVEL\fR is not a valid integer, it will be ignored with a warning message\. \fBZSTD_CLEVEL\fR just replaces the default compression level (\fB3\fR)\. It can be overridden by corresponding command line arguments\.
--- zstd-1.4.7.orig/programs/zstd.1
+++ zstd-1.4.7/programs/zstd.1
@@ -223,6 +223,12 @@ Using environment variables to set param
.P
They can both be overridden by corresponding command line arguments: \fB\-#\fR for compression level and \fB\-T#\fR for number of compression threads\.
.
+.SH Parallel Zstd OPTIONS
+Additional options for the pzstd utility

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:734d1f565c42f691f8420c8d06783ad818060fc390dee43ae0a89f86d0a4f8c2
size 1987927

3
zstd-1.4.7.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:085500c8d0b9c83afbc1dc0d8b4889336ad019eba930c5d6a9c6c86c20c769c8
size 1817193

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Dec 17 04:04:42 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>
- 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 <mliska@suse.cz>

View File

@ -19,7 +19,7 @@
%define major 1
%define libname lib%{name}%{major}
Name: zstd
Version: %{major}.4.5
Version: %{major}.4.7
Release: 0
Summary: Zstandard compression tools
License: BSD-3-Clause AND GPL-2.0-only
@ -28,7 +28,6 @@ URL: https://github.com/facebook/zstd
Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf
Patch1: pzstd.1.patch
Patch2: fix-lib-build.patch
BuildRequires: gcc
# C++ is needed for pzstd only
BuildRequires: gcc-c++
@ -85,7 +84,6 @@ Needed for compiling programs that link with the library.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects