From 327206c531d3b37719cd48b35bf3c58686484073 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov 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,13 @@ # 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 +# w6 is xz level 6 (default), T - threads +# note: w6T0.xzdio will result into 1 thread, w6T.xzdio will result into multiple threads! +%_binary_payload w6T.xzdio +# xz -2 is the most optimal for .src.rpm where compressed tarballs are recompressed +%_source_payload w2T.xzdio %_duplicate_files_terminate_build 1 %_unpackaged_subdirs_terminate_build 0 -- 2.17.1