weak-modules: fix incorrect dispatch on symvers file extension

* weak-modules (validate_weak_links): Switch on "$symvers_name"
and not "$symvers".
* kmod.spec (Release): Bump to 9.
(%changelog): Add a record.

Resolves: RHEL-61133
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
Eugene Syromiatnikov 2024-10-01 11:16:25 +02:00
parent 0a4563dfa8
commit aa7757c4af
2 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,7 @@
Name: kmod
Version: 31
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Linux kernel module management utilities
# https://docs.fedoraproject.org/en-US/legal/license-field/#_no_effective_license_analysis
@ -196,6 +196,10 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
%{_libdir}/libkmod.so
%changelog
* Tue Oct 01 2024 Eugene Syromiatnikov <esyr@redhat.com> - 31-9
- weak-modules: fix incorrect symvers file extension dispatch
- Resolves: RHEL-61133
* Thu Aug 15 2024 Eugene Syromiatnikov <esyr@redhat.com> - 31-8
- Fix issues discovered by static analysis
- Resolves: RHEL-44931

View File

@ -768,7 +768,7 @@ validate_weak_links() {
[[ -n "$symvers_path" ]] || return
cat_prog="cat"
case "$symvers" in
case "$symvers_path" in
*.gz) cat_prog="zcat" ;;
*.xz) cat_prog="xzcat" ;;
esac