[cmake-developers] [CMake 0012865]: CPack generated archives don't have correct permissions when cross compiling on windows

Mantis Bug Tracker mantis at public.kitware.com
Mon Jan 9 11:47:02 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12865 
====================================================================== 
Reported By:                muhkuh
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12865
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2012-01-09 11:47 EST
Last Modified:              2012-01-09 11:47 EST
====================================================================== 
Summary:                    CPack generated archives don't have correct
permissions when cross compiling on windows
Description: 
We have a cross toolchain running on windows that compiles code and builds
install packages for linux and other unix like systems. When using CPack to
create tar.gz installer packages the files  in these archives don't have the
execute file permission set for the executables and libraries. 

Additional Information: 
My guess is that this happens because CPack relies on the hosts filesystem to
have the file permissions as the cmake install target dictates. But this doesn't
work when compiling under windows because NTFS doesn't support file permissions
in this way.

It would be nice if cpack could get correct file permissions in a different way
like reading a metadata file that cmake outputs but this might be too much work
for this small problem. May be it would be sufficient to add an option to the
cpack that allows the user to override permissions.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-01-09 11:47 muhkuh         New Issue                                    
======================================================================




More information about the cmake-developers mailing list