]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
UBUNTU: [Packaging] use default zstd compression
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Mon, 7 Feb 2022 14:20:58 +0000 (14:20 +0000)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:57:33 +0000 (15:57 +0100)
commit132b570482e447db1884326ec1e44cb897f63035
treeeaaa6a7f989c5a8b87acc99a0f4198fbb67076d5
parent1eacd4987e036b419313750867fc8eb61accacaa
UBUNTU: [Packaging] use default zstd compression

Revert "UBUNTU: [Packaging] enforce xz compression for debs"

This reverts commit 45da4d72dea537910d970211ff8c345f4f9a2775.

The previous commit incorrectly stated that jammy dpkg default has
switched from xz to zstd. This change was done late in impish
cycle. [1] It also incorrectly states that there are no evident benefits
for the kernel packages to use zstd.

It is correct that zstd compression may require more
resources. However, the decompression speed and decompression memory
requirements are a lot faster. The choice to switch from xz to zstd by
default in Ubuntu was done to speed up installation and upgrade of all
packages, at the expense of slightly larger download sizes.

If we do want to futher optimize compression methods it should
probably be done on per subpackage type. For example, linux-image-ABI
already contains compressed kernel image and not much else, we can
choose to not compress that deb at all with compression method
none. Debug symbols are usually rarely installed, thus it might make
sense to keep them small and thus choose compress ddebs with
xz. However modules and tools should remain compressed with zstd.

[1] https://launchpad.net/ubuntu/+source/dpkg/1.20.9ubuntu2

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
debian/rules.d/2-binary-arch.mk
debian/rules.d/3-binary-indep.mk