Deb's created with cpack contain corrupted content tarball.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Brian Murray |
Bug Description
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
ProcVersionSign
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
Ec2Availability
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_
This contains a sample CMakeLists.txt file for the CMake project, a dummy C++ file (DistanceBetwee
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 DistanceBetween
The package currently does not install, with error message:
___
Selecting previously unselected package distancebetween
(Reading database ... 381484 files and directories currently installed.)
Unpacking distancebetween
dpkg: error processing DistanceBetween
corrupted filesystem tarfile - corrupted package archive
Errors were encountered while processing:
DistanceBetwee
____
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://
Related branches
- Brian Murray: Approve
- Ubuntu branches: Pending requested
-
Diff: 43 lines (+23/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/99-cpack-corrupted-tarball-debs-fix.patch (+15/-0)
debian/patches/series (+1/-0)
description: | updated |
description: | updated |
Changed in cmake (Ubuntu Precise): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in cmake (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
Status changed to 'Confirmed' because the bug affects multiple users.