View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014677CMakeCPackpublic2014-01-01 14:192015-11-02 09:13
ReporterClinton Stimpson 
Assigned ToClinton Stimpson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSOS Version
Product VersionCMake 3.0 
Target VersionCMake 3.3Fixed in VersionCMake 3.3 
Summary0014677: cpack gives archive_read_disk_entry_from_file: Can't lstat <file>
DescriptionCPack 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 ReproduceUse 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 InformationWith -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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0038360)
Brad King (manager)
2015-03-30 09:27

cpack: Fix CPACK_PACKAGING_INSTALL_PREFIX handling for archives
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e3f84fc5 [^]
(0039753)
Robert Maynard (manager)
2015-11-02 09:13

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-01-01 14:19 Clinton Stimpson New Issue
2015-03-30 09:27 Brad King Note Added: 0038360
2015-03-30 09:27 Brad King Assigned To => Clinton Stimpson
2015-03-30 09:27 Brad King Status new => resolved
2015-03-30 09:27 Brad King Resolution open => fixed
2015-03-30 09:27 Brad King Fixed in Version => CMake 3.3
2015-03-30 09:27 Brad King Target Version => CMake 3.3
2015-11-02 09:13 Robert Maynard Note Added: 0039753
2015-11-02 09:13 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team