The problem with gzip(1)

Hasso Tepper hasso at estpak.ee
Tue Mar 3 09:43:12 PST 2009


Our gzip(1) has a trouble unpacking lokigames/idsoftware etc archives (a 
shell script and tar.gz in one file) making these packages fail in 
pkgsrc. The main trouble is that it's not gzip(1) itself and probably not 
libz either that causes the problem, but something else. I have exactly 
the same problem with GNU gzip from pkgsrc in DragonFly, but GNU gzip 
works just fine with these archives on every other platform I have access 
to. Our tar doesn't have problem either with these files (not using gzip, 
but libz directly).

Finding out what exactly causes it is beyond my skills at the moment ...

The testcase:

$ fetch \
ftp://ftp.estpak.ee/pub/FreeBSD/ports/distfiles/linuxq3apoint-1.32b.x86.run
$ sed '1,265d' linuxq3apoint-1.32b.x86.run | gzip -cd > /dev/null
gzip: input not gziped (MAGIC0)
$
$ sed '1,265d' linuxq3apoint-1.32b.x86.run | /usr/pkg/bin/gzip -cd \ 
> /dev/null
gzip: stdin: unexpected end of file
$
$ sed '1,265d' linuxq3apoint-1.32b.x86.run | /usr/bin/bsdtar zxfO - \ 
> /dev/null
$


-- 
Hasso Tepper





More information about the Bugs mailing list