summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/RPM
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2017-03-25 18:13:08 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-27 13:08:24 (GMT)
commit4ba065b22b544a509c76e497306b65e2dc0d5ee7 (patch)
treee98547469951e491f49966cda8ecf40d76549547 /Tests/RunCMake/CPack/RPM
parent9f37f94d639aa4a5cc42a2f60fafb51bed317e1b (diff)
downloadCMake-4ba065b22b544a509c76e497306b65e2dc0d5ee7.zip
CMake-4ba065b22b544a509c76e497306b65e2dc0d5ee7.tar.gz
CMake-4ba065b22b544a509c76e497306b65e2dc0d5ee7.tar.bz2
CPack/RPM tests: handle build-id links
Build id links generation was introduced in rpm 4.13.0.1 so files related to them should be ignored as they are not relevant for the tests. Fixes #16710
Diffstat (limited to 'Tests/RunCMake/CPack/RPM')
-rw-r--r--Tests/RunCMake/CPack/RPM/Helpers.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/RPM/Helpers.cmake b/Tests/RunCMake/CPack/RPM/Helpers.cmake
index bbc358c8..d8012b1 100644
--- a/Tests/RunCMake/CPack/RPM/Helpers.cmake
+++ b/Tests/RunCMake/CPack/RPM/Helpers.cmake
@@ -36,6 +36,10 @@ function(getPackageContentList FILE RESULT_VAR)
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REGEX REPLACE "\n" ";" package_content_ "${package_content_}")
+ # never versions of rpmbuild (introduced in rpm 4.13.0.1) add build_id links
+ # to packages - tests should ignore them
+ list(FILTER package_content_ EXCLUDE REGEX ".*\.build-id.*")
+
set(${RESULT_VAR} "${package_content_}" PARENT_SCOPE)
endfunction()