Skip to content

linuxPackages.rtl8852au: fix build - #410672

Merged
Aleksanaa merged 2 commits into
NixOS:masterfrom
eljamm:update/rtl8852au
Jun 1, 2025
Merged

Aleksanaa merged 2 commits into
NixOS:masterfrom
eljamm:update/rtl8852au

Conversation

@eljamm

@eljamm eljamm commented May 25, 2025

Copy link
Copy Markdown
Contributor

for kernels >= 6.13 and 6.14

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels May 25, 2025
@nix-owners
nix-owners Bot requested a review from lonyelon May 25, 2025 00:18
@eljamm
eljamm force-pushed the update/rtl8852au branch from d31beeb to 91abcff Compare May 25, 2025 06:58

@lonyelon lonyelon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for taking care of this package, I was away and have no 8852au devices anymore, so I didn't notice the break.

As for the patch, it is good, but maybe it should be sent as a PR for the upstream repo. The problem is that, sadly, Larry W. Finger (the developer/maintainer for these drivers) passed away last year, and as far as I know no one has stepped up to replace him.

Thanks for the PR and rest in peace Larry, you really helped the community.

@eljamm

eljamm commented May 25, 2025 •

Copy link
Copy Markdown
Contributor Author

As for the patch, it is good, but maybe it should be sent as a PR for the upstream repo.

The patch actually came from the upstream repo, it was just vendored because the PR is still open and therefore the patch might change. Do you think I should add a comment as a reference or is it fine like this?

The problem is that, sadly, Larry W. Finger (the developer/maintainer for these drivers) passed away last year, and as far as I know no one has stepped up to replace him.

Yeah, I've seen someone mention this, upstream. Hope he rests in peace.

@wegank wegank added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels May 25, 2025
@Sigmanificient Sigmanificient mentioned this pull request May 25, 2025
27 of 28 tasks
@lonyelon

Copy link
Copy Markdown
Contributor

It is fine as is. Thanks!

@eljamm

eljamm commented May 26, 2025

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 410672

Logs: https://github.com/eljamm/nixpkgs-review-gha/actions/runs/15232258365


x86_64-linux

⏩ 2 packages marked as broken and skipped:
  • linuxKernel.packages.linux_5_4_hardened.rtl8852au
  • linuxPackages_5_4_hardened.rtl8852au
❌ 2 packages failed to build:
  • linuxPackages_5_10_hardened.rtl8852au (linuxKernel.packages.linux_5_10_hardened.rtl8852au)
  • linuxPackages_5_15_hardened.rtl8852au (linuxKernel.packages.linux_5_15_hardened.rtl8852au)
✅ 20 packages built:
  • linuxKernel.packages.linux_5_10.rtl8852au
  • linuxKernel.packages.linux_5_15.rtl8852au
  • linuxKernel.packages.linux_5_4.rtl8852au
  • linuxKernel.packages.linux_6_1.rtl8852au
  • linuxPackages.rtl8852au (linuxKernel.packages.linux_6_12.rtl8852au)
  • linuxPackages_hardened.rtl8852au (linuxPackages_6_12_hardened.rtl8852au)
  • linuxKernel.packages.linux_6_13.rtl8852au
  • linuxPackages_6_13_hardened.rtl8852au (linuxKernel.packages.linux_6_13_hardened.rtl8852au)
  • linuxPackages_latest.rtl8852au (linuxKernel.packages.linux_6_14.rtl8852au)
  • linuxPackages_6_14_hardened.rtl8852au (linuxKernel.packages.linux_6_14_hardened.rtl8852au)
  • linuxPackages_6_1_hardened.rtl8852au (linuxKernel.packages.linux_6_1_hardened.rtl8852au)
  • linuxKernel.packages.linux_6_6.rtl8852au
  • linuxPackages_6_6_hardened.rtl8852au (linuxKernel.packages.linux_6_6_hardened.rtl8852au)
  • linuxPackages_ham.rtl8852au (linuxKernel.packages.linux_ham.rtl8852au)
  • linuxPackages_latest-libre.rtl8852au (linuxKernel.packages.linux_latest_libre.rtl8852au)
  • linuxPackages-libre.rtl8852au (linuxKernel.packages.linux_libre.rtl8852au)
  • linuxPackages_lqx.rtl8852au (linuxKernel.packages.linux_lqx.rtl8852au)
  • linuxPackages_xanmod.rtl8852au (linuxKernel.packages.linux_xanmod.rtl8852au)
  • linuxPackages_xanmod_latest.rtl8852au (linuxKernel.packages.linux_xanmod_latest.rtl8852au, linuxPackages_xanmod_stable.rtl8852au)
  • linuxPackages_zen.rtl8852au (linuxKernel.packages.linux_zen.rtl8852au)

