NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/57368: NetBSD gzip is not byte for byte compatible with GNU gzip



>Number:         57368
>Category:       bin
>Synopsis:       NetBSD gzip is not byte for byte compatible with GNU gzip
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 19 10:50:00 +0000 2023
>Originator:     Roy Marples
>Release:        NetBSD-10
>Organization:
>Environment:
NetBSD netbsd 10.0_BETA NetBSD 10.0_BETA (GENERIC) #0: Tue Mar 14 17:15:36 UTC 2023  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
It's impossible to sign a gzipped archive because the checksum differs between GNU and NetBSD implementations. I cannot find any combination of commandline options that match.

As such it's impossible to sign my github releases using NetBSD's gzip implementation.
>How-To-Repeat:
netbsd$ cat /lib/libc.so | gzip -cn >/tmp/netbsd.gzip
netbsd$ cat /lib/libc.so | /usr/pkg/bin/gzip -cn >/tmp/gnu.gzip
netbsd$ ls -l /tmp/*zip
-rw-r--r--  1 roy  wheel  931788 Apr 19 10:41 /tmp/gnu.gzip
-rw-r--r--  1 roy  wheel  930027 Apr 19 10:41 /tmp/netbsd.gzip
netbsd$ cksum -a sha256 /tmp/netbsd.gzip /tmp/gnu.gzip
SHA256 (/tmp/netbsd.gzip) = 8eeefbf918230c2455a1163230a164c06a0d7b8694aff01858eaaaa10664297b
SHA256 (/tmp/gnu.gzip) = cddb8fc52cfc4a2b5eb34f5a4ae3ec46a99f373502904cdd7729315d583dc712
>Fix:



Home | Main Index | Thread Index | Old Index