rtl8821ce-dkms build failure on focal with linux hwe 5.15

Bug #1960170 reported by Andrea Righi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rtl8821ce (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

rtl8821ce driver fails to build on focal with the latest linux hwe 5.15:

fatal error: net/ipx.h: No such file or directory
   25 | #include <net/ipx.h>
      | ^~~~~~~~~~~
compilation terminated.

[Test case]

 $ sudo apt install rtl8821ce-dkms

[Fix]

Drop IPX support (deprecated in newer kernel). Same patch has been applied in jammy (this fix is a backport of the same patch).

[Regression potential]

IPX is not supported anymore, so we may experience regressions for those that are still using and relying on this protocol with the rtl8821ce driver.

Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach fixes build failures on focal with linux hwe 5.15.

tags: added: patch
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Fixed version to be 5.5.2.1-0ubuntu4~20.04.5

Changed in rtl8821ce (Ubuntu):
status: New → Fix Released
Changed in rtl8821ce (Ubuntu Focal):
status: New → In Progress
Revision history for this message
Andy Whitcroft (apw) wrote : Please test proposed package

Hello Andrea, or anyone else affected,

Accepted rtl8821ce into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rtl8821ce/5.5.2.1-0ubuntu4~20.04.5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in rtl8821ce (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

1) launched focal lxd container
2) enabled proposed
3) installed the v5.15 based kernel
apt install linux-generic-hwe-20.04-edge
4) disabled proposed

5) observed that it fails to install

Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.4) ...
Loading new rtl8821ce-5.5.2.1 DKMS files...
It is likely that 5.13.0-40-generic belongs to a chroot's host
Building for 5.15.0-25-generic
Building initial module for 5.15.0-25-generic
Error! Bad return status for module build on kernel: 5.15.0-25-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/5.5.2.1/build/make.log for more information.
dpkg: error processing package rtl8821ce-dkms (--configure):
 installed rtl8821ce-dkms package post-installation script subprocess returned error exit s
tatus 10
Errors were encountered while processing:
 rtl8821ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

6) enabled proposed once again

7) observed that from proposed installs & builds fine

Unpacking rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.5) over (5.5.2.1-0ubuntu4~20.04.4) ...
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.5) ...
Loading new rtl8821ce-5.5.2.1 DKMS files...
It is likely that 5.13.0-40-generic belongs to a chroot's host
Building for 5.15.0-25-generic
Building initial module for 5.15.0-25-generic
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-25-generic/updates/dkms/

/etc/modprobe.d/dkms.conf: added 'blacklist rtw88_8821ce'
depmod...

DKMS: install completed.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rtl8821ce - 5.5.2.1-0ubuntu4~20.04.5

---------------
rtl8821ce (5.5.2.1-0ubuntu4~20.04.5) focal; urgency=medium

  * Support Linux 5.15: (LP: #1960170)
    - debian/patches/0010-remove-ipx-support.patch

 -- Andrea Righi <email address hidden> Sun, 06 Feb 2022 18:15:05 +0000

Changed in rtl8821ce (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for rtl8821ce has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.