rpmbuild w2.xzdio and multithreading

Reindl Harald h.reindl at thelounge.net
Thu Jul 3 19:29:56 UTC 2014


is there any way to set the two options below in .rpmmacros
to use multi-threading? the shell-script below works in case
of tar but XZ_OPT env is ignored by rpmbuild and seeking
two hours the internet don't give any answer

in case of tar --threads=0 improves performance dramatically
on a modern CPU most of the time with a lot of idle cores

%_binary_payload w2.xzdio
%_source_payload w2.xzdio
______________________________________________

#!/bin/bash
export XZ_OPT="-2 --threads=0"
/usr/bin/nice -n 19 /usr/bin/tar -p -cJf $1.tar.xz $1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140703/e75d8704/attachment.sig>


More information about the devel mailing list