From 39eefe69c9cde6d575be06028cbbb484e3d47e0c Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Oct 29 2019 19:45:08 +0000 Subject: Switch up compression to be faster --- diff --git a/kernel.spec b/kernel.spec index 5c35165..4830f6c 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1,6 +1,22 @@ # We have to override the new %%install behavior because, well... the kernel is special. %global __spec_install_pre %{___build_pre} +# At the time of this writing (2019-03), RHEL8 packages use w2.xzdio +# compression for rpms (xz, level 2). +# Kernel has several large (hundreds of mbytes) rpms, they take ~5 mins +# to compress by single-threaded xz. Switch to threaded compression, +# and from level 2 to 3 to keep compressed sizes close to "w2" results. +# +# NB: if default compression in /usr/lib/rpm/redhat/macros ever changes, +# this one might need tweaking (e.g. if default changes to w3.xzdio, +# change below to w4T.xzdio): +# +# This is disabled on i686 as it triggers oom errors + +%ifnarch i686 +%define _binary_payload w3T.xzdio +%endif + Summary: The Linux kernel # For a kernel released for public testing, released_kernel should be 1.