oss4-dkms fails to build when CONFIG_USB/CFG80211 is disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oss4 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Jammy |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
SRU justification:
[Impact]
This is encountered on linux kernel derivatives with fewer configuration options enabled.
First time saw on jammy:linux-
During build, it fails with the following error:
...
ERROR: modpost: "wiphy_free" [/var/lib/
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_
ERROR: modpost: "usb_kill_urb" [/var/lib/
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_
ERROR: modpost: "ieee80211_
ERROR: modpost: "cfg80211_get_bss" [/var/lib/
ERROR: modpost: "usb_deregister" [/var/lib/
ERROR: modpost: "wiphy_unregister" [/var/lib/
WARNING: modpost: suppressed 29 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/
make[2]: *** Deleting file '/var/lib/
make[1]: *** [Makefile:1821: modules] Error 2
make[1]: Leaving directory '/usr/src/
make: *** [Makefile:1457: modules] Error 2
because CONFIG_USB=n, CONFIG_CFG80211=n
[Fix]
Add a rule to build oss4-dkms when CONFIG_USB=y/m
[Test Plan]
Install a new version of jammy:linux-kvm (1029 for example).
apt install oss4 will fail as described above.
After the fix, it will not built at all.
Once the package is in proposed, a new adt is triggered against proposed for jammy:linux-kvm.
[Where problems could occur]
Low possibility of new issues.
[Note]
This fix is not scalable in the sense that if configuration name changes, the module has to be changed as well.
because CONFIG_USB=n.
[Fix]
Add a rule to build oss4 when CONFIG_USB=y/m
[Test Plan]
Install a new version of jammy:linux-kvm (1029 for example).
apt install oss4 will fail as described above.
After the fix, it will not built at all.
Once the package is in proposed, a new adt is triggered against proposed for jammy:linux-kvm.
[Where problems could occur]
Low possibility of new issues.
[Note]
This fix is not scalable in the sense that if configuration name changes, the module has to be changed as well.
description: | updated |
summary: |
- oss4-dkms fails to build when CONFIG_USB is disabled + oss4-dkms fails to build when CONFIG_USB/CFG80211 is disabled |
description: | updated |
Attached the debdiff
Test results: 4.2-build2010- 5ubuntu9. 2_amd64. deb 4.2-build2010- 5ubuntu9. 2_amd64. deb ... 5ubuntu9. 2) ... 5ubuntu9. 2) ... dkms/oss4/ 4.2-build2010/ 5.15.0- 1029-kvm/ x86_64/ dkms.conf for module oss4 includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
dpkg -i oss4-dkms_
Selecting previously unselected package oss4-dkms.
(Reading database ... 141776 files and directories currently installed.)
Preparing to unpack oss4-dkms_
Unpacking oss4-dkms (4.2-build2010-
Setting up oss4-dkms (4.2-build2010-
Loading new oss4-4.2-build2010 DKMS files...
Building for 5.15.0-1029-kvm
Building initial module for 5.15.0-1029-kvm
Error! The /var/lib/
This indicates that it should not be built.
Skipped.