cpack >= 2.8.2 DEB generator produces invalid .deb when long filenames are involved
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When project installed files have long filenames (e.g. doxygen generated files), cpack creates a .deb which cannot be installed because it's internal archive seems corrupted.
$ tar xvzf cpack-bug.tar.gz $ cd cpack-bug $ mkdir build && cd build $ cmake .. $ cpack -G DEB $ sudo dpkg -i cpack_bug*.deb (Reading database ... 536878 files and directories currently installed.) Unpacking cpack_bug (from cpack_bug-1.1.0-Linux.deb) ... dpkg: error processing cpack_bug-1.1.0-Linux.deb (--install): corrupted filesystem tarfile - corrupted package archive Errors were encountered while processing: cpack_bug-1.1.0-Linux.deb