From 566be371a384c15180de724846e83d2b03a60e66 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Jun 23 2021 15:50:58 +0000 Subject: 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 --- diff --git a/qemu.spec b/qemu.spec index 6daf98e..ab51220 100644 --- a/qemu.spec +++ b/qemu.spec @@ -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