diff --git a/llvm-toolset-19.spec b/llvm-toolset-19.spec index d9d79d713ae96feb424b6521f6c72691b34d8649..ef8e589aa1bd715da1807fd43fd620298566912f 100644 --- a/llvm-toolset-19.spec +++ b/llvm-toolset-19.spec @@ -149,7 +149,7 @@ #region main package Name: llvm-toolset-%{maj_ver} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 4 +Release: 5 Summary: The Low Level Virtual Machine License: NCSA @@ -1269,7 +1269,12 @@ install -p -m644 clang/bindings/python/clang/* %{buildroot}%{python3_sitelib}/cl %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang # install scanbuild-py to python sitelib. -mv %{buildroot}%{install_libdir}/{libear,libscanbuild} %{buildroot}%{python3_sitelib} +### scan-build-py installation path changed to unprefixed /usr/lib/ for llvm 20+ in [1] +### and backported to 19.x in [2] +### 1. https://github.com/llvm/llvm-project/pull/106612 +### 2. https://github.com/llvm/llvm-project/pull/106853 + +mv %{buildroot}%{install_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib} # Cannot use {libear,libscanbuild} style expansion in py_byte_compile. %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/libear %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/libscanbuild @@ -2805,7 +2810,10 @@ fi #endregion files %changelog -* Mon Mar 3 2025 liyunfei liyunfei33@huawei.com - 19.1.7-4 +* Mon Mar 03 2025 jchzhou - 19.1.7-5 +- Fix packaging issues as sys_llvm, adapt for scan-build install path changes + +* Mon Mar 03 2025 liyunfei - 19.1.7-4 - Remove python pack without sys_llvm * Fri Feb 28 2025 jchzhou - 19.1.7-3