xz: Update to version 5.8.2

Message ID 20260107175037.3765287-10-adolf.belka@ipfire.org
State Staged
Commit 1420820681395582421b9bc856bce663a8b4695c
Headers
Series xz: Update to version 5.8.2 |

Commit Message

Adolf Belka 7 Jan 2026, 5:50 p.m. UTC
- Update from version 5.8.1 to 5.8.2
- Update of rootfile
- Changelog
    5.8.2
	    * liblzma:
	        - Fix the build on ARM64 on glibc versions older than
	          2.24 (2016). They don't have HWCAP_CRC32 in <sys/auxv.h>.
	        - Disable CLMUL CRC code when building for 32-bit x86 with
	          old MSVC versions. This avoids a compiler bug. The exact
	          compiler version in which the issue was fixed is unknown,
	          but VS 2022 17.13 (MSVC 19.43.34808) is known to work, so
	          CLMUL CRC on 32-bit x86 is disabled with MSVC versions
	          older than that.
	    * xz:
	        - Add a workaround for Red Hat Enterprise Linux 9 kernel bug
	          which made xz fail with "xz: Failed to enable the sandbox".
	          It only occurs with xz 5.8.0 and 5.8.1 binaries built for
	          other distros. For example, running Debian 13 in a container
	          on RHEL/CentOS 9 would trigger the issue.
	          The bug was introduced in RHEL 9 kernel 5.14.0-603.el9
	          (2025-07-30) and fixed in 5.14.0-648.el9 (2025-12-05).
	          However, as of writing, the fixed kernel isn't available
	          to RHEL 9 users yet, so including the workaround in this
	          xz release seems reasonable. The workaround will be removed
	          when it's no longer needed.
	          xzdec was also affected by this issue.
	        - On AIX, don't use fsync() on directories because it fails.
	        - Fix the build on Emscripten.
	        - Fix the build on clang-cl on Windows.
	        - Take resource limits (RLIMIT_DATA, RLIMIT_AS, and RLIMIT_VMEM)
	          into account when determining the default memory usage limit
	          for multithreaded mode. This should prevent xz from failing
	          when a resource limit has been set to a value that is less
	          than 1/4 of total RAM. Other memory limits can still trigger
	          the same issue, for example, Linux cgroup v2 memory.max.
	    * Build systems:
	        - When symbol versioning is enabled, pass --undefined-version
	          to the linker if the option is supported. This fixes the
	          build when using LLVM's lld and some liblzma features have
	          been disabled at build time.
	        - ARM64: Fix autodetection of fast unaligned memory access when
	          using GCC and -mstrict-align is in effect. Previously the
	          build systems would incorrectly guess that unaligned access
	          is fast, which would result in much slower binaries than
	          needed. The fix is a workaround for GCC bug 111555;
	          autodetection already worked with Clang.
	        - LoongArch: Autodetect if fast unaligned memory access is
	          supported. This can improve compression speed by 15 % (but
	          not decompression speed).
	    * Translations:
	        - Update the Spanish translation.
	        - Add Swedish man page translations.
	        - Update Italian, Korean, Romanian, Serbian, and Ukrainian
	          man page translations.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/xz | 27 ++++++++++++++++++++++++++-
 lfs/xz                     |  4 ++--
 2 files changed, 28 insertions(+), 3 deletions(-)
  

Patch

diff --git a/config/rootfiles/common/xz b/config/rootfiles/common/xz
index f836d4578..c6b433803 100644
--- a/config/rootfiles/common/xz
+++ b/config/rootfiles/common/xz
@@ -41,7 +41,7 @@  usr/bin/xzmore
 #usr/lib/liblzma.la
 #usr/lib/liblzma.so
 usr/lib/liblzma.so.5
-usr/lib/liblzma.so.5.8.1
+usr/lib/liblzma.so.5.8.2
 #usr/lib/pkgconfig/liblzma.pc
 #usr/share/doc/xz
 #usr/share/doc/xz/AUTHORS
@@ -262,6 +262,31 @@  usr/lib/liblzma.so.5.8.1
 #usr/share/man/sr/man1/xzgrep.1
 #usr/share/man/sr/man1/xzless.1
 #usr/share/man/sr/man1/xzmore.1
+#usr/share/man/sv
+#usr/share/man/sv/man1
+#usr/share/man/sv/man1/lzcat.1
+#usr/share/man/sv/man1/lzcmp.1
+#usr/share/man/sv/man1/lzdiff.1
+#usr/share/man/sv/man1/lzegrep.1
+#usr/share/man/sv/man1/lzfgrep.1
+#usr/share/man/sv/man1/lzgrep.1
+#usr/share/man/sv/man1/lzless.1
+#usr/share/man/sv/man1/lzma.1
+#usr/share/man/sv/man1/lzmadec.1
+#usr/share/man/sv/man1/lzmainfo.1
+#usr/share/man/sv/man1/lzmore.1
+#usr/share/man/sv/man1/unlzma.1
+#usr/share/man/sv/man1/unxz.1
+#usr/share/man/sv/man1/xz.1
+#usr/share/man/sv/man1/xzcat.1
+#usr/share/man/sv/man1/xzcmp.1
+#usr/share/man/sv/man1/xzdec.1
+#usr/share/man/sv/man1/xzdiff.1
+#usr/share/man/sv/man1/xzegrep.1
+#usr/share/man/sv/man1/xzfgrep.1
+#usr/share/man/sv/man1/xzgrep.1
+#usr/share/man/sv/man1/xzless.1
+#usr/share/man/sv/man1/xzmore.1
 #usr/share/man/uk
 #usr/share/man/uk/man1
 #usr/share/man/uk/man1/lzcat.1
diff --git a/lfs/xz b/lfs/xz
index 1ee1faa52..465a3b183 100644
--- a/lfs/xz
+++ b/lfs/xz
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 5.8.1
+VER        = 5.8.2
 
 THISAPP    = xz-$(VER)
 DL_FILE    = $(THISAPP).tar.xz
@@ -45,7 +45,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = f11be3971e181bb49b6a92d3cc07ebb1c6b5fb53bc5d079e0952eed94f069656cffb37a2e2e8f068a5f119c6ef5ee565b3ac9978a5afa24a40d49607d492d176
+$(DL_FILE)_BLAKE2 = 3788b52c41adb4af32a5221b9c497044068343f1489508b90c9fb00188463e1eb3bc9df91b0457f1e9524c5e45dd2c374fd26f535994f04f94d2d200ccc4d85c
 
 install : $(TARGET)