Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package llvm18 for openSUSE:Factory checked in at 2024-08-26 22:05:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm18 (Old) and /work/SRC/openSUSE:Factory/.llvm18.new.2698 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm18" Mon Aug 26 22:05:28 2024 rev:8 rq:1195858 version:18.1.8 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm18/llvm18.changes 2024-07-03 20:26:32.696818286 +0200 +++ /work/SRC/openSUSE:Factory/.llvm18.new.2698/llvm18.changes 2024-08-26 22:06:44.265265822 +0200 @@ -1,0 +2,16 @@ +Fri Aug 23 21:41:32 UTC 2024 - Aaron Puchert <aaronpuch...@alice-dsl.net> + +- Split off clang shared runtime libraries into libclang_rtX, so + that they can be used by other packages without requiring the + entire compiler tool chain. This is still not ergonomical: the + libraries don't sit in %{_libdir}, so an RPATH or setting + LD_LIBRARY_PATH is required, and they don't have an SO version, + so zypper won't know which version to is needed. (boo#1225784) + +------------------------------------------------------------------- +Tue Aug 20 21:20:37 UTC 2024 - Aaron Puchert <aaronpuch...@alice-dsl.net> + +- Add minor version to Python shebangs. (boo#1212476) +- Remove shebang and executable bit where not needed. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm18.spec ++++++ --- /var/tmp/diff_new_pack.pGc4fh/_old 2024-08-26 22:06:46.057340697 +0200 +++ /var/tmp/diff_new_pack.pGc4fh/_new 2024-08-26 22:06:46.061340865 +0200 @@ -531,6 +531,7 @@ Summary: CLANG frontend for LLVM Group: Development/Languages/C and C++ URL: https://clang.llvm.org/ +Requires: libclang_rt%{_sonum} Requires(post): update-alternatives Requires(postun): update-alternatives Recommends: clang-tools @@ -543,6 +544,15 @@ %description -n clang%{_sonum} This package contains the clang (C language) frontend for LLVM. +%package -n libclang_rt%{_sonum} +Summary: Clang shared runtime libraries +Group: System/Libraries +URL: https://compiler-rt.llvm.org/ + +%description -n libclang_rt%{_sonum} +The runtime libraries needed to run programs compiled with the -shared-libsan +of Clang. Also known as compiler-rt. + %package -n clang-tools Summary: Tools for Clang Group: Development/Languages/C and C++ @@ -1360,8 +1370,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} \ @@ -1369,13 +1379,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 \ @@ -1618,12 +1636,31 @@ %{lapply -p man_sonum_path %clang_manfiles} %{lapply -p ghost_ua_man_link %clang_manfiles} -%dir %{_libdir}/clang/ -%dir %{_libdir}/clang/%{_sonum}/ +%dir %{_libdir}/clang +%dir %{_libdir}/clang/%{_sonum} +%dir %{_libdir}/clang/%{_sonum}/lib +%dir %{_libdir}/clang/%{_sonum}/lib/linux +%ifnarch s390x +%{_libdir}/clang/%{_sonum}/lib/linux/clang_rt.*.o +%endif +%{_libdir}/clang/%{_sonum}/lib/linux/libclang_rt.*.a +%ifnarch %{ix86} +%{_libdir}/clang/%{_sonum}/lib/linux/libclang_rt.*.a.syms +%endif +%ifarch aarch64 %{arm} ppc64le x86_64 +%{_libdir}/clang/%{_sonum}/lib/linux/liborc_rt-*.a +%endif + +%files -n libclang_rt%{_sonum} +%license CREDITS.TXT LICENSE.TXT +%dir %{_libdir}/clang +%dir %{_libdir}/clang/%{_sonum} %ifarch aarch64 riscv64 x86_64 %{_libdir}/clang/%{_sonum}/bin %endif -%{_libdir}/clang/%{_sonum}/lib +%dir %{_libdir}/clang/%{_sonum}/lib +%dir %{_libdir}/clang/%{_sonum}/lib/linux +%{_libdir}/clang/%{_sonum}/lib/linux/libclang_rt.*.so # The sanitizer runtime is not available for ppc. %ifnarch ppc %{_libdir}/clang/%{_sonum}/share