** Description changed: I have tried to build 3 different projects that use cmake + cpack to create deb files. All packages created with the repository version of cmake contain corrupted content tarballs. Downloading of 2.8.7 source from the cmake.org website and building it for use results in valid working packages being generated. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: cmake 2.8.7-0ubuntu4 ProcVersionSignature: User Name 3.2.0-21.34-virtual 3.2.13 Uname: Linux 3.2.0-21-virtual x86_64 ApportVersion: 2.0-0ubuntu2 Architecture: amd64 Date: Tue Apr 3 13:00:42 2012 Ec2AMI: ami-00000034 Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m2.medium Ec2Kernel: unavailable Ec2Ramdisk: unavailable ProcEnviron: TERM=xterm LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: cmake UpgradeStatus: No upgrade log present (probably fresh install) + + + [IMPACT] + All packages and tar files built with libarchive from files which contain file flags are corrupted by the compression used. This affects all DEB packages, and possibly other package formats too. Bug has been fixed upstream + + [TESTCASE] + Download and extract archive cpack_test_case.tar.gz from comment #7 + This contains a sample CMakeLists.txt file for the CMake project, a dummy C++ file (DistanceBetweenPoints.cxx) and a dummy file directory with many files (tmp). When extracted, the tmp dir should have the 'I' file flag set when running lsattr: + + lsattr cpack_test_case/tmp + + If the 'I' flag is not present on this directory, more dummy files + should be created in this directory, until the directory + + + To test the packaging: + + # cd build + + # cmake ../ + + # make package + + # sudo dpkg -i DistanceBetweenPoints.deb + + + The package currently does not install, with error message: + + ___ + Selecting previously unselected package distancebetweenpoints. + (Reading database ... 381484 files and directories currently installed.) + Unpacking distancebetweenpoints (from DistanceBetweenPoints-0.1.1-Linux.deb) ... + + + dpkg: error processing DistanceBetweenPoints-0.1.1-Linux.deb (--install): + corrupted filesystem tarfile - corrupted package archive + + Errors were encountered while processing: + DistanceBetweenPoints-0.1.1-Linux.deb + ____ + + + With the patch applied, this package should install fine. + + + [REGRESSION POTENTIAL] + + There is little risk of regression, packages/tar files created with + CMake could not be unpacked regardless, so this fix will not regress any + behaviour with these files. + + + [OTHER] + + Discussion of this bug, and another test case can be found: + + http://public.kitware.com/pipermail/cmake- + developers/2012-June/004197.html
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/972419 Title: Deb's created with cpack contain corrupted content tarball. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/972419/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
