Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package llvm16 for openSUSE:Factory checked 
in at 2024-08-23 22:27:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm16 (Old)
 and      /work/SRC/openSUSE:Factory/.llvm16.new.2698 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm16"

Fri Aug 23 22:27:06 2024 rev:15 rq:1195707 version:16.0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm16/llvm16.changes    2024-08-21 
09:47:50.454944384 +0200
+++ /work/SRC/openSUSE:Factory/.llvm16.new.2698/llvm16.changes  2024-08-23 
22:28:06.040475132 +0200
@@ -1,0 +2,6 @@
+Tue Aug 20 21:20:37 UTC 2024 - Aaron Puchert <[email protected]>
+
+- Add minor version to Python shebangs. (boo#1212476)
+- Remove shebang and executable bit where not needed.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ llvm16.spec ++++++
--- /var/tmp/diff_new_pack.cgmZKX/_old  2024-08-23 22:28:07.464534360 +0200
+++ /var/tmp/diff_new_pack.cgmZKX/_new  2024-08-23 22:28:07.468534527 +0200
@@ -1322,8 +1322,8 @@
 %_llvm_with_lldb %{with lldb}
 EOF
 
-# Don't use env in shebangs, and prefer python3. 
(https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors)
-for script in %{buildroot}%{_bindir}/opt-{diff,stats,viewer} \
+# Don't use env in shebangs, and prefer python3.X. 
(https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors)
+sed -i -E "1s|/usr/bin/env *|/usr/bin/|; 1s|/usr/bin/python3?\$|$(realpath 
/usr/bin/python3)|" \
 %if %{_plv} == %{_sonum}
         
%{buildroot}%{_bindir}/{{analyze,intercept}-build,clang-{format,tidy}-diff,git-clang-format,hmaptool,run-{clang-tidy,find-all-symbols},scan-{build,build-py,view}}
 \
         
%{buildroot}%{_libexecdir}/{{analyze,intercept}-{c++,cc},{c++,ccc}-analyzer} \
@@ -1331,13 +1331,21 @@
 %ifarch aarch64 x86_64
         %{buildroot}%{_libdir}/clang/%{_sonum}/bin/hwasan_symbolize \
 %endif
-        %{buildroot}%{python3_sitelib}/optrecord.py; do
-    sed -i '1s|/usr/bin/env 
*|%{_bindir}/|;1s|/usr/bin/python$|%{_bindir}/python3|' $script
-done
+        %{buildroot}%{_bindir}/opt-{diff,stats,viewer}
+
+# Remove shebangs where not needed.
+sed -i '1{ /^#!/d }' \
+%if %{_plv} == %{_sonum}
+    %{buildroot}%{_datadir}/scan-view/{Reporter,startfile}.py \
+%endif
+%if %{with lldb_python}
+    
%{buildroot}%{python3_sitearch}/lldb/utils/{in_call_stack,symbolication}.py \
+%endif
+    %{buildroot}%{python3_sitelib}/optrecord.py
 
 # Remove executable bit where not needed.
 chmod -x \
-  %{buildroot}%{python3_sitelib}/optpmap.py \
+  %{buildroot}%{python3_sitelib}/opt{pmap,record}.py \
   %{buildroot}%{_datadir}/opt-viewer/style.css \
 %if %{_plv} == %{_sonum}
   %{buildroot}%{_datadir}/bash-completion/completions/clang \

Reply via email to