From dc7156ce5a6107de012e8749dca9d5a04e5e1ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 19 Jul 2022 12:49:30 +0200 Subject: [PATCH] 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. --- llvm.spec | 5 +++++ 1 file changed, 5 insertions(+) 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}