From 1424f7696ffcc1f6fe47d43000056f1d05a1838b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 23 Feb 2022 14:22:08 +0000 Subject: [PATCH] import ksc-1.9-2.el8 --- .gitignore | 2 +- .ksc.metadata | 2 +- SOURCES/Replace-python3-with-platform-python.patch | 9 +++++++++ SPECS/ksc.spec | 9 +++++++-- 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 SOURCES/Replace-python3-with-platform-python.patch diff --git a/.gitignore b/.gitignore index 1102eb6..b8ae2d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/ksc-1.9-1.el8.tar.gz +SOURCES/ksc-1.9.tar.gz diff --git a/.ksc.metadata b/.ksc.metadata index 5237e1e..f61c72b 100644 --- a/.ksc.metadata +++ b/.ksc.metadata @@ -1 +1 @@ -27f4308a73e4cfe85dbd122fb7e81b47395371e1 SOURCES/ksc-1.9-1.el8.tar.gz +27f4308a73e4cfe85dbd122fb7e81b47395371e1 SOURCES/ksc-1.9.tar.gz diff --git a/SOURCES/Replace-python3-with-platform-python.patch b/SOURCES/Replace-python3-with-platform-python.patch new file mode 100644 index 0000000..e91a957 --- /dev/null +++ b/SOURCES/Replace-python3-with-platform-python.patch @@ -0,0 +1,9 @@ +diff -ru a/ksc b/ksc +--- a/ksc 2022-02-11 07:47:47.000000000 +0100 ++++ b/ksc 2022-02-21 13:22:53.038431651 +0100 +@@ -1,4 +1,4 @@ + #!/bin/sh + export PYTHONPATH=/usr/share/ksc +-exec /usr/bin/python3 -tt /usr/share/ksc/ksc.py "$@" ++exec /usr/libexec/platform-python -tt /usr/share/ksc/ksc.py "$@" + diff --git a/SPECS/ksc.spec b/SPECS/ksc.spec index b0acb2e..3aa36ba 100644 --- a/SPECS/ksc.spec +++ b/SPECS/ksc.spec @@ -1,12 +1,12 @@ Name: ksc Version: 1.9 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Kernel source code checker Group: Development/Tools AutoReqProv: no License: GPLv2+ URL: https://github.com/RedHatOfficial/ksc -Source0: ksc-%{version}-%{release}.tar.gz +Source0: ksc-%{version}.tar.gz BuildArch: noarch %{?__python3:Requires: %{__python3}} Requires: (kernel-abi-whitelists or kernel-abi-stablelists) @@ -17,12 +17,14 @@ Requires: python3-magic Requires: python3-requests BuildRequires: python3-devel BuildRequires: python3-setuptools +Patch0: Replace-python3-with-platform-python.patch %description A kernel module source code checker to find usage of non whitelist symbols %prep %setup -q +%patch0 -p1 %build %py3_build @@ -41,6 +43,9 @@ install -D ksc.1 %{buildroot}%{_mandir}/man1/ksc.1 %{python3_sitelib}/ksc-%{version}*.egg-info %changelog +* Mon Feb 21 2022 Čestmír Kalina - 1.9-2 +- Resolves: #2043450 ksc: Support Authorization header in bugzilla API +- Use platform-python in place of python3 * Fri Feb 11 2022 Čestmír Kalina - 1.9-1 - Resolves: #2043450 ksc: Support Authorization header in bugzilla API - Rebase to latest ksc release