From 40468b1e9048a4e2385d711497b1c431d7391d1f Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 17 Nov 2018 05:02:32 +0000 Subject: [PATCH] Install testing libraries for unittests This is needed in order for clang to be able to run make check-all during koji builds. --- llvm.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 6b822e2..78771fb 100644 --- a/llvm.spec +++ b/llvm.spec @@ -50,7 +50,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 3%{?dist} +Release: 4%{?dist} Summary: The Low Level Virtual Machine License: NCSA @@ -253,6 +253,15 @@ for f in %{test_binaries}; do install -m 0755 ./bin/$f %{buildroot}%{llvm_bindir} done +# Install libraries needed for unittests +%if 0%{?__isa_bits} == 64 +%global build_libdir lib64 +%else +%global build_libdir lib +%endif + +install %{build_libdir}/libLLVMTestingSupport.a %{buildroot}%{_libdir} + %global install_srcdir %{buildroot}%{_datadir}/llvm/src %global lit_cfg test/lit.site.cfg.py %global lit_unit_cfg test/Unit/lit.site.cfg.py @@ -408,6 +417,7 @@ fi %files static %if !0%{?compat_build} %{_libdir}/*.a +%exclude %{_libdir}/libLLVMTestingSupport.a %{_libdir}/cmake/llvm/LLVMStaticExports.cmake %else %{_libdir}/%{name}/lib/*.a @@ -426,10 +436,14 @@ fi %files googletest %{_datadir}/llvm/src/utils +%{_libdir}/libLLVMTestingSupport.a %endif %changelog +* Sat Nov 17 2018 Tom Stellard - 7.0.0-4 +- Install testing libraries for unittests + * Sat Oct 27 2018 Tom Stellard - 7.0.0-3 - Fix running unittests as not-root user