v5.2.18 dkms fails to build with 5.0 kernel on bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virtualbox (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Connor Kuehl |
Bug Description
[Impact]
* virtualbox-dkms fails to build on 5.0 kernels. This affects Bionic because the Bionic HWE Edge kernels are based on 5.0. virtualbox-dkms cannot be installed successfully since the DKMS module can't be compiled due to API changes introduced between Linux 4.15 and 5.0.
[Test Case]
* Install the HWE Edge kernel on Bionic:
- `sudo apt install linux-generic-
* Reboot into the new kernel (you should be on a 5.0 kernel now)
* Try installing `virtualbox-dkms` (`sudo apt install virtualbox-dkms`)
- Expected result: package installs successfully, module can be viewed with `sudo dkms status`
- Actual result: Installation fails due to compilation errors when building the DKMS module.
[Testing]
These steps were performed in an amd64 virtual machine installed from a Bionic cloud image for both the 4.15 kernel that comes with the image as well as a 5.0.0 kernel that is installed from the HWE Edge package.
* Create a .deb with the .debdiff attached to comment #3
- `sudo apt build-dep virtualbox` (you will need to uncomment the deb-src lines in /etc/apt/
- `pull-lp-source virtualbox bionic`
- `patch -p1 < path/to/
- `quilt push -a`
- `debuild -b -us -uc`
== the step above can be completed just once independently of which kernel you're testing on ==
* Install `virtualbox-dkms` with apt and confirm it installs properly (only on 4.15; on 5.0, this step should fail)
- `sudo apt install virtualbox-dkms`
* Remove `virtualbox-dkms`
- `sudo apt remove virtualbox-dkms`
* Install the new .deb prepared in the first step.
* Confirm that installation succeeded (there would be errors if it didn't.) The module should also be listed when running `sudo dkms status` -- this step should succeed on both 4.15 and 5.0 kernels.
[Regression Potential]
* These changes are conditionally compiled depending on the kernel version. The only exception to this is the addition of an inlined function for operating on timespec64. That is conditionally compiled based on whether the kernel has timespec64, not necessarily just on the kernel version.
Original bug description follows:
-------
v5.2.18 dkms fails to build on bionic with the recently released 5.0 kernel from hwe-18.04-edge
I've attached a patch which doesn't seem to not work. It should definitely be reviewed by someone with domain knowledge, though. The problems were all use of interfaces deprecated in 4.0.
Changed in virtualbox (Ubuntu Bionic): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Connor Kuehl (connork) |
The attachment "5.0 kernel build fix" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]