Skip to content

Downgrade dependency from headers to image to recommends

Luca Boccassi requested to merge bluca/linux:headers_dep into master

With the next version of systemd we'll need to build-depend on linux-headers-generic to pull in vmlinux.h, to build some BPF program.

Due to the dependency from the headers to the image package, in unstable this currently pulls in:

$ apt install --no-install-recommends linux-headers-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'linux-headers-amd64' instead of 'linux-headers-generic'
The following additional packages will be installed:
  cpio dmsetup initramfs-tools initramfs-tools-core klibc-utils kmod libapparmor1 libargon2-1 libcryptsetup12 libdevmapper1.02.1 libelf1t64 libfdisk1 libjson-c5 libklibc libkmod2 libsystemd-shared linux-base
  linux-headers-6.7.9-amd64 linux-headers-6.7.9-common linux-image-6.7.9-amd64 linux-kbuild-6.7.9 logsave mount systemd systemd-dev udev
Suggested packages:
  libarchive-dev bash-completion linux-doc-6.7 debian-kernel-handbook grub-pc | grub-efi-amd64 | extlinux nfs-common systemd-container systemd-homed systemd-userdbd systemd-boot systemd-resolved libfido2-1
  libip4tc2 libqrencode4 libtss2-esys-3.0.2-0 libtss2-mu-4.0.1-0 libtss2-rc0 libtss2-tcti-device0 polkitd
Recommended packages:
  busybox | busybox-static zstd firmware-linux-free apparmor default-dbus-system-bus | dbus-system-bus systemd-timesyncd | time-daemon
The following NEW packages will be installed:
  cpio dmsetup initramfs-tools initramfs-tools-core klibc-utils kmod libapparmor1 libargon2-1 libcryptsetup12 libdevmapper1.02.1 libelf1t64 libfdisk1 libjson-c5 libklibc libkmod2 libsystemd-shared linux-base
  linux-headers-6.7.9-amd64 linux-headers-6.7.9-common linux-headers-amd64 linux-image-6.7.9-amd64 linux-kbuild-6.7.9 logsave mount systemd systemd-dev udev
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 115 MB/122 MB of archives

Which is a bit excessive, not to mention worrying as systemd will transitively build depend on itself.

The reason the dependency from headers to image was added was for a theoretical use case of a user building a dkms module that requires the kernel image to be present. Such a use case is as of now not identified, and given by default on user machines recommends are installed, the downgrade should not affect this use case, should it appear in the future.

Closes: #1064976

Merge request reports

Loading