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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to