Since 23th of Feb, some adt test for dkms packages (digimend-dkms is an example) started to pass even though it should fail.
Before, the test would fail during build, because CONFIG_USB=n.
Could not reproduce it locally, in a vm, a simple sudo apt install digimend-dkms will fail during build.
```
I: Testing binary package digimend-dkms
I: Trying to build digimend/10 for 5.15.0-1028-kvm
Creating symlink /var/lib/dkms/digimend/10/source -> /usr/src/digimend-10
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j1 KERNELRELEASE=5.15.0-1028-kvm KVERSION=5.15.0-1028-kvm...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.0-1028-kvm (x86_64)
Consult /var/lib/dkms/digimend/10/build/make.log for more information.
E: digimend/10 failed to build for 5.15.0-1028-kvm
========== /var/lib/dkms/digimend/10/build/make.log ==========
DKMS make.log for digimend-10 for kernel 5.15.0-1028-kvm (x86_64)
Sat Jan 28 00:05:19 UTC 2023
make -C /lib/modules/5.15.0-1028-kvm/build M=/var/lib/dkms/digimend/10/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-1028-kvm'
CC [M] /var/lib/dkms/digimend/10/build/hid-kye.o
CC [M] /var/lib/dkms/digimend/10/build/hid-uclogic-core.o
CC [M] /var/lib/dkms/digimend/10/build/hid-uclogic-rdesc.o
CC [M] /var/lib/dkms/digimend/10/build/hid-uclogic-params.o
/var/lib/dkms/digimend/10/build/hid-uclogic-params.c: In function ‘uclogic_params_init’:
/var/lib/dkms/digimend/10/build/hid-uclogic-params.c:1147:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
1147 | if (bNumInterfaces != 3) {
| ^
/var/lib/dkms/digimend/10/build/hid-uclogic-params.c:1165:9: note: here
1165 | case VID_PID(USB_VENDOR_ID_HUION,
| ^~~~
LD [M] /var/lib/dkms/digimend/10/build/hid-uclogic.o
CC [M] /var/lib/dkms/digimend/10/build/hid-polostar.o
CC [M] /var/lib/dkms/digimend/10/build/hid-viewsonic.o
MODPOST /var/lib/dkms/digimend/10/build/Module.symvers
ERROR: modpost: "usb_string" [/var/lib/dkms/digimend/10/build/hid-uclogic.ko] undefined!
ERROR: modpost: "usb_control_msg" [/var/lib/dkms/digimend/10/build/hid-uclogic.ko] undefined!
ERROR: modpost: "usb_hid_driver" [/var/lib/dkms/digimend/10/build/hid-uclogic.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:133: /var/lib/dkms/digimend/10/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/digimend/10/build/Module.symvers'
make[1]: *** [Makefile:1819: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-1028-kvm'
make: *** [Makefile:25: modules] Error 2
====================
./digimend/10/build/make.log
autopkgtest [00:05:23]: test dkms-autopkgtest: -----------------------]
dkms-autopkgtest FAIL non-zero exit status 1
autopkgtest [00:05:24]: test dkms-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [00:05:24]: @@@@@@@@@@@@@@@@@@@@ summary
dkms-autopkgtest FAIL non-zero exit status 1
```
Test fails with exitcode 1, and autopkgtest return 4 as exitcode.
This happens in multiple modules (oss4, rtl8812au), they are supposed to fail because a config is not enabled, but now they pass (superficially). This may affect other derivatives as well that have some config options disabled.
To be investigated.
Since 23th of Feb, some adt test for dkms packages (digimend-dkms is an example) started to pass even though it should fail.
Before, the test would fail during build, because CONFIG_USB=n.
Logs from last time it failed: /autopkgtest. ubuntu. com/results/ autopkgtest- jammy/jammy/ amd64/d/ digimend- dkms/20230213_ 171044_ 032fa@/ log.gz
https:/
Logs where test passes. /autopkgtest. ubuntu. com/results/ autopkgtest- jammy/jammy/ amd64/d/ digimend- dkms/20230213_ 171044_ 032fa@/ log.gz
https:/
Could not reproduce it locally, in a vm, a simple sudo apt install digimend-dkms will fail during build. dkms/digimend/ 10/source -> /usr/src/ digimend- 10
```
I: Testing binary package digimend-dkms
I: Trying to build digimend/10 for 5.15.0-1028-kvm
Creating symlink /var/lib/
Kernel preparation unnecessary for this kernel. Skipping...
Building module: 5.15.0- 1028-kvm KVERSION= 5.15.0- 1028-kvm. ..(bad exit status: 2) dkms/digimend/ 10/build/ make.log for more information. dkms/digimend/ 10/build/ make.log ========== 5.15.0- 1028-kvm/ build M=/var/ lib/dkms/ digimend/ 10/build modules linux-headers- 5.15.0- 1028-kvm' dkms/digimend/ 10/build/ hid-kye. o dkms/digimend/ 10/build/ hid-uclogic- core.o dkms/digimend/ 10/build/ hid-uclogic- rdesc.o dkms/digimend/ 10/build/ hid-uclogic- params. o dkms/digimend/ 10/build/ hid-uclogic- params. c: In function ‘uclogic_ params_ init’: dkms/digimend/ 10/build/ hid-uclogic- params. c:1147: 20: warning: this statement may fall through [-Wimplicit- fallthrough= ] dkms/digimend/ 10/build/ hid-uclogic- params. c:1165: 9: note: here USB_VENDOR_ ID_HUION, dkms/digimend/ 10/build/ hid-uclogic. o dkms/digimend/ 10/build/ hid-polostar. o dkms/digimend/ 10/build/ hid-viewsonic. o dkms/digimend/ 10/build/ Module. symvers dkms/digimend/ 10/build/ hid-uclogic. ko] undefined! dkms/digimend/ 10/build/ hid-uclogic. ko] undefined! dkms/digimend/ 10/build/ hid-uclogic. ko] undefined! Makefile. modpost: 133: /var/lib/ dkms/digimend/ 10/build/ Module. symvers] Error 1 dkms/digimend/ 10/build/ Module. symvers' linux-headers- 5.15.0- 1028-kvm' ======= ====== 10/build/ make.log ------- ------- --] @@@@@@@ @@@@@@ summary
cleaning build area...
make -j1 KERNELRELEASE=
Error! Bad return status for module build on kernel: 5.15.0-1028-kvm (x86_64)
Consult /var/lib/
E: digimend/10 failed to build for 5.15.0-1028-kvm
========== /var/lib/
DKMS make.log for digimend-10 for kernel 5.15.0-1028-kvm (x86_64)
Sat Jan 28 00:05:19 UTC 2023
make -C /lib/modules/
make[1]: Entering directory '/usr/src/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
/var/lib/
/var/lib/
1147 | if (bNumInterfaces != 3) {
| ^
/var/lib/
1165 | case VID_PID(
| ^~~~
LD [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
MODPOST /var/lib/
ERROR: modpost: "usb_string" [/var/lib/
ERROR: modpost: "usb_control_msg" [/var/lib/
ERROR: modpost: "usb_hid_driver" [/var/lib/
make[2]: *** [scripts/
make[2]: *** Deleting file '/var/lib/
make[1]: *** [Makefile:1819: modules] Error 2
make[1]: Leaving directory '/usr/src/
make: *** [Makefile:25: modules] Error 2
=======
./digimend/
autopkgtest [00:05:23]: test dkms-autopkgtest: -------
dkms-autopkgtest FAIL non-zero exit status 1
autopkgtest [00:05:24]: test dkms-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [00:05:24]: @@@@@@@
dkms-autopkgtest FAIL non-zero exit status 1
```
Test fails with exitcode 1, and autopkgtest return 4 as exitcode.
This happens in multiple modules (oss4, rtl8812au), they are supposed to fail because a config is not enabled, but now they pass (superficially). This may affect other derivatives as well that have some config options disabled.
To be investigated.