View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011170CMakeCMakepublic2010-08-25 08:532010-08-25 09:34
ReporterMikko Vainio 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0011170: 'cmake -E tar cfz' does not include preceding paths in archive but 'tar cfz' does on CentOS5.5
DescriptionI'm trying to procude a binary Debian .deb package using CMake/CPack on CentOS5.5. Everything works as expected, but trying to install the generate .deb on a Debian machine fails because the archive 'data.tar.gz' in the .deb, generated by calling 'cmake -E tar cfz ...' at cmCPackDebGenerator.cxx line 137, does not contain the leading directory names:
./usr/share/doc/dummy/dummy.txt

Calling 'tar cfz ...' directly on the command line produces an archive with the preceding directory names included:
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/dummy/
./usr/share/doc/dummy/dummy.txt

Debian's packaging tool dpkg expects the preceding paths and fails with
"unable to create './usr/share/doc/dummy/dummy.txt' No such file or directory" unless the path is manually created on the system prior to attempting the installation. Creating the directories manually allows to install and the application compiled on CentOS5.5 runs fine on Debian lenny.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0011020closedBrad King CPack produces uninstallable DEB files with 2.8.2, worked with 2.8.1 

  Notes
(0021950)
Bill Hoffman (manager)
2010-08-25 09:22

I think this is already fixed in master.
(0021951)
Brad King (manager)
2010-08-25 09:34

It is already fixed and will be in 2.8.3:

http://cmake.org/gitweb?p=cmake.git;a=log;h=1b5b2ed3 [^]

 Issue History
Date Modified Username Field Change
2010-08-25 08:53 Mikko Vainio New Issue
2010-08-25 09:22 Bill Hoffman Note Added: 0021950
2010-08-25 09:22 Bill Hoffman Status new => assigned
2010-08-25 09:22 Bill Hoffman Assigned To => Brad King
2010-08-25 09:33 Brad King Relationship added duplicate of 0011020
2010-08-25 09:34 Brad King Note Added: 0021951
2010-08-25 09:34 Brad King Status assigned => closed
2010-08-25 09:34 Brad King Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team