Skip to contentSkip to conversation

tools/mkrpm: switch payload to gzip to reduce turnaround time

PATCH In review Olaf Hering 2 participants 2 messages Aug 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/mkrpm: switch payload to gzip to reduce turnaround time

rpmbuild -bb spents alot of time in compressing the binaries. Reduce the turnaround time of 'make rpmball' by using gzip as compression tool. This reduces the buildtime from 'w9.xzdio'/138 seconds to 'w1.gzdio'/88 seconds in my environment.
The downside is an increased filesize of xen.rpm, 19MB vs. 37MB.

---
 tools/misc/mkrpm | 1 +
 1 file changed, 1 insertion(+)
tools/misc/mkrpm +1 -0
index f9363a1456..ae40e1a4c4 100644
@@ -37,6 +37,7 @@ Group:   System/Hypervisor
 URL: http://xenbits.xenproject.org/xen.git
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+%define _binary_payload w1.gzdio
 %define __spec_install_post /usr/lib/rpm/brp-compress || :
 %define debug_package %{nil}
 

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#1 lore raw
Quoted 7 lines · Olaf Hering

rpmbuild -bb spents alot of time in compressing the binaries. Reduce the turnaround time of 'make rpmball' by using gzip as compression tool. This reduces the buildtime from 'w9.xzdio'/138 seconds to 'w1.gzdio'/88 seconds in my environment.
The downside is an increased filesize of xen.rpm, 19MB vs. 37MB.

Per my understanding, this target is mostly for developers to conveniently create an rpm file for testing. I don't think I would care about the increased size, but I will let others voice their opinions.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel