On Sun, Apr 24, 2016 at 01:47:24AM -0400, dan mclaughlin wrote:
> the sizes of the compressed/uncompressed data are wrong. i have tested gzip
> and 'tar zcf' and the values are right, but using pkg_create fails.

gzip -l will just give you the first chunk, that's a limitation of the gzip
tool itself.

That could probably get fixed, but it's not that annoying.


pkg_create files are a succession of gzip chunks, for two reasons:
1/ putting the plist in its separate chunk makes pkg_sign drastically faster,
as it doesn't have to uncompress/recompress gzip files.
2/ files are ordered from last changed to least changed, and put into chunks
of 8 files, starting at the end, making it possible for rsync to perform its
magic on compressed packages, since the ending chunks do not change at all.

The actual uncompressed size of each package can be obtained with
pkg_info -s.

Reply via email to