[cmake-developers] [CMake 0015489]: CMake.ELF test fails when sources are read-only
Mantis Bug Tracker
mantis at public.kitware.com
Wed Apr 1 16:15:19 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15489
======================================================================
Reported By: Bill Newcomb
Assigned To:
======================================================================
Project: CMake
Issue ID: 15489
Category: CMakeSetup
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-04-01 16:15 EDT
Last Modified: 2015-04-01 16:15 EDT
======================================================================
Summary: CMake.ELF test fails when sources are read-only
Description:
When the cmake sources are all set to read-only (e.g. after importing into
perforce), the CMake.ELF test fails because the copy of the binary is also
read-only and cannot be modified.
Steps to Reproduce:
./bootstrap
make
make test
Additional Information:
Assuming one's umask is sane, the following is a patch:
--- /tmp/tmp.10612.25 2015-04-01 13:13:35.000000000 -0700
+++ /a/cmake-bn/cmake-src/3.2.1/Tests/CMakeTests/ELFTest.cmake.in
2015-04-01 13:12:21.000000000 -0700
@@ -11,7 +11,7 @@
file(REMOVE_RECURSE "${out}")
file(MAKE_DIRECTORY "${out}")
foreach(f ${names})
- file(COPY ${in}/${f} DESTINATION ${out})
+ file(COPY ${in}/${f} DESTINATION ${out} NO_SOURCE_PERMISSIONS)
list(APPEND files "${out}/${f}")
endforeach()
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-04-01 16:15 Bill Newcomb New Issue
======================================================================
More information about the cmake-developers
mailing list