rpm/rpm-5.4.10-Use-multithreaded-XZ-by-default-for-both-binary-and-.patch

35 lines
1.3 KiB
Diff

From 327206c531d3b37719cd48b35bf3c58686484073 Mon Sep 17 00:00:00 2001
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Date: Tue, 25 Dec 2018 01:50:51 +0300
Subject: [PATCH] Use multithreaded XZ by default for both binary and source
packages.
Note: according to https://github.com/rpm-software-management/rpm/commit/b7b2ab2177af8359663fcfb83cb2af3da578012e#commitcomment-14634266 ,
multithreaded XZ will break deltarpm, but ROSA does not have deltarpm.
Example of this config was taken from https://github.com/rpm-software-management/rpm/commit/c004d7647e2c16d6672d8f902d2cab00d89b9778
---
macros/mandriva.in | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/macros/mandriva.in b/macros/mandriva.in
index 3f742ad..958a869 100644
--- a/macros/mandriva.in
+++ b/macros/mandriva.in
@@ -127,8 +127,11 @@
# TODO: fix check script and implement support for using
#%_multiarch_required_terminate_build 1
-# use XZ to compress binary packages:
-%_binary_payload w5.xzdio
+# use multithreaded XZ to compress binary and source packages
+# note: only liblzma >= 5.2 supports multithreaded xz
+# xz level 6 (default) using 0 thread (0 means multithreading to as much CPU cores as possible)
+%_binary_payload w6T0.xzdio
+%_source_payload w6T0.xzdio
%_duplicate_files_terminate_build 1
%_unpackaged_subdirs_terminate_build 0
--
2.17.1