[cmake-developers] [CMake 0014834]: cpack ZIP generator fails if a source file is readonly

Mantis Bug Tracker mantis at public.kitware.com
Tue Mar 25 01:43:12 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14834 
====================================================================== 
Reported By:                Bruce Cartland
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14834
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-03-25 01:43 EDT
Last Modified:              2014-03-25 01:43 EDT
====================================================================== 
Summary:                    cpack ZIP generator fails if a source file is
readonly
Description: 
Version 2.8.8 works.

Version 2.8.9 to the latest (2.8.12.2) fails when at least one of the source
files being zipped is read-only. This works for Ubuntu 12.04 and, I assume, any
non-Windows platform. The read-only file does actually get copied but then CPack
seems to fail at that point, so that no "later" files are copied.

If all files are writable, then everything works.

For the attached test project The error is:

CPack Error: Problem copying file: C:/cpack-test-ro/myproj/copyright.txt ->
C:/cpack-test-ro/build/_CPack_Packages/win32-Source/ZIP/abrbase_1.1.1_Source////copyright.txt
CPack Error: Error when generating package: myproj



Steps to Reproduce: 
Unzip attached test project to the root of the C: drive.

Ensure that c:\cpack-test-ro\myproj\copyright.txt is read-only

Start a command prompt at c:\cpack-test-ro\build

run "cpack.exe --config ./CPackSourceConfig.cmake"


Additional Information: 
Very simply test project attached.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-25 01:43 Bruce Cartland New Issue                                    
2014-03-25 01:43 Bruce Cartland File Added: cpack-test-ro.7z                    
======================================================================



More information about the cmake-developers mailing list