summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2019-10-25 12:47:30 -0400
committerLaura Abbott <labbott@redhat.com>2019-10-29 15:45:08 -0400
commit39eefe69c9cde6d575be06028cbbb484e3d47e0c (patch)
treedb46ae3246dcf65d6dafaa63a6a7a8c0cda1a2a4
parent5a7f6d996dfe3dbd81bf569d3b8b633912636b17 (diff)
downloadkernel-39eefe69c9cde6d575be06028cbbb484e3d47e0c.tar.gz
kernel-39eefe69c9cde6d575be06028cbbb484e3d47e0c.tar.xz
kernel-39eefe69c9cde6d575be06028cbbb484e3d47e0c.zip
Switch up compression to be faster
-rw-r--r--kernel.spec16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index 5c35165a2..4830f6c26 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.