Subject: bin/26275: New gzip not GNU conform WRT .gz suffix
To: None <gnats-bugs@gnats.NetBSD.org>
From: Hubert Feyrer <feyrer@miyu.feyrer.net>
List: netbsd-bugs
Date: 07/14/2004 01:17:54
>Number: 26275
>Category: bin
>Synopsis: New gzip not GNU conform WRT .gz suffix
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jul 13 23:19:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Hubert Feyrer
>Release: NetBSD 2.0_BETA
>Organization:
bla!
>Environment:
System: NetBSD miyu 2.0_BETA NetBSD 2.0_BETA (MIYU) #10: Sat Jul 10 03:16:36 MEST 2004 feyrer@miyu:/home/cvs/src-2.0/sys/arch/i386/compile/obj.i386/MIYU i386
Architecture: i386
Machine: i386
>Description:
I ran into this while trying to compile quakeforge on 2.0_BETA/i386:
Aparently NetBSD's new gzip doesn't mind compressing files again,
even if they already have a .gz suffix:
miyu% cp /etc/group .
miyu% gzip group
miyu% gzip group.gz
miyu% gzip group.gz.gz
miyu% gzip group.gz.gz.gz
...
miyu% gzip -V
NetBSD gzip 20040524
miyu% uname -a
NetBSD miyu 2.0_BETA NetBSD 2.0_BETA (MIYU) #10: Sat Jul 10 03:16:36 MEST 2004 feyrer@miyu:/home/cvs/src-2.0/sys/arch/i386/compile/obj.i386/MIYU i386
This does not happen on stock GNU gzip:
ice% cp /etc/group .
ice% gzip group
ice% gzip group.gz
gzip: group.gz already has .gz suffix -- unchanged
ice% gzip -f group.gz
gzip: group.gz already has .gz suffix -- unchanged
ice% gzip -V
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H ASMV
ice% uname -a
FreeBSD ice 4.9-STABLE FreeBSD 4.9-STABLE #11: Sun Jan 25 15:43:27 CET 2004
>How-To-Repeat:
cd /usr/pkgsrc/games/quakeforge
make
See it fail
>Fix:
Make new NetBSD gzip conform to GNU behaviour and refuse to
compress a file with .gz suffix.
>Release-Note:
>Audit-Trail:
>Unformatted: