--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: linux-image-amd64: Please make "Provides: linux-image-generic" versioned so that one can depend on a Linux kernel with ">="
- From: Axel Beckert <abe@debian.org>
- Date: Sun, 19 Dec 2021 16:43:42 +0100
- Message-id: <87czlsfvm9.fsf@c-cactus.ontheroad.deuxchevaux.org>
Package: linux-image-amd64
Version: 5.15.5-1
Severity: wishlist
Please make the Linux image meta-package's "Provides:
linux-image-generic" versioned so that one can depend on a specific
Linux kernel or higher kernel versions with ">=".
Example use case:
hddtemp is made obsolete with Linux' drivetemp driver available since
kernel 5.6, so it would be nice to depend on something like "hddtemp |
linux-image-generic (>= 5.6)" instead of having to iterate over all
architecture-specific variants of the linux-image-* meta-packages.
Thanks in advance!
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (990, 'unstable'), (980, 'unstable-debug'), (600, 'testing'), (111, 'buildd-unstable'), (111, 'buildd-experimental'), (110, 'experimental'), (105, 'experimental-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 5.15.0-2-amd64 (SMP w/2 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages linux-image-amd64 depends on:
ii linux-image-5.15.0-2-amd64 5.15.5-1
linux-image-amd64 recommends no packages.
linux-image-amd64 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
On Wed, Sep 24, 2025 at 02:30:58AM +0300, Roman Lebedev wrote:
> > Please explain what you are trying to do. There is no real way to
> > depend on Linux headers and expect it to get something working.
> In case of things such as dkms modules, it's the version of kernel headers,
> and that is precisely what i was hoping to codify,
> only to discover that i then must manually enumerate
> each per-arch headers package.
This is not possible.
Those are only meta-packages. It just depends on the real packages and
users will have multiple versions installed of those at the same time.
So even a dependency on >= 6.12 does not mean a 6.1 can not show up.
There are other variants of the kernel or no generic one at all. So you
install headers of kernel the user does not want or just fail
completely.
So just don't do that. I'm also closing this here.
Bastian
--
Landru! Guide us!
-- A Beta 3-oid, "The Return of the Archons", stardate 3157.4
--- End Message ---