Public bug reported:

It seems that virtualbox-dkms checks whether the current kernel for
which the virtualbox modules are being built is supported:

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.12.9 -C /lib/modules/5.12.9/build 
M=/var/lib/dkms/virtualbox/6.1.18/build....
ERROR (dkms apport): kernel package linux-headers-5.12.9 is not supported
Error!  Build of vboxnetadp.ko failed for: 5.12.9 (x86_64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/virtualbox/6.1.18/build/ for more information.

and while doign so, prevents the modules from being built.
The build however succeeds:

# make -j8 KERNELRELEASE=5.12.9 -C /lib/modules/5.12.9/build 
M=/var/lib/dkms/virtualbox/6.1.18/build
make: Entering directory '/usr/src/kernel/linux-5.12'
...
make: Leaving directory '/usr/src/kernel/linux-5.12'

so I suspect the test to be too agressive (exit code != 0?) and makes
dmks abort the build.

Could the warning be more lenient and not abort module building when the
kernel is not supported?

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1930911

Title:
  virtualbox dkms should not prevent building for unsupported kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1930911/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to