Recently, dkms has started printing useless warning messages like the following:
# dkms status
nvidia-current/510.60.02, 5.16.0-6-amd64, x86_64: installed
nvidia-current/510.60.02, 5.17.0-1-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
nvidia-current/510.60.02, 5.17.0-3-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD
zfs/2.1.4, 5.16.0-6-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD
zfs/2.1.4, 5.17.0-1-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD
zfs/2.1.4, 5.17.0-3-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD
I don't care about deprecated features, especially when a) it's a non-fatal
error and doesn't cause the compilation to fail, and b) the warning doesn't
actually help me to fix the problem...or tell me whether it is a problem that
I can actually fix or not and c) the useless warning makes the useful part of
the output unreadable.
It doesn't bother to indicate what config file is using this deprecated
feature, so there's no way to know what, if anything, to fix, where to fix
it, or what package is at fault so I submit a bug report.
I don't even know if it's caused by a problem in MY configuration, or if it's
in one or more of the -dkms packages that I have installed. I presume the
latter is the case, because grepping for REMAKE_INITRD in /etc and
/usr/lib/initramfs doesn't return anything. It does appear in
/usr/src/zfs-2.1.4/dkms.conf, but not in nvidia-current-510.60.02/dkms.conf.
If I edit /usr/sbin/dkms and comment out the code in the deprecated function:
deprecated() (
return 0
#exec >&2
#echo -n $"Deprecated feature: "
#for s in "$@"; do echo "$s"; done
)
then the output is readable and useful again:
# dkms status
nvidia-current/510.60.02, 5.16.0-6-amd64, x86_64: installed
nvidia-current/510.60.02, 5.17.0-1-amd64, x86_64: installed
nvidia-current/510.60.02, 5.17.0-3-amd64, x86_64: installed
zfs/2.1.4, 5.16.0-6-amd64, x86_64: installed
zfs/2.1.4, 5.17.0-1-amd64, x86_64: installed
zfs/2.1.4, 5.17.0-3-amd64, x86_64: installed
BTW, this deprecated() function is called from the script's read_conf()
function. It seems to me that printing a warning message about a deprecated
feature in a specific dkms.conf file should be done in the safe_source()
function instead - at least there it could print the path to the problematic
conf file at the time it is being read, rather than repeat it on every
output line whether the deprecated feature is used in a particular -dkms
package or not - e.g. as shown above, zfs-dkms has REMAKE_INITRD, while
nvidia-kernel-dkms does not, but the warning is printed on the nvidia lines
too.
craig
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 1012043@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 14 Jun 2022 09:28:22 +0200
Source: dkms
Architecture: source
Version: 3.0.3-4
Distribution: unstable
Urgency: medium
Maintainer: Dynamic Kernel Module System Team <dkms@packages.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 966601 1012043 1012285
Changes:
dkms (3.0.3-4) unstable; urgency=medium
.
* Make deprecation warnings less noisy and more informative.
(Closes: #1012043)
* Add new feature BUILD_EXCLUSIVE_CONFIG="CONFIG_FOO !CONFIG_BAR".
* dh_dkms: Bump generated dependency if BUILD_EXCLUSIVE_CONFIG is used.
* Upload to unstable.
.
dkms (3.0.3-3) experimental; urgency=medium
.
* dkms-autopkgtest: Try not to fail if linux-doc is not installed.
* Set 'our $VERSION' in dh_dkms to show it along autoscripts.
* Move dh-dkms into a separate package. (Closes: #966601)
* Regenerate dh_dkms(1).
* Clean up obsolete conffiles from /etc/dkms/template*/*. (Closes: #1012285)
* Upload to experimental.
Checksums-Sha1:
1d165a73616f5663fe864f242a6f7fdadcce53bc 2067 dkms_3.0.3-4.dsc
cbaca9d81f3682ed42ed715fb4e9448a71595d7c 22240 dkms_3.0.3-4.debian.tar.xz
179b94e1e7fdc27bff6e368a83b48804681d5d02 5428 dkms_3.0.3-4_source.buildinfo
Checksums-Sha256:
155b61d0b8b613160f4b9b3820ea36e24384798222d9c3edc7ea52185f9e7f4c 2067 dkms_3.0.3-4.dsc
777f5b758041169bd0400a27bd5ab6480260de407c480742725d7f93fcd057a7 22240 dkms_3.0.3-4.debian.tar.xz
0c056697412b262e60bf7b137ce4097ffc091c7b480aaa1bc6eebd8228075c0c 5428 dkms_3.0.3-4_source.buildinfo
Files:
344353fd138713be970d9ba517cb56b4 2067 kernel optional dkms_3.0.3-4.dsc
5ef61cfaa035397b93bbd0b2cbfaf9bb 22240 kernel optional dkms_3.0.3-4.debian.tar.xz
740b3213bab71d2206670cb6e814ca55 5428 kernel optional dkms_3.0.3-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmKoOoQQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCIVDD/9zgxdovzGZMjvcSesqbvDzclAkWf4rLP39
cHZh38GNl5yve4/5LgT4fpgGaubxhSSsh75JZGl32IRGvr54huDZBg7lp78qeFIW
w58r6MrhTMRbZAXOQw5nqB2rGtk+iPqlsjEy34YyZHr0L726Hk06opusaqCkD4Dg
EGtOeMih/g/6aOo4s6EpvlaUxKY0lGu8ZmEW/X1LM5U7GeAQYf+vlsxTWPeOF+LK
6wMkRT8KB/xvUDyFe0/od6A2YVwved+gcNAQgu0m7JZqsapZ0Bk1BAiaDiIt69+I
rN2FHtPGiM/fz14P4ApPTRj5q/Qxacm78V1ZhhPIrc8nLLMh6LjtLi5BobRrMZMY
YAOGN4LUcfa3rKE7VtXoFXIMyBCtVDqt84sb5RPQLEXTrtLW7LlYAtx0CBmxk4mr
rlVs6M8A6ACfahccEuO436YLjPJ3OdqxNyS6FPzqKbsk6gBm3/P1NnHM3nAji9Dk
jqe0GK1mbhsDrE5QbS0DfynYxYhGPzE2CzYohrIOfWPFfUqm4Ktz3bjqM3Aa5kQv
2HXlWK/gXUxR/xAVoVV2P7lNNMFAuQGwqDPinUzkBbTWJIGfJiH+oEKeJqx94j1F
FX3RTHYyb6zK+GXU9IHr+HFPlfaemnpBcw0pXoK/GSQUuga8jzwAy6p+Hd8hTNEP
WxTktXnLLg==
=j+ll
-----END PGP SIGNATURE-----