From d4c29faf97f4978b348ed8b1d7f847a73c4111fc8996ba46225b05308624f68c Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Wed, 21 Aug 2024 00:52:48 +0000 Subject: [PATCH] - Remove shebang from lldb python modules. - Add proper conditionals. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=21 --- llvm18.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/llvm18.spec b/llvm18.spec index c8d2c53..f3ea802 100644 --- a/llvm18.spec +++ b/llvm18.spec @@ -1373,8 +1373,13 @@ sed -i "1s|/usr/bin/env *|%{_bindir}/|;1s|/usr/bin/python\$|$(realpath /usr/bin/ # Remove shebangs where not needed. sed -i '1{ /^#!/d }' \ +%if %{_plv} == %{_sonum} + %{buildroot}%{_datadir}/scan-view/{Reporter,startfile}.py \ +%endif +%if %{with lldb} + %{buildroot}%{python3_sitearch}/lldb/utils/{in_call_stack,symbolication}.py \ +%endif %{buildroot}%{python3_sitelib}/optrecord.py - %{buildroot}%{_datadir}/scan-view/{Reporter,startfile}.py # Remove executable bit where not needed. chmod -x \