This commit is contained in:
Alexander Stefanov 2020-12-23 09:38:59 +00:00
parent 199c832811
commit c060cfe659
4 changed files with 2 additions and 29 deletions

View file

@ -1,2 +1,2 @@
sources:
zstd-1.4.5.tar.gz: 9c344c2660c990b6d6a9cced73db3a0dfe2b0092
zstd-1.4.8.tar.gz: e3027d788b964429c773fab05e000061dc6eb3f6

View file

@ -1,13 +0,0 @@
diff --git a/programs/util.c b/programs/util.c
index ab1abd3..30c9237 100644
--- a/programs/util.c
+++ b/programs/util.c
@@ -28,7 +28,7 @@ extern "C" {
# include <io.h> /* _chmod */
#else
# include <unistd.h> /* chown, stat */
-# if PLATFORM_POSIX_VERSION < 200809L
+# if PLATFORM_POSIX_VERSION < 200809L || !defined(st_mtime)
# include <utime.h> /* utime */
# else
# include <fcntl.h> /* AT_FDCWD */

View file

@ -1,12 +0,0 @@
diff -Naur zstd-1.4.5/programs/zstdcli.c zstd-1.4.5.tpg/programs/zstdcli.c
--- zstd-1.4.5/programs/zstdcli.c 2020-05-22 05:04:00.000000000 +0000
+++ zstd-1.4.5.tpg/programs/zstdcli.c 2020-05-22 08:33:46.031001998 +0000
@@ -695,7 +695,7 @@
if ((filenames==NULL) || (file_of_names==NULL)) { DISPLAY("zstd: allocation error \n"); exit(1); }
programName = lastNameFromPath(programName);
#ifdef ZSTD_MULTITHREAD
- nbWorkers = 1;
+ nbWorkers = 0;
#endif
/* preset behaviors */

View file

@ -9,14 +9,12 @@
Summary: Zstd compression library
Name: zstd
Version: 1.4.5
Version: 1.4.8
Release: 1
License: BSD and GPLv2+
Group: Archiving/Compression
Url: http://www.zstd.net/
Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: zstd-1.3.4-multi-thread-default.patch
Patch1: define-mtime-e2k.patch
Patch2: dont-vectorize-like-a-clang-e2k.patch
BuildRequires: gtest-devel
BuildRequires: pkgconfig(liblz4)