From: Nathan Cutler Date: Wed, 15 Jul 2020 16:21:37 +0000 (+0200) Subject: cmake: add empty RPATH to ceph-diff-sorted X-Git-Tag: v15.2.9~60^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38847%2Fhead;p=ceph.git cmake: add empty RPATH to ceph-diff-sorted This fixes a transient FTBFS on openSUSE: [ 5365s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/ceph-15.2.4.337+g55cec95eaf-1.1.x86_64/usr/bin/ceph-diff-sorted [ 5365s] CMake Error at src/tools/cmake_install.cmake:230 (file): [ 5365s] file RPATH_CHANGE could not write new RPATH: [ 5365s] [ 5365s] /usr/lib64/ceph [ 5365s] [ 5365s] to the file: [ 5365s] [ 5365s] /home/abuild/rpmbuild/BUILDROOT/ceph-15.2.4.337+g55cec95eaf-1.1.x86_64/usr/bin/ceph-diff-sorted [ 5365s] [ 5365s] No valid ELF RPATH or RUNPATH entry exists in the file; Fixes: https://tracker.ceph.com/issues/46553 Signed-off-by: Nathan Cutler (cherry picked from commit cb20ce39315dc218e1b6338aae6a676a18453124) --- diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index 3c4cf2ecf74c..459d4430ea71 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -90,6 +90,9 @@ install(TARGETS osdmaptool DESTINATION bin) set(ceph-diff-sorted_srcs ceph-diff-sorted.cc) add_executable(ceph-diff-sorted ${ceph-diff-sorted_srcs}) +set_target_properties(ceph-diff-sorted PROPERTIES + SKIP_RPATH TRUE + INSTALL_RPATH "") install(TARGETS ceph-diff-sorted DESTINATION bin) if(WITH_TESTS)