MantisBT - CMake
View Issue Details
0015489CMakeCMakeSetuppublic2015-04-01 16:152015-11-02 09:13
Bill Newcomb 
Brad King 
normalminoralways
closedfixed 
LinuxCentOS5.7
CMake 3.2.1 
CMake 3.3CMake 3.3 
0015489: CMake.ELF test fails when sources are read-only
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.
./bootstrap
make
make test
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()
No tags attached.
Issue History
2015-04-01 16:15Bill NewcombNew Issue
2015-04-01 16:34Brad KingNote Added: 0038387
2015-04-01 16:34Brad KingAssigned To => Brad King
2015-04-01 16:34Brad KingStatusnew => resolved
2015-04-01 16:34Brad KingResolutionopen => fixed
2015-04-01 16:34Brad KingFixed in Version => CMake 3.3
2015-04-01 16:34Brad KingTarget Version => CMake 3.3
2015-11-02 09:13Robert MaynardNote Added: 0039756
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038387)
Brad King   
2015-04-01 16:34   
Applied, thanks:

 Tests: Fix CMake.ELF test with read-only source
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a293dcb5 [^]
(0039756)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.