From 6fb022244bf51105a60db254fc40cc4a232d58a81564f1506f184e4ef5df2b9c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 5 Mar 2024 11:47:58 +0000 Subject: [PATCH 1/2] - update to 5.6.0: * This bumps the minor version of liblzma because new features were added. The API and ABI are still backward compatible with liblzma 5.4.x and 5.2.x and 5.0.x. * liblzma: - Disabled the branchless C variant in the LZMA decoder based on the benchmark results from the community. - Disabled x86-64 inline assembly on x32 to fix the build. * Sandboxing support in xz: - Landlock is now used even when xz needs to create files. - Landlock and pledge(2) are now stricter when reading from more than one input file and only writing to standard output. - Added support for Landlock ABI version 4. - Now builds lzmainfo and lzmadec. - xzdiff, xzgrep, xzless, xzmore, and their symlinks are now installed. The scripts are also tested during "make test". - Added translation support for xz, lzmainfo, and the man pages. - Minimum required CMake version is now 3.14. * liblzma: - LZMA decoder: Speed optimizations to the C code and added GCC & Clang compatible inline assembly for x86-64. - Added lzma_mt_block_size() to recommend a Block size for multithreaded encoding. - Added CLMUL-based CRC32 on x86-64 and E2K with OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=145 --- xz-5.4.6.tar.gz | 3 -- xz-5.4.6.tar.gz.sig | Bin 566 -> 0 bytes xz-5.6.0.tar.gz | 3 ++ xz-5.6.0.tar.gz.sig | Bin 0 -> 566 bytes xz.changes | 88 ++++++++++++++++++++++++++++++++++++++++++++ xz.spec | 13 ++++--- 6 files changed, 99 insertions(+), 8 deletions(-) delete mode 100644 xz-5.4.6.tar.gz delete mode 100644 xz-5.4.6.tar.gz.sig create mode 100644 xz-5.6.0.tar.gz create mode 100644 xz-5.6.0.tar.gz.sig diff --git a/xz-5.4.6.tar.gz b/xz-5.4.6.tar.gz deleted file mode 100644 index d2111e9..0000000 --- a/xz-5.4.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aeba3e03bf8140ddedf62a0a367158340520f6b384f75ca6045ccc6c0d43fd5c -size 2889306 diff --git a/xz-5.4.6.tar.gz.sig b/xz-5.4.6.tar.gz.sig deleted file mode 100644 index 2ff5950e9d042ea0eb06d89aee73d61c817964c8f864cfe5af81e537fd3f0a43..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 566 zcmV-60?GY}0y6{v0SW*e79j*8)MfIt!E=B+AjaNV{PG9>r}RYy0%fzDGyn<-5Lx{4 z2mYt@MNNed`vv`Sl=TfB;V8bEvLC|HwbHpkIH{SsE~2Ofkny^m0H)&1q!gN`^%|Tl zc_rVkl;iWG9EGDYwKdr+V%&+;(}Hhc4o^SSi?Xr3J#ar0kczRc-zd~beD01i=5q;T zb8b71>6qmOZC0^sK>MBAkdmdL3E<53gDw>*c(zS1lG0Y?XMc%i3V4&d>MzDAPJ{AK zVJr`AsErK_%&X6BS);SM=Sm!^b@+JwVeK1rg*2Ruk=m6)9A3HY>*#-b5twfLxkTAW??{M&%&W@|qM}O{_jN>TAz9VOPCPBc7$9Q5qs?sTjJ{(YN!w&<%lo`&*8cq1g@cFFtbU>4Fm8g3+J;6PVWg5mxGOt}5e0V3Xg93KpF9Kj%p)|NUcy}jEWzdCa~ntpMrnXgr*jEYPMI@mY+ zeSu@M$iW^h)~ne^;hOKX7&9pW$hA4<3DfhLkfFwf?%dB{k-2Fxmy9Uf+yomrBZW#0 Eoa+r8hX4Qo diff --git a/xz-5.6.0.tar.gz b/xz-5.6.0.tar.gz new file mode 100644 index 0000000..ca379c5 --- /dev/null +++ b/xz-5.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f5c81f14171b74fcc9777d302304d964e63ffc2d7b634ef023a7249d9b5d875 +size 3036813 diff --git a/xz-5.6.0.tar.gz.sig b/xz-5.6.0.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..a35bec503eb3b6c0594e97ce3b5116db120fd784311013bfee75c8d8ba056100 GIT binary patch literal 566 zcmV-60?GY}0y6{v0SW*e79j*8)MfIt!E=B+AjaNV{PG9>r}RYy0%h5&fdC2#5Lx{4 z2mYt@MKp^L0FsE0nxaZsQw+a`0;g|bQcXlj0GwKYqi-6N7wh7V<&5Acr@IzfNSoGZ zGh`xG8b%?naxr+P3pAa&cgAQ2&tvvqz^1Q~Mhr%sba+s6 zH9d945PO6XYyyMgnh!}kKx7W{cLX8B{_3r&u&Nj#cMo17{v0fhES7>j_>{FOcWjAP3gWGcvl-aqnqgY=*{HfOW*lMw-=Dkg*eS3Q0|6_f$U)u2R8 z?>1R*gh#%F>DcMvQlwv0^mD@LvnGhZW34t`6N96fUg{=#?YdRE5NS56u7Sdi7hP+t6|~rDYAQ7 z8=~?o7U{IcpzeMgCefiLM~jEbArS2;G>v#j$7wNlHztbCYIngg8<}af0?z{)LZ{Y~ E+!wSJ82|tP literal 0 HcmV?d00001 diff --git a/xz.changes b/xz.changes index b02f56a..6f3671f 100644 --- a/xz.changes +++ b/xz.changes @@ -1,3 +1,91 @@ +------------------------------------------------------------------- +Tue Mar 5 11:25:55 UTC 2024 - Dirk Müller + +- update to 5.6.0: + * This bumps the minor version of liblzma because new + features were added. The API and ABI are still backward + compatible with liblzma 5.4.x and 5.2.x and 5.0.x. + * liblzma: + - Disabled the branchless C variant in the LZMA + decoder based on the benchmark results from the community. + - Disabled x86-64 inline assembly on x32 to fix the + build. + * Sandboxing support in xz: + - Landlock is now used even when xz needs to create + files. + - Landlock and pledge(2) are now stricter when + reading from more than one input file and only writing to + standard output. + - Added support for Landlock ABI version 4. + - Now builds lzmainfo and lzmadec. + - xzdiff, xzgrep, xzless, xzmore, and their symlinks + are now installed. The scripts are also tested during "make + test". + - Added translation support for xz, lzmainfo, and the + man pages. + - Minimum required CMake version is now 3.14. + * liblzma: + - LZMA decoder: Speed optimizations to the C code and + added GCC & Clang compatible inline assembly for + x86-64. + - Added lzma_mt_block_size() to recommend a Block + size for multithreaded encoding. + - Added CLMUL-based CRC32 on x86-64 and E2K with + runtime processor detection. Similar to CRC64, on 32-bit + x86 it isn't available unless --disable-assembler is used. + - Optimized the CRC32 calculation on ARM64 platforms + using the CRC32 instructions. Runtime detection for the + instruction is used on GNU/Linux, FreeBSD, Windows, and macOS. + - Added definitions of mask values like + LZMA_INDEX_CHECK_MASK_CRC32 to . + * Licensing change: The core components are now under the + * BSD Zero Clause License (0BSD). In XZ Utils 5.4.6 and + older and 5.5.1alpha these components are in the public + domain and obviously remain so; the change affects the new + releases only. + * 0BSD is an extremely permissive license which doesn't + require retaining or reproducing copyright or license notices + when distributing the code, thus in practice there is + extremely little difference to public domain. + * liblzma + - Significant speed optimizations to the LZMA decoder + were made. There are now three variants that can be + chosen at build time: + * Basic C version: This is a few percent faster than + 5.4.x due to some new optimizations. + * Branchless C: This is currently the default on platforms + for which there is no assembly code. This should be a few + percent faster than the basic C version. + * x86-64 inline assembly. This works with GCC and Clang. + The default choice can currently be overridden by + setting LZMA_RANGE_DECODER_CONFIG in CPPFLAGS: 0 means the + basic version and 3 means that branchless C version. + * Added a new filter for RISC-V binaries. The filter can be + used for 32-bit and 64-bit binaries with either little or + big endianness. In liblzma, the Filter ID is + LZMA_FILTER_RISCV (0x0B) + - Implemented GNU indirect function (IFUNC) as a + runtime function dispatching method for CRC32 and CRC64 + fast implementations on x86. Only GNU/Linux (glibc) and + * xz: + - Multithreaded mode is now the default. This + improves compression speed and creates .xz files that can be + decompressed multithreaded at the cost of increased + memory usage and slightly worse compression ratio. + - Added new command line option --filters to set the + filter chain using liblzma filter string syntax. + - Added new command line options --filters1 ... + --filters9 to set additional filter chains using liblzma filter + string syntax. The --block-list option now allows + specifying filter chains that were set using these new options. + - Added support for Linux Landlock as a sandboxing + method. + - xzdec now supports pledge(2), Capsicum, and Linux + Landlock as sandboxing methods. +- enable y2038 mode +- enable zstd compression, we no longer have bootstrap + issues as xz is no longer used + ------------------------------------------------------------------- Mon Jan 29 21:36:02 UTC 2024 - Danilo Spinella diff --git a/xz.spec b/xz.spec index d190312..c53fcff 100644 --- a/xz.spec +++ b/xz.spec @@ -22,12 +22,11 @@ %else %bcond_with static %endif -%define _binary_payload w9.bzdio Name: xz -Version: 5.4.6 +Version: 5.6.0 Release: 0 Summary: A Program for Compressing Files with the Lempel–Ziv–Markov algorithm -License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later AND SUSE-Public-Domain +License: 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later Group: Productivity/Archiving/Compression URL: https://tukaani.org/xz/ Source0: https://github.com/tukaani-project/xz/releases/download/v%{version}/xz-%{version}.tar.gz @@ -58,7 +57,7 @@ The xz command is a program for compressing files. %package -n liblzma5 Summary: Lempel–Ziv–Markov chain algorithm compression library -License: SUSE-Public-Domain +License: 0BSD Group: System/Libraries %description -n liblzma5 @@ -66,7 +65,7 @@ Library for encoding/decoding LZMA files. %package devel Summary: Development package for the LZMA library -License: SUSE-Public-Domain +License: 0BSD Group: Development/Libraries/C and C++ Requires: liblzma5 = %{version} Provides: lzma-devel = %{version} @@ -100,6 +99,10 @@ export LDFLAGS="-Wl,-z,relro,-z,now -pie" %if %{with static} %configure \ --with-pic \ + --enable-year2038 \ + --enable-symbol-versions \ + --enable-sandbox=landlock \ + --enable-ifunc \ --docdir=%{_docdir}/%{name} \ --disable-shared CONFIG_SHELL=/bin/sh %make_build From 3c393fa86970e6de95b48ece54be4a712373c1251eead500ed6e61e6bb0696f1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 5 Mar 2024 12:12:51 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=146 --- xz.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/xz.spec b/xz.spec index c53fcff..8d79d9c 100644 --- a/xz.spec +++ b/xz.spec @@ -103,6 +103,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now -pie" --enable-symbol-versions \ --enable-sandbox=landlock \ --enable-ifunc \ + --enable-external-sha256 \ --docdir=%{_docdir}/%{name} \ --disable-shared CONFIG_SHELL=/bin/sh %make_build