diff options
author | Guillem Jover <guillem@hadrons.org> | 2018-11-22 02:39:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-28 14:31:28 (GMT) |
commit | 38e75bb3c6c4c41ff80697876aa7498c80a8623a (patch) | |
tree | f32d73b8380618d9937d8f61dc0b934cd2b7f21d /Modules/Internal/CPack | |
parent | 0fc6faf2ddfb146704146d13b71bfd048128917f (diff) | |
download | CMake-38e75bb3c6c4c41ff80697876aa7498c80a8623a.zip CMake-38e75bb3c6c4c41ff80697876aa7498c80a8623a.tar.gz CMake-38e75bb3c6c4c41ff80697876aa7498c80a8623a.tar.bz2 |
CPack/Deb: Remove paxr as a supported tar format for a .deb
The only format supported from the ones available within cpack is
gnutar, which supports large numbers encoded in base-256, and long
filenames and linknames. PAX is not and has never been a supported
format by dpkg.
Fixes: #18620
Diffstat (limited to 'Modules/Internal/CPack')
-rw-r--r-- | Modules/Internal/CPack/CPackDeb.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/Internal/CPack/CPackDeb.cmake b/Modules/Internal/CPack/CPackDeb.cmake index 3042a16..89dc6f0 100644 --- a/Modules/Internal/CPack/CPackDeb.cmake +++ b/Modules/Internal/CPack/CPackDeb.cmake @@ -482,13 +482,16 @@ function(cpack_deb_prepare_package_vars) endif() if(CPACK_DEBIAN_ARCHIVE_TYPE) - set(archive_types_ "paxr;gnutar") - if(NOT CPACK_DEBIAN_ARCHIVE_TYPE IN_LIST archive_types_) + if(CPACK_DEBIAN_ARCHIVE_TYPE STREQUAL "paxr") + message(DEPRECATION "CPACK_DEBIAN_ARCHIVE_TYPE set to old and invalid " + "type 'paxr', mapping to 'gnutar'") + set(CPACK_DEBIAN_ARCHIVE_TYPE "gnutar") + elseif(NOT CPACK_DEBIAN_ARCHIVE_TYPE STREQUAL "gnutar") message(FATAL_ERROR "CPACK_DEBIAN_ARCHIVE_TYPE set to unsupported" "type ${CPACK_DEBIAN_ARCHIVE_TYPE}") endif() else() - set(CPACK_DEBIAN_ARCHIVE_TYPE "paxr") + set(CPACK_DEBIAN_ARCHIVE_TYPE "gnutar") endif() # Compression: (recommended) |