[packages/linux-firmware] proper fix for missing ath11k/WCN6855/hw2.1/amss.bin; rel 3
atler
atler at pld-linux.org
Fri Oct 17 00:50:46 CEST 2025
commit 0cf41f0b5eacbef842556569e3f738c988988845
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Oct 17 00:49:15 2025 +0200
proper fix for missing ath11k/WCN6855/hw2.1/amss.bin; rel 3
check-files.patch | 2 +-
linux-firmware.spec | 11 ++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/linux-firmware.spec b/linux-firmware.spec
index 73b0666..af68b68 100644
--- a/linux-firmware.spec
+++ b/linux-firmware.spec
@@ -4,7 +4,7 @@
# - 1000+2000+5000+6000 into iwlwifi-dvm-firmware, 7000+8000+9000+22000+ax210+bz+sc into iwlwifi-mvm-firmware
# - subpackages for various firmwares?
# - (since 5.3) compress firmware: https://git.kernel.org/linus/82fd7a8142a10b8eb41313074b3859d82c0857dc
-%define rel 2
+%define rel 3
%define ver 20251011
Summary: Firmware files used by the Linux kernel
Summary(pl.UTF-8): Pliki firmware'u używane przez jądro Linuksa
@@ -659,12 +659,17 @@ punktów sieci OLPC.
rm -rf $RPM_BUILD_ROOT
./copy-firmware.sh $RPM_BUILD_ROOT/lib/firmware
-# mhi mhi0: Direct firmware load for ath11k/WCN6855/hw2.1/amss.bin failed with error -2
-ln -sf hw2.0 $RPM_BUILD_ROOT/lib/firmware/ath11k/WCN6855/hw2.1
%clean
rm -rf $RPM_BUILD_ROOT
+%pretrans qualcomm -p <lua>
+local mode = posix.stat("/lib/firmware/ath11k/WCN6855/hw2.1")
+if mode and mode["type"] == "link" then
+ posix.unlink("/lib/firmware/ath11k/WCN6855/hw2.1")
+end
+
+
%files
%defattr(644,root,root,755)
%doc WHENCE LICENCE.* LICENSE.* README.md
diff --git a/check-files.patch b/check-files.patch
index 778f1c5..78b8bdc 100644
--- a/check-files.patch
+++ b/check-files.patch
@@ -12,7 +12,7 @@
# shellcheck disable=SC2162 # file/folder name can include escaped symbols
grep -E '^Link:' WHENCE | sed -e 's/^Link: *//g;s/-> //g' | while read l t; do
-+ test -e "$(dirname "$l")/$t" || continue
++ test -e "$(realpath -m "$(dirname "$l")/$t")" || continue
directory="$destdir/$(dirname "$l")"
install -d "$directory"
target="$(cd "$directory" && realpath -m -s "$t")"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/linux-firmware.git/commitdiff/0cf41f0b5eacbef842556569e3f738c988988845
More information about the pld-cvs-commit
mailing list