ndiswrapper 1.60-6 ADT test failure with linux 5.0.0-1.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ndiswrapper (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Connor Kuehl |
Bug Description
NOTE: This SRU template was added 2019-05-10 after the original report was opened and was fixed for Disco. I'm adding this because this problem is affecting the Bionic HWE Edge kernel this SRU cycle. -connork
[Impact]
* The DKMS package fails to install on kernels based on 5.0; specifically noticed in the Bionic HWE Edge kernel.
[The Problem]
This module uses the "do_gettimeofday" API which has been deprecated and removed from the 5.0 kernels. As a result, on a 5.0 kernel, the module will not compile successfully during installation since it depends on symbols that are no longer there.
[Proposed Fix]
Backport the following patch which has already landed in Disco's version of this package to support the 5.0 kernels: https:/
[Test Case]
* Install the ndiswrapper-dkms package with a 5.0 kernel. The package should install without any errors.
[Testing]
These instructions were followed using the .debdiff in comment #5
- Create an Ubuntu 18.04 VM
- Install the HWE Edge kernel from -proposed (or one can find .debs here: https:/
- Install ndiswrapper; you can use apt ("sudo apt update" "sudo apt install ndiswrapper-dkms") or you can use "pull-lp-source ndiswrapper bionic" to build and install the .deb from that
- Confirm that installation fails
- Remove it "sudo apt remove ndiswrapper-dkms"
- If you haven't already: "pull-lp-source ndiswrapper bionic"
- Apply the debdiff ("debdiff-apply < ../ndiswrapper_
- Build the package ("debuild -us -uc")
- Install the package
- Verify it installs successfully! ("sudo dkms status")
[Regression Potential]
* Low. Changes are conditionally compiled based on the kernel being >= 5.0. These changes have also been in Disco.
Testing failed on:
amd64: https:/
i386: https:/
tags: | added: kernel-adt-failure |
description: | updated |
description: | updated |
The bug you filed does not include any build log. I have however built the driver locally against 5.0-rc3 and the change needed was do_gettimeofday -> ktime_get_real().