From 867ae1900998c6d201fe3e43f5cfdc3b41788b08 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Mon, 13 May 2024 11:50:07 +0000 Subject: [PATCH] Manually associate files with compiler-rt --- files.compiler-rt.spec.inc | 72 ++++++++++++++++++++++++++++++++++++++ files.spec.inc | 28 ++++++++++----- sources.spec.inc | 1 + 3 files changed, 93 insertions(+), 8 deletions(-) create mode 100644 files.compiler-rt.spec.inc diff --git a/files.compiler-rt.spec.inc b/files.compiler-rt.spec.inc new file mode 100644 index 0000000..e6d10f4 --- /dev/null +++ b/files.compiler-rt.spec.inc @@ -0,0 +1,72 @@ +# Files that appear both in x86_64 and i686 +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/clang_rt.crtbegin.o +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/clang_rt.crtend.o +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan-preinit.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan_static.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.builtins.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.cfi.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.cfi_diag.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.fuzzer.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.fuzzer_interceptors.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.fuzzer_no_main.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.gwp_asan.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.lsan.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.profile.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.safestack.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.scudo_standalone.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.scudo_standalone_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.scudo_standalone.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.stats.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.stats_client.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_minimal.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_minimal.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone.so + +# Files that don't appear in i686 +%ifnarch %{ix86} +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan_cxx.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dd.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dfsan.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dfsan.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dyndd.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases_cxx.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_cxx.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan-preinit.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof_cxx.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof-preinit.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan_cxx.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan_cxx.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan_cxx.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan.so +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_minimal.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone_cxx.a.syms +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray-basic.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray-fdr.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray-profiling.a +%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/liborc_rt.a +%endif \ No newline at end of file diff --git a/files.spec.inc b/files.spec.inc index e196c8a..020a50a 100644 --- a/files.spec.inc +++ b/files.spec.inc @@ -502,17 +502,29 @@ %if %{without compat_build} -%files -n %{pkg_name_compiler_rt} +%files -n %{pkg_name_compiler_rt} -f files.compiler-rt.spec.inc %license compiler-rt/LICENSE.TXT %ifarch x86_64 aarch64 %{ix86} -%{_prefix}/lib/clang/%{maj_ver}/bin/* +%{_prefix}/lib/clang/%{maj_ver}/bin/hwasan_symbolize %endif -%{_prefix}/lib/clang/%{maj_ver}/include/* -%{_prefix}/lib/clang/%{maj_ver}/lib/* -%{_prefix}/lib/clang/%{maj_ver}/share/* -#%ifarch x86_64 aarch64 -#{_bindir}/hwasan_symbolize -#%endif +%{_prefix}/lib/clang/%{maj_ver}/include/fuzzer +%{_prefix}/lib/clang/%{maj_ver}/include/fuzzer/* +%{_prefix}/lib/clang/%{maj_ver}/include/orc +%{_prefix}/lib/clang/%{maj_ver}/include/orc/* +%{_prefix}/lib/clang/%{maj_ver}/include/profile +%{_prefix}/lib/clang/%{maj_ver}/include/profile/* +%{_prefix}/lib/clang/%{maj_ver}/include/sanitizer +%{_prefix}/lib/clang/%{maj_ver}/include/sanitizer/* +%{_prefix}/lib/clang/%{maj_ver}/include/xray +%{_prefix}/lib/clang/%{maj_ver}/include/xray/* + +%{_prefix}/lib/clang/%{maj_ver}/share/asan_ignorelist.txt +%{_prefix}/lib/clang/%{maj_ver}/share/asan_ignorelist.txt +%{_prefix}/lib/clang/%{maj_ver}/share/cfi_ignorelist.txt +%{_prefix}/lib/clang/%{maj_ver}/share/cfi_ignorelist.txt +%{_prefix}/lib/clang/%{maj_ver}/share/dfsan_abilist.txt +%{_prefix}/lib/clang/%{maj_ver}/share/hwasan_ignorelist.txt +%{_prefix}/lib/clang/%{maj_ver}/share/msan_ignorelist.txt %endif diff --git a/sources.spec.inc b/sources.spec.inc index 7604b8d..c8748c6 100644 --- a/sources.spec.inc +++ b/sources.spec.inc @@ -18,6 +18,7 @@ Source1001: build.spec.inc Source1002: changelog.spec.inc Source1003: check.spec.inc Source1004: files.spec.inc +Source1014: files.compiler-rt.spec.inc Source1005: globals.spec.inc Source1006: install.spec.inc Source1008: patches.spec.inc