[cmake-developers] CMake 3.4.0-rc2 cpack xz compressed debian packages broken

Nils Gladitz nilsgladitz at gmail.com
Fri Oct 23 05:22:07 EDT 2015


Given this test case:
   cmake_minimum_required(VERSION 3.3)

   project(Foo NONE)

   install(FILES CMakeLists.txt DESTINATION tmp)

   set(CPACK_DEBIAN_COMPRESSION_TYPE "xz")
   set(CPACK_PACKAGE_CONTACT "foo at bar.com")

   include(CPack)

A debian package created with:
     cpack -G DEB

Fails during installation with dpkg -i with:
   tar: Archive is compressed. Use -J option
   tar: Error is not recoverable: exiting now
   dpkg-deb: error: subprocess tar returned error exit status 2

The breaking commit seems to be:
     7044e8ee4baa8250fd9c4e915b13d53c7f543ea3 CPackDeb: use of 
libarchive and removal of fakeroot

 From the looks of it the contained "control.tar.gz" is now XZ 
compressed as well while it previously was gzip compressed.

Nils


More information about the cmake-developers mailing list