Re: [bug] gzip archives created with pkg_create have wrong data sizes

2016-04-25 Thread Todd C. Miller
On Mon, 25 Apr 2016 18:24:53 -0400, dan mclaughlin wrote: > is it? one of the reasons i brought it up is that in gzip(1) it seems pretty > clear that it is supposed to be the file size The original file size (and thus compression ratio) is not stored in the gzip archive, it is computed by gzip(1

Re: [bug] gzip archives created with pkg_create have wrong data sizes

2016-04-25 Thread dan mclaughlin
On Sun, 24 Apr 2016 12:57:46 +0200 Marc Espie wrote: > 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

Re: [bug] gzip archives created with pkg_create have wrong data sizes

2016-04-25 Thread Marc Espie
On Mon, Apr 25, 2016 at 11:19:45AM -0400, Ted Unangst wrote: > Marc Espie wrote: > > On Sun, Apr 24, 2016 at 12:57:46PM +0200, Marc Espie wrote: > > > 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 > >

Re: [bug] gzip archives created with pkg_create have wrong data sizes

2016-04-25 Thread Ted Unangst
Marc Espie wrote: > On Sun, Apr 24, 2016 at 12:57:46PM +0200, Marc Espie wrote: > > 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_cr

Re: [bug] gzip archives created with pkg_create have wrong data sizes

2016-04-25 Thread Marc Espie
On Sun, Apr 24, 2016 at 12:57:46PM +0200, Marc Espie wrote: > 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 jus

Re: [bug] gzip archives created with pkg_create have wrong data sizes

2016-04-24 Thread Marc Espie
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 itsel

Re: [bug] gzip archives created with pkg_create have wrong data sizes

2016-04-24 Thread Stuart Henderson
On 2016/04/24 01:47, 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. The gzip stream is broken into chunks for more efficient package signing and to improve rsync-friendliness.

[bug] gzip archives created with pkg_create have wrong data sizes

2016-04-23 Thread dan mclaughlin
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. $ sysctl hw.machine kern.version hw.machine=i386 kern.version=OpenBSD 5.9-current (GENERIC) #0: Thu Apr 7 17:24:30 EDT 2016 build@node04:/usr/src/sys