From 4ae0846d42aaa570b1bdb3e1b7f05700d331797b Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Thu, 21 Nov 2024 18:43:11 +0300 Subject: [PATCH] import ksc-1.12-7.git869a25c.el10 --- SOURCES/0003-cs-fix-invalid-escape.patch | 11 +++++++++++ SPECS/ksc.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 SOURCES/0003-cs-fix-invalid-escape.patch diff --git a/SOURCES/0003-cs-fix-invalid-escape.patch b/SOURCES/0003-cs-fix-invalid-escape.patch new file mode 100644 index 0000000..cbb8f5e --- /dev/null +++ b/SOURCES/0003-cs-fix-invalid-escape.patch @@ -0,0 +1,11 @@ +--- a/utils.py ++++ b/utils.py +@@ -126,7 +126,7 @@ + print('This tool needs to run on Red Hat Enterprise Linux') + return None + for rel in release: +- if re.match("\d.\d+",rel): ++ if re.match(r"\d+.\d+",rel): + return rel + print('This tool needs to run on Red Hat Enterprise Linux') + return None diff --git a/SPECS/ksc.spec b/SPECS/ksc.spec index fc0be81..02c453f 100644 --- a/SPECS/ksc.spec +++ b/SPECS/ksc.spec @@ -8,7 +8,7 @@ Name: ksc Version: 1.12 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Kernel source code checker Group: Development/Tools AutoReqProv: no @@ -24,6 +24,7 @@ BuildRequires: python3-setuptools Source0: https://github.com/RedHatOfficial/ksc/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Patch0: 0001-manpage.patch Patch1: 0002-c9s-notifications.patch +Patch2: 0003-cs-fix-invalid-escape.patch %description A kernel module source code checker to find usage of select symbols @@ -35,6 +36,7 @@ A kernel module source code checker to find usage of select symbols sed -i "15i packages=[]," setup.py %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build %py3_build @@ -53,6 +55,9 @@ install -D ksc.1 %{buildroot}%{_mandir}/man1/ksc.1 %{python3_sitelib}/ksc-%{version}*.egg-info %changelog +* Mon Nov 18 2024 Čestmír Kalina - 1.12-7 +- Resolves: RHEL-65759 + * Tue Oct 29 2024 Troy Dawson - Packaging variables read or set by %forgemeta - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018