The following issue is now in status NEW (again) ====================================================================== http://cmake.org/Bug/view.php?id=13072 ====================================================================== Reported By: Mario Lang Assigned To: ====================================================================== Project: CMake Issue ID: 13072 Category: CPack Reproducibility: N/A Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2012-03-29 16:33 CEST Last Modified: 2012-03-30 19:06 CEST ====================================================================== Summary: Allow CPack to generate tar.xz archives Description: For my project I'd like to use CPack to generate tar.xz source archives. After a bit of poking around in the git repository I realized that xz support is already there in the underlying library for handling archives. However, there is no Generator for TXZ. The attached patch adds the necessary generator. Tested and works as expected for me. I can set(CPACK_SOURCE_GENERATOR "TGZ;TXZ;") now and the result is just as expected. A second patch (also to be attached) adds the CPACK_BINARY_TXZ and CPACK_SOURCE_TXZ options as well.
====================================================================== Relationships ID Summary ---------------------------------------------------------------------- duplicate of 0011040 TXZ support to cpack ====================================================================== ---------------------------------------------------------------------- (0029008) Eric NOULARD (developer) - 2012-03-30 17:40 http://cmake.org/Bug/view.php?id=13072#c29008 ---------------------------------------------------------------------- This looks fine but unfortnately this is may not be enough. CMake should build on any host, LZMA lib being installed or not. In order to achieve this for Bzip2, zip, z and gz compression CMake includes: Utilities/cmbzip2 Utilities/zlib in its source tree. Then options: CMAKE_USE_SYSTEM_BZIP2 and CMAKE_USE_SYSTEM_ZLIB are used to toggle between system version and shipped-in version of those libs. What would happen if CMake is compiled on a host where lzma lib is not installed? Will it fail to compile or will CPack have a non-functional TXZ generator? ---------------------------------------------------------------------- (0029010) Eric NOULARD (developer) - 2012-03-30 17:52 http://cmake.org/Bug/view.php?id=13072#c29010 ---------------------------------------------------------------------- Just remembered that there was a sibling bug closed some time ago, I did add the relationship, but read David's comment about portability: http://public.kitware.com/Bug/view.php?id=11040#c24155 Issue History Date Modified Username Field Change ====================================================================== 2012-03-29 16:33 Mario Lang New Issue 2012-03-29 16:33 Mario Lang File Added: 0001-cmCPackTXZGenerator-Add-tar.xz-archive-generation.patch 2012-03-29 16:36 Mario Lang File Added: 0002-Add-CPACK_BINARY_TXZ-and-CPACK_SOURCE_TXZ-options.patch 2012-03-29 16:52 Eric NOULARD Issue Monitored: Eric NOULARD 2012-03-30 17:20 Eric NOULARD Assigned To => Eric NOULARD 2012-03-30 17:20 Eric NOULARD Status new => assigned 2012-03-30 17:40 Eric NOULARD Note Added: 0029008 2012-03-30 17:43 Eric NOULARD Assigned To Eric NOULARD => 2012-03-30 17:48 Eric NOULARD Relationship added has duplicate 0001104 2012-03-30 17:52 Eric NOULARD Note Added: 0029010 2012-03-30 19:04 Brad King Relationship added duplicate of 0011040 2012-03-30 19:05 Brad King Relationship deleted has duplicate 0001104 2012-03-30 19:06 Eric NOULARD Status assigned => new ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
