spec: Drop pathfix.py usage

There's only one remaining ambiguous python shebang in qemu.git, and
it's not for anything we care about.

Also redhat-rpm-config brp-mangle-shebangs added in 2018 will do
/usr/bin/env python3 -> /usr/bin/python3 automatically for us

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2021-06-22 15:06:23 -04:00
parent 7a925b3802
commit 566be371a3

View File

@ -402,8 +402,6 @@ BuildRequires: libxml2-devel
BuildRequires: libudev-devel
# qauth infrastructure
BuildRequires: pam-devel
# For making python shebangs versioned
BuildRequires: /usr/bin/pathfix.py
%if %{have_liburing}
# liburing support. Library isn't built for arm
BuildRequires: liburing-devel
@ -1115,14 +1113,6 @@ mkdir -p %{qemu_kvm_build}
%global static_builddir static_builddir
mkdir -p %{static_builddir}
# https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error
# Fix all Python shebangs recursively in .
# -p preserves timestamps
# -n prevents creating ~backup files
# -i specifies the interpreter for the shebang
# Need to list files that do not match ^[a-zA-Z0-9_]+\.py$ explicitly!
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" scripts/qemu-trace-stap
%build