Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package llvm9 for openSUSE:Factory checked in at 2022-02-13 19:50:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm9 (Old) and /work/SRC/openSUSE:Factory/.llvm9.new.1956 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm9" Sun Feb 13 19:50:47 2022 rev:25 rq:953967 version:9.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm9/llvm9.changes 2021-12-27 16:07:20.753698270 +0100 +++ /work/SRC/openSUSE:Factory/.llvm9.new.1956/llvm9.changes 2022-02-13 19:51:21.894264192 +0100 @@ -1,0 +2,6 @@ +Thu Feb 3 21:56:28 UTC 2022 - Aaron Puchert <aaronpuch...@alice-dsl.net> + +- Drop RUNPATH from packaged binaries, instead set LD_LIBRARY_PATH + for building and testing to simulate behavior of actual package. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm9.spec ++++++ --- /var/tmp/diff_new_pack.Q296KW/_old 2022-02-13 19:51:23.010267165 +0100 +++ /var/tmp/diff_new_pack.Q296KW/_new 2022-02-13 19:51:23.018267187 +0100 @@ -1,7 +1,7 @@ # # spec file for package llvm9 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -759,7 +759,6 @@ -DCOMPILER_RT_BUILD_SANITIZERS:BOOL=OFF \ -DCOMPILER_RT_BUILD_XRAY:BOOL=OFF \ -DLLDB_DISABLE_PYTHON=ON \ - -DCMAKE_SKIP_RPATH:BOOL=OFF \ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-keep-memory" \ -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-keep-memory" \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-keep-memory" \ @@ -786,6 +785,9 @@ %endif export LLVM_TABLEGEN=${PWD}/stage1/bin/llvm-tblgen export CLANG_TABLEGEN=${PWD}/stage1/bin/clang-tblgen +# The build occasionally uses tools linking against previously built +# libraries (mostly libLLVM.so), but we don't want to set RUNPATHs. +export LD_LIBRARY_PATH=${PWD}/build/%{_lib} # -z,now is breaking now, it needs to be fixed %cmake \ -DBUILD_SHARED_LIBS:BOOL=OFF \ @@ -836,7 +838,7 @@ %if %{without lldb_python} -DLLDB_DISABLE_PYTHON=ON \ %endif - -DCMAKE_SKIP_RPATH:BOOL=OFF \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,--build-id=sha1" \ -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,--build-id=sha1" \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--build-id=sha1" \ @@ -860,6 +862,8 @@ cd .. %install +# Installation seems to build some files not contained in "all". +export LD_LIBRARY_PATH=${PWD}/build/%{_lib} %cmake_install # Docs are prebuilt due to sphinx dependency @@ -1085,6 +1089,9 @@ rm test/tools/gold/X86/linkonce_odr_unnamed_addr.ll %endif +# We don't want to set RUNPATHs, and running tests against installed libraries +# should be more representative of the actual behavior of the installed packages. +export LD_LIBRARY_PATH=%{buildroot}%{_libdir} # LLVM test suite is written in python and has troubles with encoding if # python 3 is used because it is written with assumption that python will # default to UTF-8 encoding. However, it only does if the current locale is