summaryrefslogtreecommitdiffstats
path: root/Source/cmArchiveWrite.h
diff options
context:
space:
mode:
authorRoman Donchenko <roman.donchenko@itseez.com>2015-07-06 14:54:19 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-06 19:01:08 (GMT)
commitedae40239e64f8ea6c03d28601c9e7403a354f65 (patch)
tree10ff0ca8f2407379c7cde70e9c59203e7329f188 /Source/cmArchiveWrite.h
parent7e86f567aca6b913689dc2d8c17a17936284b811 (diff)
downloadCMake-edae40239e64f8ea6c03d28601c9e7403a354f65.zip
CMake-edae40239e64f8ea6c03d28601c9e7403a354f65.tar.gz
CMake-edae40239e64f8ea6c03d28601c9e7403a354f65.tar.bz2
cmArchiveWrite: do not store sparse files when using standard tar formats
Sparse files in tars are a GNU extension that libarchive will use if it detects holes in the input file, even when using the standard pax/paxr formats. Not all tar implementations can handle sparse files; in particular, the internal implementation dpkg uses to extract packages can't. To maximize archive portability, turn this feature off by clearing the sparseness information from archive entries.
Diffstat (limited to 'Source/cmArchiveWrite.h')
-rw-r--r--Source/cmArchiveWrite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmArchiveWrite.h b/Source/cmArchiveWrite.h
index 794cb28..e6f515d 100644
--- a/Source/cmArchiveWrite.h
+++ b/Source/cmArchiveWrite.h
@@ -84,6 +84,7 @@ private:
struct archive* Archive;
struct archive* Disk;
bool Verbose;
+ std::string Format;
std::string Error;
std::string MTime;
};