From ff2aaf847517bb2524445ee01a633d348c72870a19ac52e872d3991a8cf2f7f5 Mon Sep 17 00:00:00 2001
From: Marcus Meissner <meissner@suse.com>
Date: Thu, 28 Mar 2024 12:14:32 +0000
Subject: [PATCH 1/2] OBS-URL:
 https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=151

---
 xz-5.4.6.tar.gz     |   3 ++
 xz-5.4.6.tar.gz.sig | Bin 0 -> 566 bytes
 xz.changes          |  97 --------------------------------------------
 xz.spec             |   9 ++--
 4 files changed, 6 insertions(+), 103 deletions(-)
 create mode 100644 xz-5.4.6.tar.gz
 create mode 100644 xz-5.4.6.tar.gz.sig

diff --git a/xz-5.4.6.tar.gz b/xz-5.4.6.tar.gz
new file mode 100644
index 0000000..d2111e9
--- /dev/null
+++ b/xz-5.4.6.tar.gz
@@ -0,0 +1,3 @@
+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
new file mode 100644
index 0000000000000000000000000000000000000000000000000000000000000000..2ff5950e9d042ea0eb06d89aee73d61c817964c8f864cfe5af81e537fd3f0a43
GIT binary patch
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>*#-b5t<F(t;Jz3
z7W8>wfLxkTAW??{M&%&W@|qM}O{_jN>TAz9VOPCPBc7$9Q5qs?sTjJ{(YN!w<Nb!q
z^H@Gi@>&<%lo`&*8cq1g@cFFtbU>4Fm8g3+J;6PVWg5mxGOt}5e0V3X<fdgO)GUc)
zG@aY<c^@|G4WYhfaj-XpS4lRk;PkMrY%ghYf8QinYwl3=U7e&1rH}ls%befTdlGce
zxM*=P<W0C9`0Hhk-)nMZ){#mk3$~ZlwZMEu{PBv9qgPfO99o@v^BwTHG+ySk-vol~
z<ut2Ku}OKVN{ATs5Yk>g93KpF9Kj%p)|NUcy}jEWzdCa~ntpMrnXgr*jEYPMI@mY+
zeSu@M$iW^h)~ne^;hOKX7&9pW$hA4<3DfhLkfFwf?%dB{k-2Fxmy9Uf+yomrBZW#0
Eoa+r8hX4Qo

literal 0
HcmV?d00001

diff --git a/xz.changes b/xz.changes
index 4b1ba82..b02f56a 100644
--- a/xz.changes
+++ b/xz.changes
@@ -1,100 +1,3 @@
--------------------------------------------------------------------
-Sun Mar 10 11:43:13 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
-
-- update to 5.6.1:
-  * liblzma: Fix start-up crashes with -fprofile-generate
-  * liblzma: Fix false positive invalid write Valgrind report
-  * xz: Change the messages for thread reduction due to memory
-    constraints to only appear under the highest verbosity level
-
--------------------------------------------------------------------
-Tue Mar  5 11:25:55 UTC 2024 - Dirk Müller <dmueller@suse.com>
-
-- 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 <lzma/index.h>.
-  * 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 <danilo.spinella@suse.com>
 
diff --git a/xz.spec b/xz.spec
index 515548b..07b0a75 100644
--- a/xz.spec
+++ b/xz.spec
@@ -22,8 +22,9 @@
 %else
 %bcond_with static
 %endif
+%define _binary_payload w9.bzdio
 Name:           xz
-Version:        5.6.1
+Version:        5.4.6
 Release:        0
 Summary:        A Program for Compressing Files with the Lempel–Ziv–Markov algorithm
 License:        0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
@@ -99,11 +100,6 @@ export LDFLAGS="-Wl,-z,relro,-z,now -pie"
 %if %{with static}
 %configure \
   --with-pic \
-  --enable-year2038 \
-  --enable-symbol-versions \
-  --enable-sandbox=landlock \
-  --enable-ifunc \
-  --enable-external-sha256 \
   --docdir=%{_docdir}/%{name} \
   --disable-shared CONFIG_SHELL=/bin/sh
 %make_build
@@ -212,6 +208,7 @@ rm -vf %{buildroot}%{_docdir}/%{name}/{COPYING,COPYING.GPLv2}
 
 %if %{with static}
 %files static-devel
+%defattr(-, root, root)
 %{_libdir}/liblzma.a
 %endif
 

From 7a1a7bcf1ea4b7ca4a3cbb76aa7a886b476f42fea38d1c8a54badd7bf4cbc35a Mon Sep 17 00:00:00 2001
From: Marcus Meissner <meissner@suse.com>
Date: Thu, 28 Mar 2024 12:14:43 +0000
Subject: [PATCH 2/2] OBS-URL:
 https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=152

---
 xz-5.6.1.tar.gz     |   3 ---
 xz-5.6.1.tar.gz.sig | Bin 566 -> 0 bytes
 2 files changed, 3 deletions(-)
 delete mode 100644 xz-5.6.1.tar.gz
 delete mode 100644 xz-5.6.1.tar.gz.sig

diff --git a/xz-5.6.1.tar.gz b/xz-5.6.1.tar.gz
deleted file mode 100644
index 670590c..0000000
--- a/xz-5.6.1.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2398f4a8e53345325f44bdd9f0cc7401bd9025d736c6d43b372f4dea77bf75b8
-size 3045434
diff --git a/xz-5.6.1.tar.gz.sig b/xz-5.6.1.tar.gz.sig
deleted file mode 100644
index 157af7d1c6fa96fda7e4122af368cebdf4fc906b2509db7dcf097d5fff2924d5..0000000000000000000000000000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 566
zcmV-60?GY}0y6{v0SW*e79j*8)MfIt!E=B+AjaNV{PG9>r}RYy0%hzRPyh-E5Lx{4
z2mYt@Md1Jt0J}z;nNGtfS^<VXd=2j~Zwq#Q;BsP+{;HBKpwm&yB;i8{9Hj~IjRm?U
zNpU~BKL`fwI;t@MqSKRPE-OS*fzAFcO{5+7=K;KK9Bc|;uUJ8LF^?~A8EH;5#VKv1
zuJVQIH18KvifCu=qW;_0y!n_ojQ*=p)0yy<xOUe@gHVfE7MUIWV$q+~U*?6XbBi-i
zZi-!;Fa>9(nR=KQ&_U}r)h0m!PU<E=!AoT(=u~(469-{@1aK}xJ%G14*BeIlao1PN
zUw{;jCXr;66+02vFjrDa1dq~YCqQq-(E}ixOW1p73~|XE$6t1TS#rGoj_0r8&aG1@
z6avMbfFieEYs_P0ll^rI(ewVHMTYNwCa+t|Vv3SU<DS_M!&Gl{t!sSkQIh}OPBH*o
zw&<yEUoYo#IC_O{-;Ya6Rc4q|k^uNu1X&1vFG&h%aI*mST&HDR;kAl4*xv0)#Ld#D
z!JG!E=;E=z(Z_QzdStrh!2ek6X}!^C479F~q8CETR4k~qe#eD35S5XkdnfNr&3tSQ
z(nNo1%t|eq`h4Bj+Y%7y5PY~BIbwar7BRR2^{|IIlWx+kn2}C=Ko;fH`p^Y-@+0xg
zN>_(g``^I5Ld3A3S_x572Pt|aFRJ3=k=Vgy{R$+F(1Dxzvwi#Zh=gJx(?cEIH{1Kg
Eh{stISO5S3