[packages/xz] up to 5.4.0
atler
atler at pld-linux.org
Wed Dec 14 23:41:12 CET 2022
commit 54129fa48e4fd7b23057b0c1dfe5bb683e4c0718
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Dec 14 23:40:15 2022 +0100
up to 5.4.0
xz-parallel.patch | 19 +++++++++----------
xz.spec | 8 ++++++--
2 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/xz.spec b/xz.spec
index 69f98d9..45e5394 100644
--- a/xz.spec
+++ b/xz.spec
@@ -17,13 +17,13 @@
Summary: LZMA Encoder/Decoder
Summary(pl.UTF-8): Koder/Dekoder LZMA
Name: xz
-Version: 5.2.9
+Version: 5.4.0
Release: 1
Epoch: 1
License: LGPL v2.1+, helper scripts on GPL v2+
Group: Applications/Archiving
Source0: https://tukaani.org/xz/%{name}-%{version}.tar.bz2
-# Source0-md5: 8c4b53d6b0f9ee9b725ec46f2a1f45c3
+# Source0-md5: 2cc95f33fe0527622177b2bb2f5956c8
Patch0: %{name}-parallel.patch
Patch1: %{name}-memlimit.patch
URL: https://tukaani.org/xz/
@@ -170,6 +170,10 @@ rm -rf $RPM_BUILD_ROOT
%lang(fr) %{_mandir}/fr/man1/unlzma.1*
%lang(fr) %{_mandir}/fr/man1/unxz.1*
%lang(fr) %{_mandir}/fr/man1/xz*.1*
+%lang(ro) %{_mandir}/ro/man1/lz*.1*
+%lang(ro) %{_mandir}/ro/man1/unlzma.1*
+%lang(ro) %{_mandir}/ro/man1/unxz.1*
+%lang(ro) %{_mandir}/ro/man1/xz*.1*
%files libs
%defattr(644,root,root,755)
diff --git a/xz-parallel.patch b/xz-parallel.patch
index e475e32..a9e4acb 100644
--- a/xz-parallel.patch
+++ b/xz-parallel.patch
@@ -4,19 +4,18 @@
.B 0
makes
.B xz
--use as many threads as there are CPU cores on the system.
-+use as many threads as there are CPU cores on the system (default in PLD).
- The actual number of threads can be less than
+-use up to as many threads as the processor(s) on the system support.
++use up to as many threads as the processor(s) on the system support (default in PLD).
+ The actual number of threads can be fewer than
.I threads
if the input file is not big enough
---- xz/src/xz/hardware.c~ 2011-04-12 12:42:58.000000000 +0200
-+++ xz/src/xz/hardware.c 2011-10-22 23:22:28.306650949 +0200
-@@ -139,6 +139,8 @@
- total_ram = (uint64_t)(ASSUME_RAM) * 1024 * 1024;
+--- xz-5.4.0/src/xz/hardware.c.orig 2022-12-14 21:03:50.227052828 +0100
++++ xz-5.4.0/src/xz/hardware.c 2022-12-14 23:25:02.994248765 +0100
+@@ -334,5 +334,7 @@
+ memlimit_mt_default = mem_ceiling;
+ #endif
- // Set the defaults.
+ hardware_threads_set(0);
- hardware_memlimit_set(0, true, true, false);
-+ hardware_memlimit_set(80, true, false, true);
++ hardware_memlimit_set(80, true, false, false, true);
return;
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xz.git/commitdiff/54129fa48e4fd7b23057b0c1dfe5bb683e4c0718
More information about the pld-cvs-commit
mailing list