Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package zstd for openSUSE:Factory checked in at 2022-01-07 12:45:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/zstd (Old) and /work/SRC/openSUSE:Factory/.zstd.new.1896 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "zstd" Fri Jan 7 12:45:07 2022 rev:27 rq:944059 version:1.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/zstd/zstd.changes 2022-01-05 11:27:52.558990170 +0100 +++ /work/SRC/openSUSE:Factory/.zstd.new.1896/zstd.changes 2022-01-07 12:45:49.587822343 +0100 @@ -1,0 +2,31 @@ +Wed Jan 5 13:12:22 UTC 2022 - Dirk M??ller <[email protected]> + +- add noexecstack.patch (bsc#1194337) + +------------------------------------------------------------------- +Mon Jan 3 09:18:49 UTC 2022 - Dirk M??ller <[email protected]> + +- fix pkgconfig pc file settings by passing in right prefix during build + +------------------------------------------------------------------- +Mon Dec 27 14:59:02 UTC 2021 - Dirk M??ller <[email protected]> + +- 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`) + +------------------------------------------------------------------- Old: ---- zstd-1.5.0.tar.gz zstd-1.5.0.tar.gz.sig New: ---- noexecstack.patch zstd-1.5.1.tar.gz zstd-1.5.1.tar.gz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ zstd.spec ++++++ --- /var/tmp/diff_new_pack.r8bJ3L/_old 2022-01-07 12:45:50.119822712 +0100 +++ /var/tmp/diff_new_pack.r8bJ3L/_new 2022-01-07 12:45:50.123822715 +0100 @@ -1,7 +1,7 @@ # # spec file for package zstd # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define major 1 %define libname lib%{name}%{major} Name: zstd -Version: %{major}.5.0 +Version: %{major}.5.1 Release: 0 Summary: Zstandard compression tools License: BSD-3-Clause AND GPL-2.0-only @@ -30,6 +30,8 @@ Source2: zstd.keyring Source99: baselibs.conf Patch1: pzstd.1.patch +# Cherry-pick from https://github.com/facebook/zstd/pull/2964 +Patch2: https://github.com/facebook/zstd/commit/9a9d1ec6f4536ffeb745f360ef010cefd125bfd0.patch#/noexecstack.patch BuildRequires: gcc # C++ is needed for pzstd only BuildRequires: gcc-c++ @@ -47,8 +49,9 @@ ~12%% better ratio than gzip. LZMA outperforms zstd by ~10%% faster compression for same ratio, or ~1???4%% size reduction for same time. -# This compression summary is based on https://lists.opensuse.org/opensuse-factory/2019-05/msg00344.html + +# This compression summary is based on https://lists.opensuse.org/opensuse-factory/2019-05/msg00344.html %package -n %{libname} Summary: Zstd compression library Group: System/Libraries @@ -89,9 +92,9 @@ %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects export CFLAGS="%{optflags}" -export CXXFLAGS="%{optflags} -std=c++11" +export CXXFLAGS="$CFLAGS -std=c++11" # lib-mt is alias for multi-threaded library support -%make_build -C lib lib-mt +%make_build prefix=%{_prefix} libdir=%{_libdir} -C lib lib-mt for dir in programs contrib/pzstd; do %make_build -C "$dir" done @@ -103,7 +106,7 @@ #make %{?_smp_mflags} -C contrib/pzstd test-pzstd %install -%make_install V=1 VERBOSE=1 PREFIX=%{_prefix} LIBDIR=%{_libdir} +%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 ++++++ noexecstack.patch ++++++ >From 9a9d1ec6f4536ffeb745f360ef010cefd125bfd0 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" <[email protected]> Date: Wed, 29 Dec 2021 17:47:12 -0800 Subject: [PATCH] Mark Huffman Decoder Assembly `noexecstack` on All Architectures Apparently, even when the assembly file is empty (because `ZSTD_ENABLE_ASM_X86_64_BMI2` is false), it still is marked as possibly needing an executable stack and so the whole library is marked as such. This commit applies a simple patch for this problem by moving the noexecstack indication outside the macro guard. This commit builds on #2857. This commit addresses #2963. --- lib/decompress/huf_decompress_amd64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/decompress/huf_decompress_amd64.S b/lib/decompress/huf_decompress_amd64.S index 98173cce86..706786bb0d 100644 --- a/lib/decompress/huf_decompress_amd64.S +++ b/lib/decompress/huf_decompress_amd64.S @@ -1,7 +1,5 @@ #include "../common/portability_macros.h" -#if ZSTD_ENABLE_ASM_X86_64_BMI2 - /* Stack marking * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart */ @@ -9,6 +7,8 @@ .section .note.GNU-stack,"",%progbits #endif +#if ZSTD_ENABLE_ASM_X86_64_BMI2 + /* Calling convention: * * %rdi contains the first argument: HUF_DecompressAsmArgs*. ++++++ pzstd.1.patch ++++++ --- /var/tmp/diff_new_pack.r8bJ3L/_old 2022-01-07 12:45:50.175822751 +0100 +++ /var/tmp/diff_new_pack.r8bJ3L/_new 2022-01-07 12:45:50.175822751 +0100 @@ -1,18 +1,18 @@ -Index: zstd-1.4.7/programs/zstd.1 +Index: zstd-1.5.1/programs/zstd.1 =================================================================== ---- 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 +--- zstd-1.5.1.orig/programs/zstd.1 ++++ zstd-1.5.1/programs/zstd.1 +@@ -147,6 +147,12 @@ If input directory contains "\.\.", the + .IP "\[ci]" 4 + \fB\-\-\fR: All arguments after \fB\-\-\fR are treated as files + .IP "" 0 ++.SS Parallel Zstd OPTIONS +Additional options for the pzstd utility +.TP -+.BR \-p ", " --processes ++\fB\-p\fR, \fB\-\-processes\fR + number of threads to use for (de)compression (default:4) +. - .SH "DICTIONARY BUILDER" - \fBzstd\fR offers \fIdictionary\fR compression, which greatly improves efficiency on small files and messages\. It\'s possible to train \fBzstd\fR with a set of samples, the result of which is saved into a file called a \fBdictionary\fR\. Then during compression and decompression, reference the same dictionary, using command \fB\-D dictionaryFileName\fR\. Compression of small files similar to the sample set will be greatly improved\. - . + .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 and \fBZSTD_NBTHREADS\fR are currently supported\. They set the compression level and number of threads to use during compression, respectively\. + .P ++++++ zstd-1.5.0.tar.gz -> zstd-1.5.1.tar.gz ++++++ ++++ 29278 lines of diff (skipped)
