diff options
| author | James Smith <jsubuntuxp@disroot.org> | 2020-10-25 13:36:28 -0700 |
|---|---|---|
| committer | Jonathan Brielmaier <jonathan.brielmaier@web.de> | 2020-10-26 08:26:26 +0100 |
| commit | 9efcb6799cb3baf3db404e997141ef7a5d06d877 (patch) | |
| tree | 4fffa6e679c76eb850ec213a2bea5a8c63d52c98 | |
| parent | 9256536ad279a5e369644d581294ed252760f0c9 (diff) | |
nongnu: broadcom-sta: Fix build on linux 5.9 and later.
* nongnu/packages/linux.scm (broadcom-sta-x86_64-source)[patches]: Use
patch.
* nongnu/packages/patches/broadcom-sta-linux-5.9.patch: New patch from
Arch Linux (without already applied hunks).
Closes https://gitlab.com/nonguix/nonguix/-/merge_requests/55.
Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
| -rw-r--r-- | nongnu/packages/linux.scm | 3 | ||||
| -rw-r--r-- | nongnu/packages/patches/broadcom-sta-linux-5.9.patch | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index 96f50fe..aa15d9e 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm | |||
| @@ -558,7 +558,8 @@ package contains nonfree firmware for the following chips: | |||
| 558 | "broadcom-sta-fix_mac_profile_discrepancy.patch" | 558 | "broadcom-sta-fix_mac_profile_discrepancy.patch" |
| 559 | "broadcom-sta-linux-5.1.patch" | 559 | "broadcom-sta-linux-5.1.patch" |
| 560 | ;; source: https://github.com/NixOS/nixpkgs/commit/8ce65087c333097ab714d23800b69fc471ec48ca | 560 | ;; source: https://github.com/NixOS/nixpkgs/commit/8ce65087c333097ab714d23800b69fc471ec48ca |
| 561 | "broadcom-sta-linux-5.6.patch"))) | 561 | "broadcom-sta-linux-5.6.patch" |
| 562 | "broadcom-sta-linux-5.9.patch"))) | ||
| 562 | (sha256 | 563 | (sha256 |
| 563 | (base32 | 564 | (base32 |
| 564 | "1gj485qqr190idilacpxwgqyw21il03zph2rddizgj7fbd6pfyaz")))) | 565 | "1gj485qqr190idilacpxwgqyw21il03zph2rddizgj7fbd6pfyaz")))) |
diff --git a/nongnu/packages/patches/broadcom-sta-linux-5.9.patch b/nongnu/packages/patches/broadcom-sta-linux-5.9.patch new file mode 100644 index 0000000..56de11d --- /dev/null +++ b/nongnu/packages/patches/broadcom-sta-linux-5.9.patch | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | diff -u -r a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c | ||
| 2 | --- a/src/wl/sys/wl_linux.c 2020-10-12 21:19:15.256305165 +0000 | ||
| 3 | +++ b/src/wl/sys/wl_linux.c 2020-10-12 21:20:38.687530895 +0000 | ||
| 4 | @@ -1643,7 +1643,7 @@ | ||
| 5 | goto done2; | ||
| 6 | } | ||
| 7 | |||
| 8 | - if (segment_eq(get_fs(), KERNEL_DS)) | ||
| 9 | + if (get_fs().seg == KERNEL_DS.seg) | ||
| 10 | buf = ioc.buf; | ||
| 11 | |||
| 12 | else if (ioc.buf) { | ||
