Sync from SUSE:SLFO:Main xz revision 264c904c90900e46626e7ef836f67df4
This commit is contained in:
parent
ac536ebd6d
commit
29d512f863
BIN
xz-5.4.3.tar.gz
(Stored with Git LFS)
BIN
xz-5.4.3.tar.gz
(Stored with Git LFS)
Binary file not shown.
Binary file not shown.
BIN
xz-5.6.2.tar.xz
(Stored with Git LFS)
Normal file
BIN
xz-5.6.2.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
xz-5.6.2.tar.xz.sig
Normal file
BIN
xz-5.6.2.tar.xz.sig
Normal file
Binary file not shown.
132
xz.changes
132
xz.changes
@ -1,3 +1,135 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 30 06:08:18 UTC 2024 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Update to 5.6.2:
|
||||
* Remove the backdoor (CVE-2024-3094).
|
||||
* Not changed: Memory sanitizer (MSAN) has a false positive
|
||||
in the CRC CLMUL code which also makes OSS Fuzz unhappy.
|
||||
Valgrind is smarter and doesn't complain.
|
||||
A revision to the CLMUL code is coming anyway and this issue
|
||||
will be cleaned up as part of it. It won't be backported to
|
||||
5.6.x or 5.4.x because the old code isn't wrong. There is
|
||||
no reason to risk introducing regressions in old branches
|
||||
just to silence a false positive.
|
||||
* liblzma:
|
||||
- lzma_index_decoder() and lzma_index_buffer_decode(): Fix
|
||||
a missing output pointer initialization (*i = NULL) if the
|
||||
functions are called with invalid arguments. The API docs
|
||||
say that such an initialization is always done. In practice
|
||||
this matters very little because the problem can only occur
|
||||
if the calling application has a bug and these functions
|
||||
return LZMA_PROG_ERROR.
|
||||
- lzma_str_to_filters(): Fix a missing output pointer
|
||||
initialization (*error_pos = 0). This is very similar
|
||||
to the fix above.
|
||||
- Fix C standard conformance with function pointer types.
|
||||
- Remove GNU indirect function (IFUNC) support. This is *NOT*
|
||||
done for security reasons even though the backdoor relied on
|
||||
this code. The performance benefits of IFUNC are too tiny in
|
||||
this project to make the extra complexity worth it.
|
||||
- FreeBSD on ARM64: Add error checking to CRC32 instruction
|
||||
support detection.
|
||||
- Fix building with NVIDIA HPC SDK.
|
||||
* xz:
|
||||
- Fix a C standard conformance issue in --block-list parsing
|
||||
(arithmetic on a null pointer).
|
||||
- Fix a warning from GNU groff when processing the man page:
|
||||
"warning: cannot select font 'CW'"
|
||||
* xzdec: Add support for Linux Landlock ABI version 4. xz already
|
||||
had the v3-to-v4 change but it had been forgotten from xzdec.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 12 16:22:12 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- revert the switch to tar_scm which dropped the signature
|
||||
validation
|
||||
- switch back to tarballs because the upstream tarballs are not
|
||||
gone
|
||||
- reinstanciate keyring from Lasse
|
||||
- go back to the last release signed by Lasse (5.4.2)
|
||||
- revert multibuild, drop service and rpmlintrc
|
||||
- use real_ver for the Source, move everything else back to
|
||||
%version like before the hectic XZ downgrade
|
||||
- remove payload setting, we are using zstd now
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 4 07:16:46 UTC 2024 - Dan Čermák <dcermak@suse.com>
|
||||
|
||||
- Switch to using tar_scm for fetching the sources as the upstream
|
||||
tarballs on github are gone
|
||||
- introduce _multibuild to allow building the translations outside
|
||||
of Ring0 and everything else in Ring0
|
||||
- add rpmlintrc to silence harmless warnings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 13:51:05 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- restore a bigger version number so that update works
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 29 21:36:02 UTC 2024 - Danilo Spinella <danilo.spinella@suse.com>
|
||||
|
||||
- Build static library on SLE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 28 10:10:07 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 5.4.6:
|
||||
* Fixed a bug involving internal function pointers in liblzma
|
||||
not being initialized to NULL. The bug can only be
|
||||
triggered if lzma_filters_update() is called on a LZMA1
|
||||
encoder, so it does not affect xz or any application known
|
||||
to us that uses liblzma.
|
||||
* Fixed a regression introduced in 5.4.2 that caused
|
||||
encoding in the raw format to unnecessarily fail if --suffix
|
||||
was not used. For instance, the following command no longer
|
||||
reports that --suffix must be used:
|
||||
echo foo | xz --format=raw --lzma2 | wc -c
|
||||
* Fixed an issue on MinGW-w64 builds that prevented
|
||||
reading from or writing to non-terminal character devices
|
||||
like NUL.
|
||||
* Added a new test.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 7 16:10:26 UTC 2023 - Andrea Manzini <andrea.manzini@suse.com>
|
||||
|
||||
- Update to version 5.4.5:
|
||||
* liblzma:
|
||||
- Fixed an assertion failure that could be triggered by a large
|
||||
unpadded_size argument. It was verified that there was no
|
||||
other bug than the assertion failure.
|
||||
|
||||
- Fixed a bug that prevented building with Windows Vista
|
||||
threading when __attribute__((__constructor__)) is not
|
||||
supported.
|
||||
|
||||
* xz now properly handles special files such as "con" or "nul" on
|
||||
Windows. Before this fix, the following wrote "foo" to the
|
||||
console and deleted the input file "con_xz":
|
||||
|
||||
echo foo | xz > con_xz
|
||||
xz --suffix=_xz --decompress con_xz
|
||||
|
||||
* Small fixes and improvements to the tests.
|
||||
* Updated translations: Chinese (simplified) and Esperanto.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 16 13:58:09 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- xznew: Remove bashsism.
|
||||
- build: pass CONFIG_SHELL=/bin/sh to configure: the posix tools
|
||||
are setting the current SHELL as the shebang, which is overkill:
|
||||
any posix compliant shell, aka /bin/sh, is sufficient.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 3 07:01:39 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Update to version 5.4.4:
|
||||
* liblzma and xzdec can now build against WASI SDK when threading
|
||||
support is disabled. xz and tests don't build yet.
|
||||
* documentation update
|
||||
* translations update
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 5 05:47:01 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
|
98
xz.keyring
98
xz.keyring
@ -1,52 +1,52 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBGOsX3EBEADZxyfiZVg7aub+JoBG+sPChHUwbJc+SH7BWOPbu4HLNfk6ZUzi
|
||||
/JSBYIGIIrqGkA60Pu1CbplkVF4UG0YBAAE/j11puWMHrydxTY9Hoc/rYOBq+0AE
|
||||
mWnG0VINjpF3dNGlrmlikORzpW/FAHy8B1nD8P7vulPooc9FgkOmFM8nAP24TURU
|
||||
h8G8cGY0jqpVxTiQqAi9KPxTlnY5s7hhgW0Nd3mIF4QSoPofMPnV5DTYS1LJw6XB
|
||||
9K3DR4bsD7YYF2TdYGvlk/bJNu9DB1NuiWjpnzLIkPdtxpcPORXgiWE6wvzFncJn
|
||||
G5tqbdQ//ylZAjOFbCntMMO7ve3JXWjEM6mDEuqlmlaHrF21Y+mQN5i2BdRKfMiQ
|
||||
HB9KsveTz2Ev4cO9Tblzsm/oDvYR29LORjJl3PE3jqNSVbABih2OGnMAS9345a5u
|
||||
n1vyP3x6/oAyZ7Q0iKzZml47nsl40dQk4z3aJp9ya3lph5ANQP3uzwQtDSZgkDy/
|
||||
JDyIL/z19FtAgA7QugWkx4HsSzmZnE5GQJImA0/XxXYNck2NqQ9YJ/RY8W3aD4dp
|
||||
mnFAYE1Yi5kutrVlfqzKujBpi3/JfSM1hkJdcRJ7rrOw69JXVvbqVW1EiX8gp8Ka
|
||||
GV6g0MN/G15dJT/AMY9/XwEFIYP7vZl32Qx7A67jokNB7bKCZxWexppRrQARAQAB
|
||||
tBxKaWEgVGFuIDxqaWF0MDIxOEBnbWFpbC5jb20+iQJUBBMBCgA+FiEEItRl8rTB
|
||||
c4A7IMbeWfzyB/6n9EUFAmOsX3ECGwMFCQlmAYAFCwk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EiejnM5fj27RE2v191vh3hgZ+X5+uwjNTP0QC4qP8XykQOAA8usOMVZ72lyXCAk
|
||||
wiUcRdrAXLN/XbIFNcQ3m4d3W6t60Gk09wFlUKaEltDMlPUsxiSG3qFwFGPBP6UV
|
||||
h3mjJMAl1jltLrR7ybez0SczfrcAtdCsKTvgzV9W2TzUfK2R9PBanmXTXK2M7yU3
|
||||
IquHt3Je4aSP7XYb5D+ajlbFNvnXOYcai8WryfC5nLAfV4MbPX+UlRaYCqqHVhut
|
||||
gK93re1L5mMI3zjG5Ri5jLpUA9toSJCIJIY5zwr/8LL/ZL4TixXlouA17yjkpY/e
|
||||
Bjs8cNj1O3aM4jY2FKCS8UbfxOiARk/5kBMRPEZ/mqpMQttzE8KVjOv6fRxy/eVE
|
||||
888/gToe5kb8qYwy
|
||||
=6rZC
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
|
77
xz.spec
77
xz.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package xz
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,18 +17,23 @@
|
||||
|
||||
|
||||
# avoid bootstrapping problem
|
||||
%define _binary_payload w9.bzdio
|
||||
%if 0%{?suse_version} == 1500
|
||||
%bcond_without static
|
||||
%else
|
||||
%bcond_with static
|
||||
%endif
|
||||
|
||||
Name: xz
|
||||
Version: 5.4.3
|
||||
Version: 5.6.2
|
||||
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://tukaani.org/xz/%{name}-%{version}.tar.gz
|
||||
Source1: https://tukaani.org/xz/%{name}-%{version}.tar.gz.sig
|
||||
Source0: https://github.com/tukaani-project/xz/releases/download/v%{version}/xz-%{version}.tar.xz
|
||||
Source1: https://github.com/tukaani-project/xz/releases/download/v%{version}/xz-%{version}.tar.xz.sig
|
||||
Source2: baselibs.conf
|
||||
Source3: https://tukaani.org/misc/jia_tan_pubkey.txt#/%{name}.keyring
|
||||
Source3: https://tukaani.org/misc/lasse_collin_pubkey.txt#/xz.keyring
|
||||
Source4: xznew
|
||||
Source5: xznew.1
|
||||
BuildRequires: pkgconfig
|
||||
@ -49,11 +54,12 @@ The xz command is a program for compressing files.
|
||||
decompressing speed.
|
||||
* Very similar command line interface to what gzip and bzip2 have.
|
||||
|
||||
|
||||
%lang_package
|
||||
|
||||
%package -n liblzma5
|
||||
Summary: Lempel–Ziv–Markov chain algorithm compression library
|
||||
License: SUSE-Public-Domain
|
||||
License: 0BSD
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n liblzma5
|
||||
@ -61,7 +67,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}
|
||||
@ -73,17 +79,39 @@ Obsoletes: lzma-alpha-devel < %{version}
|
||||
This package contains the header files and libraries needed for
|
||||
compiling programs using the LZMA library.
|
||||
|
||||
%if %{with static}
|
||||
%package static-devel
|
||||
Summary: Static version of LZMA library
|
||||
License: SUSE-Public-Domain
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: xz-devel = %{version}
|
||||
|
||||
%description static-devel
|
||||
Static library for the LZMA library
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
export CFLAGS="%{optflags} -D_REENTRANT -pipe -fPIE"
|
||||
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
||||
|
||||
# Either we build it without pic enabled, or we build one at a time
|
||||
%if %{with static}
|
||||
%configure \
|
||||
--with-pic \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
--disable-static
|
||||
--disable-shared CONFIG_SHELL=/bin/sh
|
||||
|
||||
%make_build
|
||||
cp ./src/liblzma/.libs/liblzma.a liblzma.a
|
||||
%endif
|
||||
%configure \
|
||||
--with-pic \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
--disable-static CONFIG_SHELL=/bin/sh
|
||||
%if 0%{?do_profiling}
|
||||
%make_build CFLAGS="${CFLAGS} %{cflags_profile_generate}"
|
||||
%make_build
|
||||
@ -102,20 +130,14 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
||||
%find_lang %{name} --all-name --with-man
|
||||
install -Dpm 0755 %{SOURCE4} %{buildroot}%{_bindir}/xznew
|
||||
install -Dpm 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/xznew.1
|
||||
%if %{with static}
|
||||
install -Dpm 0644 liblzma.a %{buildroot}%{_libdir}/
|
||||
%endif
|
||||
rm -vf %{buildroot}%{_docdir}/%{name}/{COPYING,COPYING.GPLv2}
|
||||
|
||||
%post -n liblzma5 -p /sbin/ldconfig
|
||||
%postun -n liblzma5 -p /sbin/ldconfig
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%dir %{_mandir}/fr
|
||||
%dir %{_mandir}/de
|
||||
%dir %{_mandir}/ko
|
||||
%if 0%{?suse_version} == 1500
|
||||
%dir %{_mandir}/ro
|
||||
%dir %{_mandir}/uk
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license COPYING COPYING.GPLv2
|
||||
%{_docdir}/%{name}
|
||||
@ -168,6 +190,15 @@ rm -vf %{buildroot}%{_docdir}/%{name}/{COPYING,COPYING.GPLv2}
|
||||
%{_mandir}/man1/xzmore.1%{?ext_man}
|
||||
%{_mandir}/man1/xznew.1%{?ext_man}
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%dir %{_mandir}/fr
|
||||
%dir %{_mandir}/de
|
||||
%dir %{_mandir}/ko
|
||||
%if 0%{?suse_version} == 1500
|
||||
%dir %{_mandir}/ro
|
||||
%dir %{_mandir}/uk
|
||||
%endif
|
||||
|
||||
%files -n liblzma5
|
||||
%{_libdir}/liblzma.so.5*
|
||||
|
||||
@ -178,4 +209,10 @@ rm -vf %{buildroot}%{_docdir}/%{name}/{COPYING,COPYING.GPLv2}
|
||||
%{_libdir}/liblzma.so
|
||||
%{_libdir}/pkgconfig/liblzma.pc
|
||||
|
||||
%if %{with static}
|
||||
%files static-devel
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/liblzma.a
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user