The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14677 
====================================================================== 
Reported By:                Clinton Stimpson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14677
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-01 14:19 EST
Last Modified:              2014-01-01 14:19 EST
====================================================================== 
Summary:                    cpack gives archive_read_disk_entry_from_file: Can't
lstat <file>
Description: 
CPack archive generator gives an error when using these two settings together.

set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/My-1.0")

The result is that I cannot create a .tar.gz package.


Steps to Reproduce: 
Use this CMakeLists.txt file:


file(WRITE file.txt.in "hi")
configure_file(file.txt.in ${CMAKE_CURRENT_BINARY_DIR}/file-runtime.txt)
configure_file(file.txt.in ${CMAKE_CURRENT_BINARY_DIR}/file-devel.txt)

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/file-runtime.txt
        DESTINATION bin COMPONENT Runtime)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/file-devel.txt
        DESTINATION lib COMPONENT Development)

set(CPACK_COMPONENTS_ALL Development)
set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/My-1.0")
include(CPack)


Additional Information: 
With -V, cpack gives:

CPack: Create package
CPack Verbose: Package files to:
_CPack_Packages/Linux/TGZ/Project-0.1.1-Linux.tar.gz
CPack Verbose: Component <Development> does not belong to any group, package it
separately.
CPack Verbose:    - packaging component: Development
CPack Error: ERROR while packaging files: archive_read_disk_entry_from_file:
Can't lstat lib/file-devel.txt


It also doesn't make sense that I get the message "Component <Development> does
not belong to any group, package it separately", when I'm already packaging it
separatly by setting CPACK_COMPONENTS_ALL.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-01 14:19 Clinton StimpsonNew Issue                                    
======================================================================

--

Powered by www.kitware.com

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

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

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

Reply via email to