Your message dated Tue, 16 Sep 2025 23:04:22 +0000
with message-id <[email protected]>
and subject line Bug#1114731: fixed in dkms 3.2.2-1
has caused the Debian Bug report #1114731,
regarding /usr/lib/dkms/common.postinst (dkms_common.postinst.in) silently soft 
fails if no kernel headers are present
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 [email protected]
immediately.)


-- 
1114731: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114731
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dkms
Version: 3.2.0-1

If a dkms module package calls /usr/lib/dkms/common.postinst in its postinst (such as one built with dh-dkms and its default postinst [1]), but no kernel headers are present, it will output "Building for ", then exit 0, without actually building the module. This is because the common.postinst (from dkms_common.postinst.in [2]) just loops over the $KERNELS variable without checking if its empty.

Previously, the dkms package installed headers along with itself, but as of trixie, that stopped for various reasons (see related bug 1091428 [3]).

The postinst should generate a warning, if not an error, if no kernels are found. It's effectively a dependency being missing, but the installation ends with a false success. In an ideal world, package dependencies could address this, but for the reasons above, it's not practical to use package dependencies to ensure the *correct* kernel headers are installed.

I reported this upstream [4] but thought I ought to report it here as well because ultimately it's dh-dkms on Debian that's using said common postinst.

Happy to submit a patch to fix this, unless it's preferred to address it upstream first, in which case I'll start there.

1. https://salsa.debian.org/debian/dkms/-/blob/main/debian/scripts/postinst-dkms?ref_type=heads 2. https://salsa.debian.org/debian/dkms/-/blob/main/dkms_common.postinst.in?ref_type=heads#L212-219
3. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091428#10
4. https://github.com/dell/dkms/issues/545

--- End Message ---
--- Begin Message ---
Source: dkms
Source-Version: 3.2.2-1
Done: Andreas Beckmann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dkms, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <[email protected]> (supplier of updated dkms package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 17 Sep 2025 00:42:50 +0200
Source: dkms
Architecture: source
Version: 3.2.2-1
Distribution: unstable
Urgency: medium
Maintainer: Dynamic Kernel Module System Team <[email protected]>
Changed-By: Andreas Beckmann <[email protected]>
Closes: 1107232 1114731
Changes:
 dkms (3.2.2-1) unstable; urgency=medium
 .
   * New upstream release.
   * Stop shipping dkms.service. Not really needed and causes a dependency
     cycle with cloud-init-network.service.  (Closes: #1107232)
   * common.postinst: Emit a warning if no kernel headers were found.
     (Closes: #1114731)
   * Drop Pre-Depends: lsb-release, no longer used since 3.0.12.
   * Add Breaks against more obsolete *-dkms packages.
Checksums-Sha1:
 51aeca5264c65143a26965d572529246e5125699 2385 dkms_3.2.2-1.dsc
 72f49d5ddcc970507871c62a74027aaeccea1a71 110268 dkms_3.2.2.orig.tar.gz
 01c782ad3c2475f6ca26c1c6f8e49017e82f183a 25492 dkms_3.2.2-1.debian.tar.xz
 d87561d32bb8d09eda1dbdc9ee791487e381ffb0 5312 dkms_3.2.2-1_source.buildinfo
Checksums-Sha256:
 bce8f7ad2fafc9d148136011804632df5ed988615892fbb7d895e35a6ceda61d 2385 
dkms_3.2.2-1.dsc
 23e40a2b2e60047002727425e2307617d9899e51bfe22306a2c874259ed9605a 110268 
dkms_3.2.2.orig.tar.gz
 37044d835b83f9711b09a60283f99025de5bae7a00025c46483c53d4526fa50c 25492 
dkms_3.2.2-1.debian.tar.xz
 e1306f9dd7652344adb8691eac3dd287aa7e3c17a7ca28e657efe0e0c9dc9c6e 5312 
dkms_3.2.2-1_source.buildinfo
Files:
 0b7c5683e54e94929e509f3356faa2b1 2385 kernel optional dkms_3.2.2-1.dsc
 41ce8cf99e97cfd84842ff833e7c68d8 110268 kernel optional dkms_3.2.2.orig.tar.gz
 b21f56a50a63ba628e32428fb67ea417 25492 kernel optional 
dkms_3.2.2-1.debian.tar.xz
 b5ef82a3a7c5009a8a562330b3ca82fa 5312 kernel optional 
dkms_3.2.2-1_source.buildinfo

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

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmjJ6OoQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCN4vD/9zxh9KKw9U+rzAq5mdcC5DoK5/qeWOE8wV
173ivuVUQdeTEBd3HXbrGhDS8LtmyKNfDNIc+9muKkLLJdWGc25sNDrIM1LOWGMI
FUq3zPqmmHKKuEzHtbpSDEhU1VgKoWDi1tNNeEq1TNVHCWOGTn8Mv2GWYAXh7T0P
5DcSZDX9fkC6CB5bgx4VgUHKmFgSNVu71xmgVJt66Yq7L79tw68eopQLCKG6Fu8U
Xk6bE1F/hqbRYYJEZ+g+4SxZk5HJ7WMVm+X9ewHGHiTeJCsTrHxr73H5AopujRwJ
BmRWX1ChwZceg7u4nuQI0SSyvbf+RxOOJe4Q/K5gM0auxN76IJei9X8iY8xFis8I
SyPucAk5cke8V7xavJTjNddNehjmmuFi2Ghe99/0LPMWC1h6aUaxfzSb/nIFFaaC
8duNwSxLxhYlBo/6UPUrVWDZRybi4us0Xmi5XJVHaqa0yK9cpzNBsMmmxKoVHWTR
zFlbqHl+rBEmeXe/PArjM8yzY7P5q6O5W6cnbrkl8zjxfyC3Mkm1mZQhsl3Mf8NH
8BXSBIkeT5i0A4cDzH0OH06noSh7pgA6tt52VnaSrzxv2MnPtQp713pSgDRIVn7P
FyFFK+Ugbur34pBleY5EFf2gyXq/kFR8rxX1qQ7hXytqhgxj8oIjBF4/g9+qDFqc
/PR1fkDCgQ==
=f9YQ
-----END PGP SIGNATURE-----

Attachment: pgp5pRSwKI54A.pgp
Description: PGP signature


--- End Message ---

Reply via email to