Bug#1011317: dkms: spurious messages "Module build for kernel ... was skipped" for non-installed kernels

2023-11-08 Thread Thorsten Glaser
Package: dkms
Version: 2.8.4-3
Followup-For: Bug #1011317
X-Debbugs-Cc: t...@mirbsd.de

I’m also running into this:

Building for 4.19.0-18-amd64, 5.10.0-25-amd64 and 5.10.0-26-amd64
Module build for kernel 4.19.0-18-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.

This box was originally a buster and is now a bullseye; dkms seems
to have forgotten all but one of the previously installed buster
kernels. They have been properly purged on apt/dpkg level:

tglase@tglase-edge:~ $ dpkg -l | fgrep linux- | cut -c 1-$COLUMNS
ii  binutils-x86-64-linux-gnu   2.35.2-2
 amd64GNU
ii  linux-base  4.6 
 all  Lin
ii  linux-compiler-gcc-10-x86   5.10.197-1  
 amd64Com
ii  linux-headers-5.10.0-25-amd64   5.10.191-1  
 amd64Hea
ii  linux-headers-5.10.0-25-common  5.10.191-1  
 all  Com
ii  linux-headers-5.10.0-26-amd64   5.10.197-1  
 amd64Hea
ii  linux-headers-5.10.0-26-common  5.10.197-1  
 all  Com
ii  linux-headers-amd64 5.10.197-1  
 amd64Hea
ii  linux-image-5.10.0-25-amd64 5.10.191-1  
 amd64Lin
ii  linux-image-5.10.0-26-amd64 5.10.197-1  
 amd64Lin
ii  linux-image-amd64   5.10.197-1  
 amd64Lin
ii  linux-kbuild-5.10   5.10.197-1  
 amd64Kbu
ii  linux-libc-dev:amd645.10.197-1  
 amd64Lin
ii  linux-source-5.10   5.10.197-1  
 all  Lin



-- System Information:
Debian Release: 11.8
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldstable-proposed-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-26-amd64 (SMP w/3 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages dkms depends on:
ii  build-essential  12.9
ii  coreutils8.32-4+b1
ii  dctrl-tools  2.24-3+b1
ii  dpkg-dev 1.20.13
ii  gcc [c-compiler] 4:10.2.1-1
ii  gcc-10 [c-compiler]  10.2.1-6
ii  kmod 28-1
ii  lsb-release  11.1.0
ii  make 4.3-4.1
ii  patch2.7.6-7

Versions of packages dkms recommends:
ii  fakeroot 1.25.3-1.1
ii  linux-headers-amd64 [linux-headers-generic]  5.10.197-1
ii  sudo 1.9.5p2-3+deb11u1

Versions of packages dkms suggests:
ii  e2fsprogs  1.46.2-2
ii  menu   2.1.48

-- Configuration Files:
/etc/dkms/framework.conf changed:
autoinstall_all_kernels=1


-- no debconf information


Bug#1011317: dkms: spurious messages "Module build for kernel ... was skipped" for non-installed kernels

2022-05-19 Thread Vincent Lefevre
Package: dkms
Version: 3.0.3-1
Severity: minor

I got the following during an upgrade of the nvidia packages:

Building for 5.14.0-1-amd64, 5.14.0-2-amd64, 5.14.0-3-amd64, 5.14.0-4-amd64, 
5.15.0-1-amd64, 5.15.0-3-amd64, 5.16.0-1-amd64, 5.16.0-2-amd64, 5.16.0-3-amd64, 
5.16.0-4-amd64, 5.17.0-1-amd64 and 5.17.0-2-amd64
Module build for kernel 5.14.0-1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.14.0-2-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.14.0-3-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.14.0-4-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.15.0-1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.15.0-3-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.16.0-1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.16.0-2-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.16.0-3-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.16.0-4-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.

but the only installed kernels are 5.17.0-1-amd64 and 5.17.0-2-amd64
(note that I'm talking about the kernel images, not the kernel headers).
The other kernels had been installed in the past, but I removed them
(I keep 2 kernels only).

The dkms(8) man page says:

  $autoinstall_all_kernels
  used by the common postinst for DKMS modules. It controls if the
  build should be done for all installed kernels or only  for  the
   ^
  current  and  latest  installed  kernel.  It has no command line
  equivalent.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, 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 dkms depends on:
ii  build-essential 12.9
ii  clang-10 [c-compiler]   1:10.0.1-8+b1
ii  clang-11 [c-compiler]   1:11.1.0-6+b2
ii  clang-12 [c-compiler]   1:12.0.1-20+b1
ii  clang-13 [c-compiler]   1:13.0.1-4
ii  clang-3.5 [c-compiler]  1:3.5.2-5
ii  clang-3.6 [c-compiler]  1:3.6.2-4
ii  clang-3.7 [c-compiler]  1:3.7.1-3+b2
ii  clang-7 [c-compiler]1:7.0.1-12
ii  clang-8 [c-compiler]1:8.0.1-10+b1
ii  clang-9 [c-compiler]1:9.0.1-20+b1
ii  coreutils   8.32-4.1
ii  dctrl-tools 2.24-3+b1
ii  dpkg-dev1.21.7
ii  gcc [c-compiler]4:11.2.0-2
ii  gcc-10 [c-compiler] 10.3.0-15
ii  gcc-11 [c-compiler] 11.3.0-3
ii  gcc-12 [c-compiler] 12.1.0-2
ii  gcc-4.6 [c-compiler]4.6.4-7
ii  gcc-4.8 [c-compiler]4.8.5-4
ii  gcc-4.9 [c-compiler]4.9.4-2
ii  gcc-5 [c-compiler]  5.5.0-12
ii  gcc-6 [c-compiler]  6.5.0-2
ii  gcc-8 [c-compiler]  8.4.0-7
ii  gcc-9 [c-compiler]  9.4.0-5
ii  kmod29-1
ii  lsb-release 11.1.0
ii  make4.3-4.1
ii  patch   2.7.6-7
ii  tcc [c-compiler]0.9.27+git20200814.62c30a4a-1

Versions of packages dkms recommends:
ii  fakeroot 1.28-1
ii  linux-headers-amd64 [linux-headers-generic]  5.17.6-1
ii  sudo 1.9.10-3

Versions of packages dkms suggests:
ii  e2fsprogs  1.46.5-2
ii  menu   2.1.49

-- Configuration Files:
/etc/dkms/framework.conf changed:
verbose="1"
autoinstall_all_kernels="1"


-- no debconf information

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)