rtl8812au fails to build on focal with linux hwe 5.15

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

Bug Description

[Impact]

/home/ubuntu/rtl8812au-4.3.8.12175.20140902+dfsg/core/rtw_br_ext.c:25:10: fatal error: net/ipx.h: No such file or directory
   25 | #include <net/ipx.h>
      | ^~~~~~~~~~~
compilation terminated.

[Test case]

 $ sudo apt install rtl8812au-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.

Andrea Righi (arighi)
description: updated
tags: added: patch
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This could have been a backport of jammy's 4.3.8.12175.20140902+dfsg-0ubuntu15 including jammy's changelog and then version number 4.3.8.12175.20140902+dfsg-0ubuntu15~20.04.1

or it can be 4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4 (as in .N+1 increment on the last upload).

But 4.3.8.12175.20140902+dfsg-0ubuntu14~20.04.3 does not make sense, as this upload is unrelated to 4.3.8.12175.20140902+dfsg-0ubuntu14 which adds v5.10 support which landed as 4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3 already.

Uploading this as 4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4.

In the future, if it is desired to ship backports of later development series dkms modules into prior series one can use `backportpackage` command to create correctly versioned backports with devel series changelogs included.

Changed in rtl8812au (Ubuntu):
status: New → Fix Released
Changed in rtl8812au (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 rtl8812au into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rtl8812au/4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4 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 rtl8812au (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Download full text (3.6 KiB)

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

# apt install rtl8812au-dkms=4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  rtl8812au-dkms
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 1116 kB of archives.
After this operation, 8906 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 rtl8812au-dkms all 4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3 [1116 kB]
Fetched 1116 kB in 1s (1761 kB/s)
Selecting previously unselected package rtl8812au-dkms.
(Reading database ... 79023 files and directories currently installed.)
Preparing to unpack .../rtl8812au-dkms_4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3_all.deb
...
Unpacking rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3) ...
Setting up rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3) ...
Loading new rtl8812au-4.3.8.12175.20140902+dfsg 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/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more informati
on.
dpkg: error processing package rtl8812au-dkms (--configure):
 installed rtl8812au-dkms package post-installation script subprocess returned error exit s
tatus 10
Errors were encountered while processing:
 rtl8812au-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

6) enabled proposed once again

7) observed that from proposed does not build and install fine.... it seems that despite being in a chroot and requesting to build against v5.15 kernel it tries to build against the host kernel:

Unpacking rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4) over (4.3.8.12175.20
140902+dfsg-0ubuntu13~20.04.3) ...
Setting up rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4) ...
Loading new rtl8812au-4.3.8.12175.20140902+dfsg 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: Cannot create report: [Errno 17] File exists: '/var/crash/rtl8812au-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.15.0-25-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more informati
on.
dpkg: error processing package rtl8812au-dkms (--configure):
 installed rtl8812au-dkms package post-installation script subprocess returned error exit s
tatus 10
dmesg: read kernel buffer failed: Operation not permitted
                                                         Errors were encountered while proc
essing:
 rtl8812au-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@normal-snake:~# cat /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log
DKMS make.log for rtl...

Read more...

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

Opened bug report about the dkms.conf bug at https://bugs.launchpad.net/ubuntu/+source/rtl8812au/+bug/1970635

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

1) launched focal lxd VM, removed kvm kernel, installed v5.15 hwe-20.04-edge kernel.

2) checked that existing module fails to install

Setting up rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3) ...
Loading new rtl8812au-4.3.8.12175.20140902+dfsg DKMS files...
Building for 5.15.0-25-generic
Building initial module for 5.15.0-25-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rtl8812au-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.15.0-25-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more informati
on.
dpkg: error processing package rtl8812au-dkms (--configure):
 installed rtl8812au-dkms package post-installation script subprocess returned error exit s
tatus 10
Errors were encountered while processing:
 rtl8812au-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

3) checked that new package installs correctly

Unpacking rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4) over (4.3.8.12175.20
140902+dfsg-0ubuntu13~20.04.3) ...
Setting up rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4) ...
Loading new rtl8812au-4.3.8.12175.20140902+dfsg DKMS files...
Building for 5.15.0-25-generic
Building initial module for 5.15.0-25-generic
Can't load /var/lib/shim-signed/mok/.rnd into RNG
140687348028736:error:2406F079:random number generator:RAND_load_file:Cannot open file:../c
rypto/rand/randfile.c:98:Filename=/var/lib/shim-signed/mok/.rnd
Generating a RSA private key
...........................................................................................
.....................................................................................+++++
..................+++++
writing new private key to '/var/lib/shim-signed/mok/MOK.priv'
-----
Done.

8812au.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/

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 rtl8812au - 4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4

---------------
rtl8812au (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.4) focal; urgency=medium

  * Support linux 5.15: (LP: #1960169)
    - debian/patches/0020-drop-ipx-and-apple-talk-support.patch

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

Changed in rtl8812au (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 rtl8812au 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.