I tested the package on a generic 5.15 kernel and I realized it won't build at all because the exclusive kernel rule won't match 5.15 anymore because of the extra space added.
A new fix is required to solve this.
I attached a new debdiff with the proper fix.
Tested on a VM with 5.15.0-57-generic: It should build
ubuntu@jammy:~/rtl$ sudo dpkg -i rtl8821ce-dkms_5.5.2.1-0ubuntu11~0.22.04.3_all.deb
(Reading database ... 81589 files and directories currently installed.)
Preparing to unpack rtl8821ce-dkms_5.5.2.1-0ubuntu11~0.22.04.3_all.deb ...
Module rtl8821ce-5.5.2.1 for kernel 5.15.0-57-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.
rtl8821ce.ko:
- Uninstallation
- Deleting from: /lib/modules/5.15.0-57-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
/etc/modprobe.d/dkms.conf: removed 'blacklist rtw88_8821ce'
depmod...
Deleting module rtl8821ce-5.5.2.1 completely from the DKMS tree.
Unpacking rtl8821ce-dkms (5.5.2.1-0ubuntu11~0.22.04.3) over (5.5.2.1-0ubuntu11~0.22.04.3) ...
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu11~0.22.04.3) ...
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.15.0-57-generic
Building initial module for 5.15.0-57-generic
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.
rtl8821ce.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.15.0-57-generic/updates/dkms/
Also tested on a VM with linux-kvm. I should not build because modules is not there
ubuntu@jammy:~$ sudo dpkg -i rtl8821ce-dkms_5.5.2.1-0ubuntu11~0.22.04.3_all.deb
(Reading database ... 223166 files and directories currently installed.)
Preparing to unpack rtl8821ce-dkms_5.5.2.1-0ubuntu11~0.22.04.3_all.deb ...
Deleting module rtl8821ce-5.5.2.1 completely from the DKMS tree.
Unpacking rtl8821ce-dkms (5.5.2.1-0ubuntu11~0.22.04.3) over (5.5.2.1-0ubuntu11~0.22.04.2) ...
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu11~0.22.04.3) ...
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.15.0-1033-kvm
Building initial module for 5.15.0-1033-kvm
Error! The /var/lib/dkms/rtl8821ce/5.5.2.1/5.15.0-1033-kvm/x86_64/dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
The /var/lib/dkms/rtl8821ce/5.5.2.1/5.15.0-1033-kvm/x86_64/dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Skipped.
and on jammy:5.19. It should not build because it's a 5.19 not 5.15 kernel:
ubuntu@jammy:~$ sudo dpkg -i rtl8821ce-dkms_5.5.2.1-0ubuntu11~0.22.04.3_all.deb
Selecting previously unselected package rtl8821ce-dkms.
(Reading database ... 99576 files and directories currently installed.)
Preparing to unpack rtl8821ce-dkms_5.5.2.1-0ubuntu11~0.22.04.3_all.deb ...
Unpacking rtl8821ce-dkms (5.5.2.1-0ubuntu11~0.22.04.3) ...
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu11~0.22.04.3) ...
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.19.0-1025-aws
Building initial module for 5.19.0-1025-aws
Error! The /var/lib/dkms/rtl8821ce/5.5.2.1/5.19.0-1025-aws/x86_64/dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
This indicates that it should not be built.
Skipped.
I tested the package on a generic 5.15 kernel and I realized it won't build at all because the exclusive kernel rule won't match 5.15 anymore because of the extra space added.
A new fix is required to solve this.
I attached a new debdiff with the proper fix.
Tested on a VM with 5.15.0-57-generic: It should build dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 3_all.deb dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 3_all.deb ...
ubuntu@jammy:~/rtl$ sudo dpkg -i rtl8821ce-
(Reading database ... 81589 files and directories currently installed.)
Preparing to unpack rtl8821ce-
Module rtl8821ce-5.5.2.1 for kernel 5.15.0-57-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.
rtl8821ce.ko: 5.15.0- 57-generic/ updates/ dkms/
- Uninstallation
- Deleting from: /lib/modules/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
/etc/modprobe. d/dkms. conf: removed 'blacklist rtw88_8821ce' 1-0ubuntu11~ 0.22.04. 3) over (5.5.2. 1-0ubuntu11~ 0.22.04. 3) ... 1-0ubuntu11~ 0.22.04. 3) ... efi/efivars not found, aborting.
depmod...
Deleting module rtl8821ce-5.5.2.1 completely from the DKMS tree.
Unpacking rtl8821ce-dkms (5.5.2.
Setting up rtl8821ce-dkms (5.5.2.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.15.0-57-generic
Building initial module for 5.15.0-57-generic
EFI variables are not supported on this system
/sys/firmware/
Done.
rtl8821ce.ko: 5.15.0- 57-generic/ updates/ dkms/
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
/etc/modprobe. d/dkms. conf: added 'blacklist rtw88_8821ce'
depmod...
Also tested on a VM with linux-kvm. I should not build because modules is not there dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 3_all.deb dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 3_all.deb ... 1-0ubuntu11~ 0.22.04. 3) over (5.5.2. 1-0ubuntu11~ 0.22.04. 2) ... 1-0ubuntu11~ 0.22.04. 3) ... dkms/rtl8821ce/ 5.5.2.1/ 5.15.0- 1033-kvm/ x86_64/ dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. dkms/rtl8821ce/ 5.5.2.1/ 5.15.0- 1033-kvm/ x86_64/ dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
ubuntu@jammy:~$ sudo dpkg -i rtl8821ce-
(Reading database ... 223166 files and directories currently installed.)
Preparing to unpack rtl8821ce-
Deleting module rtl8821ce-5.5.2.1 completely from the DKMS tree.
Unpacking rtl8821ce-dkms (5.5.2.
Setting up rtl8821ce-dkms (5.5.2.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.15.0-1033-kvm
Building initial module for 5.15.0-1033-kvm
Error! The /var/lib/
The /var/lib/
This indicates that it should not be built.
Skipped.
and on jammy:5.19. It should not build because it's a 5.19 not 5.15 kernel:
ubuntu@jammy:~$ sudo dpkg -i rtl8821ce- dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 3_all.deb dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 3_all.deb ... 1-0ubuntu11~ 0.22.04. 3) ... 1-0ubuntu11~ 0.22.04. 3) ... dkms/rtl8821ce/ 5.5.2.1/ 5.19.0- 1025-aws/ x86_64/ dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
Selecting previously unselected package rtl8821ce-dkms.
(Reading database ... 99576 files and directories currently installed.)
Preparing to unpack rtl8821ce-
Unpacking rtl8821ce-dkms (5.5.2.
Setting up rtl8821ce-dkms (5.5.2.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.19.0-1025-aws
Building initial module for 5.19.0-1025-aws
Error! The /var/lib/
This indicates that it should not be built.
Skipped.