From dc7156ce5a6107de012e8749dca9d5a04e5e1ba3 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jul 19 2022 10:49:30 +0000 Subject: Don't add -P to Python shebangs Opt-out from https://fedoraproject.org/wiki/Changes/PythonSafePath The executable Python scripts in /usr/share/opt-viewer/ import each other. --- diff --git a/llvm.spec b/llvm.spec index f026dca..ca11b03 100644 --- a/llvm.spec +++ b/llvm.spec @@ -64,6 +64,11 @@ %global llvm_triple %{_host} %endif +# https://fedoraproject.org/wiki/Changes/PythonSafePath#Opting_out +# Don't add -P to Python shebangs +# The executable Python scripts in /usr/share/opt-viewer/ import each other +%undefine _py3_shebang_P + Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} Release: 2%{?dist}