[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1116120: marked as done (Please specify version of linux-headers-generic that is being `Provide:`d)



Your message dated Wed, 24 Sep 2025 08:57:59 +0200
with message-id <20250924065759.dtha6i5ysszijzap@shell.thinkmo.de>
and subject line Re: Bug#1116120: Please specify version of linux-headers-generic that is being `Provide:`d
has caused the Debian Bug report #1116120,
regarding Please specify version of linux-headers-generic that is being `Provide:`d
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1116120: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1116120
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: linux-headers-amd64
Version: 6.16.8-1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

In debian, linux-headers-generic is a virtual package
that is provided by linux-headers-$ARCH.
For reasons, i need to specify a dependency on installed kernel headers
version in a package. I was hoping to do:
```
Depends: linux-headers-generic (>= 6.16)
```
... but that doesn't actually work
because the per-arch packages don't specify which version of
linux-headers-generic they provide, so i have to instead do:
```
Depends: linux-headers-amd64 (>= 6.16) [amd64],
         linux-headers-arm64 (>= 6.16) [ard64],
	 <...>
```
This seems suboptimal. It would be ideal if they could annotate the
version they provide:
```
Provides: linux-headers-generic = (6.12.38-1)
```

Roman.

- -- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.16.8+deb14-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-headers-amd64 depends on:
ii  linux-headers-6.16.8+deb14-amd64  6.16.8-1

linux-headers-amd64 recommends no packages.

linux-headers-amd64 suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE+UikBxeiu50LOdFYgbqkFMWfZdAFAmjTIe4ACgkQgbqkFMWf
ZdCvIQ/+OskPnaoZiJZHTgh7TGY+gZ1i66Rf71a4xTDz5u9lNEsYoJvN3JuodmYA
QVeMV3E9zqhDvwp/RYz4/cVCJxPU9+hj9s61p+EruNQDu6XQ6WDiFJHWiAvN4yGs
XP89F2l/QP17ScBLu1AfE5UUKyZDZSHQ0SbjXJnNAPV/HQ7+p9W3TOSibeZ1VhTA
KREh3IxHVOwIVC6x7eYywtXQE3dj1suG8cfVkwrsdRXZtXWhrwoqEMLIoCM7W49u
jrWrUt87zCX5WDam25jL2aZbwZW/jAaZpmAMNcTpHwbz7IWsk5KIKVFQ9+KCyqip
M3O1qM96BECVnYlQlAonGOC/s6nc51AtgX19/xQKM71qIw89ebk9iqpY8O0ftchE
ks+Zxh2h17si1p1h8cTxybesw8/5O9f+t79jKwjCEnE2zzn5vCrt8SXNly8UOyOQ
NGxh7oUqkvNo63Ml0N6FANFo8SXfrunALIV8vuGV9aMoRgRmAz4tbuwHWyXjlO9P
y60zVKXAn5qp1ymPCNI6/Zm8/m+v5Bd3RJw9OBJguRjdZz3Vzeo+xNTQY+kr7ql4
EhHxK0LMDz8LhJP7l2Od050CGnXpGK+jCUnZmXpxEd7fFzko56iuRt4mimFttPvP
sujm+MDI3ULlrO5kh8f9V/W/XK7+J1c5ES+UypovPUpDHg2siD4=
=K3Hg
-----END PGP SIGNATURE-----

--- 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 ---

Reply to: