Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package llvm7 for openSUSE:Factory checked in at 2022-02-13 19:50:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm7 (Old) and /work/SRC/openSUSE:Factory/.llvm7.new.1956 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm7" Sun Feb 13 19:50:46 2022 rev:30 rq:953966 version:7.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm7/llvm7.changes 2022-01-03 10:50:43.851610578 +0100 +++ /work/SRC/openSUSE:Factory/.llvm7.new.1956/llvm7.changes 2022-02-13 19:51:20.530260559 +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: ------------------ ++++++ llvm7.spec ++++++ --- /var/tmp/diff_new_pack.4Mk7cI/_old 2022-02-13 19:51:21.666263585 +0100 +++ /var/tmp/diff_new_pack.4Mk7cI/_new 2022-02-13 19:51:21.674263606 +0100 @@ -679,7 +679,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" \ @@ -703,6 +702,9 @@ export CXX=${PWD}/stage1/bin/clang++ 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 \ @@ -740,7 +742,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" \ @@ -750,6 +752,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 @@ -961,7 +965,9 @@ %fdupes %{_includedir}/%{name}/Host/ %check - +# 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