Error logs: `x86_64-linux`
linuxPackages_5_10_hardened.rtl8852au
  343 |         struct phl_bk_module_ops bk_ops = {0};
      |                                            ^
/build/source/phl/phl_cmd_btc.c:343:44: note: (near initialization for 'bk_ops')
/build/source/phl/phl_cmd_btc.c:343:44: error: invalid initializer
/build/source/phl/phl_cmd_btc.c:343:44: note: (near initialization for 'bk_ops.')
cc1: some warnings being treated as errors
make[3]: *** [/nix/store/dxx0jy914w5l1zs41drm7a32g7pynynj-linux-hardened-5.10.237-dev/lib/modules/5.10.237-hardened1/source/scripts/Makefile.build:286: /build/source/phl/phl_cmd_btc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/source/phl/phl_cmd_ps.c: In function 'phl_register_ps_module':
/build/source/phl/phl_cmd_ps.c:1504:44: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [8;;[https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdesignated-init�-Werror=designated-init8;;�]](https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdesignated-init%07-Werror=designated-init8;;%07])
 1504 |         struct phl_bk_module_ops bk_ops = {0};
      |                                            ^
/build/source/phl/phl_cmd_ps.c:1504:44: note: (near initialization for 'bk_ops')
/build/source/phl/phl_cmd_ps.c:1504:44: error: invalid initializer
/build/source/phl/phl_cmd_ps.c:1504:44: note: (near initialization for 'bk_ops.')
cc1: some warnings being treated as errors
make[3]: *** [/nix/store/dxx0jy914w5l1zs41drm7a32g7pynynj-linux-hardened-5.10.237-dev/lib/modules/5.10.237-hardened1/source/scripts/Makefile.build:286: /build/source/phl/phl_cmd_ps.o] Error 1
make[2]: *** [/nix/store/dxx0jy914w5l1zs41drm7a32g7pynynj-linux-hardened-5.10.237-dev/lib/modules/5.10.237-hardened1/source/Makefile:1840: /build/source] Error 2
make[1]: *** [/nix/store/dxx0jy914w5l1zs41drm7a32g7pynynj-linux-hardened-5.10.237-dev/lib/modules/5.10.237-hardened1/source/Makefile:192: __sub-make] Error 2
make: *** [Makefile:639: modules] Error 2
linuxPackages_5_15_hardened.rtl8852au
/build/source/phl/phl_cmd_btc.c:343:44: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [8;;[https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdesignated-init�-Werror=designated-init8;;�]](https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdesignated-init%07-Werror=designated-init8;;%07])
  343 |         struct phl_bk_module_ops bk_ops = {0};
      |                                            ^
/build/source/phl/phl_cmd_btc.c:343:44: note: (near initialization for 'bk_ops')
/build/source/phl/phl_cmd_btc.c:343:44: error: invalid initializer
/build/source/phl/phl_cmd_btc.c:343:44: note: (near initialization for 'bk_ops.')
cc1: some warnings being treated as errors
make[2]: *** [/nix/store/vf1hpv6yca3118rcc2crm3rxkpadj7z4-linux-hardened-5.15.182-dev/lib/modules/5.15.182-hardened1/source/scripts/Makefile.build:289: /build/source/phl/phl_cmd_btc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/build/source/phl/phl_cmd_ps.c: In function 'phl_register_ps_module':
/build/source/phl/phl_cmd_ps.c:1504:44: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [8;;[https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdesignated-init�-Werror=designated-init8;;�]](https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdesignated-init%07-Werror=designated-init8;;%07])
 1504 |         struct phl_bk_module_ops bk_ops = {0};
      |                                            ^
/build/source/phl/phl_cmd_ps.c:1504:44: note: (near initialization for 'bk_ops')
/build/source/phl/phl_cmd_ps.c:1504:44: error: invalid initializer
/build/source/phl/phl_cmd_ps.c:1504:44: note: (near initialization for 'bk_ops.')
cc1: some warnings being treated as errors
make[2]: *** [/nix/store/vf1hpv6yca3118rcc2crm3rxkpadj7z4-linux-hardened-5.15.182-dev/lib/modules/5.15.182-hardened1/source/scripts/Makefile.build:289: /build/source/phl/phl_cmd_ps.o] Error 1
make[1]: *** [/nix/store/vf1hpv6yca3118rcc2crm3rxkpadj7z4-linux-hardened-5.15.182-dev/lib/modules/5.15.182-hardened1/source/Makefile:1914: /build/source] Error 2
make: *** [Makefile:639: modules] Error 2

