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 ====================================================================== -- 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/cgi-bin/mailman/listinfo/cmake-developers
