Bug 30491 - Broadcom-wl does not compile with kernel 5.17.9
Summary: Broadcom-wl does not compile with kernel 5.17.9
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2022-05-28 15:22 CEST by Jan Ciger
Modified: 2022-06-03 19:16 CEST (History)
4 users (show)

See Also:
Source RPM: broadcom-wl-6.30.223.271-61.mga8.nonfree.src.rpm
CVE:
Status comment:


Attachments

Description Jan Ciger 2022-05-28 15:22:07 CEST
Description of problem:

The dkms-broadcom-wl package does not build with the current kernels due to multiple warnings being treated as errors and some API incompatibilities. 

How reproducible:

Install dkms-broadcom-wl and run dkms-autorebuild.sh. It will fail.

There is a patched and working version available here and the Mageia package should be updated:

https://github.com/antoineco/broadcom-wl
Comment 1 Thomas Backlund 2022-05-28 16:43:44 CEST
ah, I fixed it in cauldron ~1.5 months ago,  but forgot to update mga8 to support the backport kernels.. :/

but I need to push another fix to support the 5.18 series kernels anyway, so I'll fix it up...
Comment 2 Thomas Backlund 2022-05-28 17:16:15 CEST
added support for 5.17 and 5.18 series kernels...


SRPM:
broadcom-wl-6.30.223.271-64.mga8.nonfree.src.rpm


i586:
broadcom-wl-common-6.30.223.271-64.mga8.nonfree.i586.rpm
dkms-broadcom-wl-6.30.223.271-64.mga8.nonfree.i586.rpm


x86_64:
broadcom-wl-common-6.30.223.271-64.mga8.nonfree.x86_64.rpm
dkms-broadcom-wl-6.30.223.271-64.mga8.nonfree.x86_64.rpm

Assignee: bugsquad => qa-bugs

Comment 3 Jan Ciger 2022-05-29 10:38:26 CEST
Thanks a lot, Thomas!
Comment 4 Ben McMonagle 2022-05-31 00:34:40 CEST
Compaq Presario C700 Plasma x86_64

uname -r
5.15.43-desktop-1.mga8

# urpmi dkms-broadcom-wl broadcom-wl-common kernel-desktop-latest kernel-desktop-devel-latest
Packages kernel-desktop-devel-latest-5.15.43-1.mga8.x86_64, kernel-desktop-latest-5.15.43-1.mga8.x86_64 are already installed
~
installing dkms-broadcom-wl-6.30.223.271-64.mga8.nonfree.x86_64.rpm broadcom-wl-common-6.30.223.271-64.mga8.nonfree.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     
      1/2: broadcom-wl-common    
      2/2: dkms-broadcom-wl      
      
+ /usr/sbin/dkms --rpm_safe_upgrade add -m broadcom-wl -v 6.30.223.271-64.mga8.nonfree

Creating symlink /var/lib/dkms/broadcom-wl/6.30.223.271-64.mga8.nonfree/source ->
                 /usr/src/broadcom-wl-6.30.223.271-64.mga8.nonfree

DKMS: add Completed.
+ '[' -z '' ']'
+ /usr/sbin/dkms --rpm_safe_upgrade build -m broadcom-wl -v 6.30.223.271-64.mga8.nonfree

Preparing kernel 5.15.43-desktop-1.mga8 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
/usr/sbin/dkms: line 936: warning: command substitution: ignored null byte in input
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare.....

Building module:
cleaning build area....
'make' -j1 -C /lib/modules/5.15.43-desktop-1.mga8/build M=$(pwd)........
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.
+ /usr/sbin/dkms --rpm_safe_upgrade install -m broadcom-wl -v 6.30.223.271-64.mga8.nonfree

wl.ko.xz:
 - Installation
   - Installing to /lib/modules/5.15.43-desktop-1.mga8/dkms/3rdparty/broadcom-wl/

depmod........

DKMS: install Completed.
+ /usr/sbin/dkms --rpm_safe_upgrade remove -m broadcom-wl -v 6.30.223.271-61.mga8.nonfree --all

-------- Uninstall Beginning --------
Module:  broadcom-wl
Version: 6.30.223.271-61.mga8.nonfree
Kernel:  5.10.70-desktop-1.mga8 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.70-desktop-1.mga8/dkms/3rdparty/broadcom-wl/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod.........

DKMS: uninstall Completed.

-------- Uninstall Beginning --------
Module:  broadcom-wl
Version: 6.30.223.271-61.mga8.nonfree
Kernel:  5.15.43-desktop-1.mga8 (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod.......

DKMS: uninstall Completed.

-------- Uninstall Beginning --------
Module:  broadcom-wl
Version: 6.30.223.271-61.mga8.nonfree
Kernel:  5.9.0-desktop-1.mga8 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko.xz:
 - Uninstallation
   - Deleting from: /lib/modules/5.9.0-desktop-1.mga8/dkms/3rdparty/broadcom-wl/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.......

DKMS: uninstall Completed.

------------------------------
Deleting module version: 6.30.223.271-61.mga8.nonfree
completely from the DKMS tree.
------------------------------
Done.
      1/2: removing dkms-broadcom-wl-6.30.223.271-61.mga8.nonfree.x86_64
                                 ###############################################################################################
      2/2: removing broadcom-wl-common-6.30.223.271-61.mga8.nonfree.x86_64
                                 ###############################################################################################



reboot

wifi up at desktop presentation

CC: (none) => westel

Comment 5 Thomas Andrews 2022-05-31 03:22:57 CEST
With the 5.17.11 kernel...

installing broadcom-wl-common-6.30.223.271-64.mga8.nonfree.x86_64.rpm dkms-broadcom-wl-6.30.223.271-64.mga8.nonfree.x86_64.rpm from //home/tom/qa-testing/x86_64
starting installing packages
created transaction for installing on / (remove=0, install=0, upgrade=2)
+ /usr/sbin/dkms --rpm_safe_upgrade add -m broadcom-wl -v 6.30.223.271-64.mga8.nonfree

Creating symlink /var/lib/dkms/broadcom-wl/6.30.223.271-64.mga8.nonfree/source ->
                 /usr/src/broadcom-wl-6.30.223.271-64.mga8.nonfree

DKMS: add Completed.
+ '[' -z '' ']'
+ /usr/sbin/dkms --rpm_safe_upgrade build -m broadcom-wl -v 6.30.223.271-64.mga8.nonfree

Preparing kernel 5.17.11-desktop-1.mga8 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare.....

Building module:
cleaning build area....
'make' -j4 -C /lib/modules/5.17.11-desktop-1.mga8/build M=$(pwd)........
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.
+ /usr/sbin/dkms --rpm_safe_upgrade install -m broadcom-wl -v 6.30.223.271-64.mga8.nonfree

wl.ko.xz:
 - Installation
   - Installing to /lib/modules/5.17.11-desktop-1.mga8/dkms/3rdparty/broadcom-wl/

depmod...............

DKMS: install Completed.

I do not have a device, so that's as far as I can go. Since it built, installed, and worked with the 5.15.43 kernel, and it built and installed with the 5.17.11 kernel, I'm giving this an OK.

Whiteboard: (none) => MGA8-64-OK
CC: (none) => andrewsfarm

Comment 6 Thomas Andrews 2022-05-31 03:24:09 CEST
Validating. Advisory in Comment 2.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Dave Hodgins 2022-06-02 23:01:34 CEST

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 7 Mageia Robot 2022-06-03 19:16:16 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2022-0077.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.