aarch64-linux

⏩ 12 packages marked as broken and skipped:
  • linuxKernel.packages.linux_5_4_hardened.rtl8852au
  • linuxKernel.packages.linux_lqx.rtl8852au
  • linuxKernel.packages.linux_xanmod.rtl8852au
  • linuxKernel.packages.linux_xanmod_latest.rtl8852au
  • linuxKernel.packages.linux_xanmod_stable.rtl8852au
  • linuxKernel.packages.linux_zen.rtl8852au
  • linuxPackages_5_4_hardened.rtl8852au
  • linuxPackages_lqx.rtl8852au
  • linuxPackages_xanmod.rtl8852au
  • linuxPackages_xanmod_latest.rtl8852au
  • linuxPackages_xanmod_stable.rtl8852au
  • linuxPackages_zen.rtl8852au
❌ 18 packages failed to build:
  • linuxKernel.packages.linux_5_10.rtl8852au
  • linuxPackages_5_10_hardened.rtl8852au (linuxKernel.packages.linux_5_10_hardened.rtl8852au)
  • linuxKernel.packages.linux_5_15.rtl8852au
  • linuxPackages_5_15_hardened.rtl8852au (linuxKernel.packages.linux_5_15_hardened.rtl8852au)
  • linuxKernel.packages.linux_5_4.rtl8852au
  • linuxKernel.packages.linux_6_1.rtl8852au
  • linuxPackages.rtl8852au (linuxKernel.packages.linux_6_12.rtl8852au)
  • linuxPackages_hardened.rtl8852au (linuxPackages_6_12_hardened.rtl8852au)
  • linuxKernel.packages.linux_6_13.rtl8852au
  • linuxPackages_6_13_hardened.rtl8852au (linuxKernel.packages.linux_6_13_hardened.rtl8852au)
  • linuxPackages_latest.rtl8852au (linuxKernel.packages.linux_6_14.rtl8852au)
  • linuxPackages_6_14_hardened.rtl8852au (linuxKernel.packages.linux_6_14_hardened.rtl8852au)
  • linuxPackages_6_1_hardened.rtl8852au (linuxKernel.packages.linux_6_1_hardened.rtl8852au)
  • linuxKernel.packages.linux_6_6.rtl8852au
  • linuxPackages_6_6_hardened.rtl8852au (linuxKernel.packages.linux_6_6_hardened.rtl8852au)
  • linuxPackages_ham.rtl8852au (linuxKernel.packages.linux_ham.rtl8852au)
  • linuxPackages_latest-libre.rtl8852au (linuxKernel.packages.linux_latest_libre.rtl8852au)
  • linuxPackages-libre.rtl8852au (linuxKernel.packages.linux_libre.rtl8852au)

Error logs: `aarch64-linux`
linuxKernel.packages.linux_5_10.rtl8852au
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/15n0gdj62y8qz7gnwgsgx1yqx71hl1m3-115.patch
patching file os_dep/linux/ioctl_cfg80211.c
patching file os_dep/linux/ioctl_cfg80211.c
patching file os_dep/osdep_service_linux.c
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j4 SHELL=/nix/store/s1qkj0ph0ma64a6743mvkwnabrbw1hsc-bash-5.2p37/bin/bash ARCH=arm64 CONFIG_PLATFORM_I386_PC=n CONFIG_PLATFORM_ARM_RPI=y
#rm -f .symvers.8852au
make ARCH=arm64 CROSS_COMPILE= -C  M=/build/source  modules
make[1]: Entering directory '/build/source'
make[1]: *** M=/build/source: No such file or directory.  Stop.
make[1]: Leaving directory '/build/source'
make: *** [Makefile:639: modules] Error 2

eljamm added 2 commits May 26, 2025 16:38
for kernels >= 6.13 and 6.14
as it appears that it doesn't work on aarch64. Also, mark as broken on
hardened kernels which are older than 6.*
@eljamm
eljamm force-pushed the update/rtl8852au branch from 91abcff to 79c1cf6 Compare May 26, 2025 14:39
@eljamm

eljamm commented May 26, 2025 •

Copy link
Copy Markdown
Contributor Author

Changes

  • Add comment to patch's upstream PR
  • Only build for x86_64 as it appears that it doesn't work on aarch64.
  • Mark as broken on hardened kernels which are older than 6.*

@Aleksanaa
Aleksanaa merged commit d84efed into NixOS:master Jun 1, 2025
@nixpkgs-ci

nixpkgs-ci Bot commented Jun 1, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-24.11:

@nixpkgs-ci

nixpkgs-ci Bot commented Jun 1, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants