MantisBT - CMake
View Issue Details
0011170CMakeCMakepublic2010-08-25 08:532010-08-25 09:34
Mikko Vainio 
Brad King 
normalminoralways
closedfixed 
CMake-2-8 
 
0011170: 'cmake -E tar cfz' does not include preceding paths in archive but 'tar cfz' does on CentOS5.5
I'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.
No tags attached.
duplicate of 0011020closed Brad King CPack produces uninstallable DEB files with 2.8.2, worked with 2.8.1 
Issue History
2010-08-25 08:53Mikko VainioNew Issue
2010-08-25 09:22Bill HoffmanNote Added: 0021950
2010-08-25 09:22Bill HoffmanStatusnew => assigned
2010-08-25 09:22Bill HoffmanAssigned To => Brad King
2010-08-25 09:33Brad KingRelationship addedduplicate of 0011020
2010-08-25 09:34Brad KingNote Added: 0021951
2010-08-25 09:34Brad KingStatusassigned => closed
2010-08-25 09:34Brad KingResolutionopen => fixed

Notes
(0021950)
Bill Hoffman   
2010-08-25 09:22   
I think this is already fixed in master.
(0021951)
Brad King   
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 [^]