NetBSD Problem Report #56136

From www@netbsd.org  Fri Apr 30 11:04:45 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DE6DF1A928C
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 30 Apr 2021 11:04:45 +0000 (UTC)
Message-Id: <20210430110444.323721A928D@mollari.NetBSD.org>
Date: Fri, 30 Apr 2021 11:04:44 +0000 (UTC)
From: netbsd@precedence.co.uk
Reply-To: netbsd@precedence.co.uk
To: gnats-bugs@NetBSD.org
Subject: Checksum in mtree file differs from that for the file itself in distribution builds
X-Send-Pr-Version: www-1.0

>Number:         56136
>Category:       toolchain
>Synopsis:       Checksum in mtree file differs from that for the file itself in distribution builds
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 30 11:05:00 +0000 2021
>Originator:     Stephen Borrill
>Release:        9.1_STABLE
>Organization:
>Environment:
NetBSD builder9 9.1 NetBSD 9.1 (XEN3_DOMU) #0: Sun Oct 18 19:24:30 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/xen/compile/XEN3_DOMU amd64

>Description:
Checksum in mtree file for /usr/lib/i386/libkadm5srv.so.15.0 differs from that for the file itself in distribution tarballs. See on autobuild cluster, so perhaps MKREPRO issue?

It is only this file that is affected by the cksum problem. This is a long-term problem (also in 9.1 release).

In addition there are two files in the tarball that are not in the mtree:

./usr/lib/i386/libtermcap.so.0.6
./usr/lib/i386/libtermlib.so.0.6

>How-To-Repeat:
Download http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/amd64/binary/sets/base.tar.xz

tar -xpzf base.tar.xz ./etc/mtree/set.base ./usr/lib/i386/libkadm5srv.so.15.0

# cksum -a sha256 ./usr/lib/i386/libkadm5srv.so.15.0
SHA256 (./usr/lib/i386/libkadm5srv.so.15.0) = 20f227ef1fd15342540c2a437795c318ee5a03b42f88fb74f35182cf0ba70ee4

# grep ./usr/lib/i386/libkadm5srv.so.15.0 etc/mtree/set.base
./usr/lib/i386/libkadm5srv.so.15.0 type=file uname=root gname=wheel mode=0444 size=95068 sha256=53144885ce3083af9847f66fbd583fdfb685cf188b7d330df3ce5d3feedd3402

# ls -l ./usr/lib/i386/libkadm5srv.so.15.0
-r--r--r--  1 root  wheel  95068 Apr 28 10:59 ./usr/lib/i386/libkadm5srv.so.15.0

Note that cksums do not match between the file in the tarball and the mtree entry.
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.