NetBSD Problem Report #36374

From hf@spg.tu-darmstadt.de  Tue May 22 10:25:30 2007
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1C5B863B880
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 22 May 2007 10:25:30 +0000 (UTC)
Message-Id: <200705221024.l4MAOwsg025668@Hochstuhl.nt.e-technik.tu-darmstadt.de>
Date: Tue, 22 May 2007 12:24:58 +0200 (CEST)
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Reply-To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: mac68k netbsd-4 build fails because of invalid option to cksum(1)
X-Send-Pr-Version: 3.95

>Number:         36374
>Category:       port-mac68k
>Synopsis:       mac68k netbsd-4 build fails because of invalid option to cksum(1)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    hauke
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 22 10:30:00 +0000 2007
>Closed-Date:    Sun Jun 10 20:29:51 +0000 2007
>Last-Modified:  Sat Jan 26 18:42:42 +0000 2008
>Originator:     Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
>Release:        NetBSD 4.0_BETA2
>Organization:

>Environment:


System: (Build host) NetBSD Hochstuhl 3.1_STABLE NetBSD 3.1_STABLE (HOCHSTUHL) #0: Thu Mar 1 20:15:48 CET 2007 hf@Hochstuhl:/var/obj/netbsd-builds/3/i386/sys/arch/i386/compile/HOCHSTUHL i386
Architecture: m68k
Machine: mac68k
>Description:

Cross-building a netbsd-4 release of mac68k fails because an invalid
option '-m' is provided to nbcksum(1):

[...]

--- release-mac68k ---
release ===> etc/mac68k
--- release-instkernel ---
--- release-stand ---
--- release-instkernel ---
release ===> etc/mac68k/instkernel
--- release-stand ---
release ===> etc/mac68k/stand
--- release-instkernel ---
--- release-ramdisk ---
release ===> etc/mac68k/instkernel/ramdisk
--- release-stand ---
--- release ---
STRIP=/u/netbsd-builds/4/mac68k/tools/bin/m68k--netbsdelf-strip /u/netbsd-builds/4/mac68k/tools/bin/nbinstall -d /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc
STRIP=/u/netbsd-builds/4/mac68k/tools/bin/m68k--netbsdelf-strip /u/netbsd-builds/4/mac68k/tools/bin/nbinstall -r  -c -m 444 /public/netbsd-4/distrib/mac68k/stand/extensions.map  /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc
rm -f  /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc/{BSDSUM,CKSUM,MD5,SYSVSUM}
for i in BSD_Mac68k_Booter.bin Mkfs.sea.hqx Booter-HTML-manual-12.tar  Mkfs_1.47.sea.bin Mkfs_1.47.sea.hqx Booter2.0.0.sea  BooterManual.stxt.bin NetBSD_ROM.sit.hqx Installer.sea.hqx  README.Booter Installer_1.1g.sea.bin README.Installer  Installer_1.1g.sea.hqx README mode32-7.5.bin Installer_1.1h.sea.bin  mode32-7.5.hqx Installer_1.1h.sea.hqx pdisk.sea.hqx  res-edit-and-others.hqx  /public/netbsd-4/distrib/mac68k/stand/BSD_Mac68k_Booter.bin.uue  /public/netbsd-4/distrib/mac68k/stand/BooterManual.stxt.bin.uue ;  do  STRIP=/u/netbsd-builds/4/mac68k/tools/bin/m68k--netbsdelf-strip /u/netbsd-builds/4/mac68k/tools/bin/nbinstall -r  -c -m 444 $i /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc ;  (cd /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc ;  /u/netbsd-builds/4/mac68k/tools/bin/nbcksum -o1 `basename $i` >> BSDSUM) ;  (cd /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc ;  /u/netbsd-builds/4/mac68k/tools/bin/nbcksum     `basename $i`!
  >> CKSUM) ;  (cd /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc ;  /u/netbsd-builds/4/mac68k/tools/bin/nbcksum -m  `basename $i` >> MD5) ;  (cd /u/netbsd-builds/4/mac68k/releasedir/mac68k/installation/misc ;  /u/netbsd-builds/4/mac68k/tools/bin/nbcksum -o2 `basename $i` >> SYSVSUM) ;  done
nbcksum: unknown option -- m
usage: cksum [-nw] [-a algorithm | -c file ]
		| [-o 1 | 2]] [file ...]
       sum [-c] [file ...]
       md2 [-n] [-p | -t | -x | -s string] [file ...]
       md4 [-n] [-p | -t | -x | -s string] [file ...]
       md5 [-n] [-p | -t | -x | -s string] [file ...]
       sha1 [-n] [-p | -t | -x | -s string] [file ...]
       rmd160 [-n] [-p | -t | -x | -s string] [file ...]

The culprits are in 

[hf@Hochstuhl] /<2>netbsd-4/src > grep -e ' -m' distrib/mac68k/stand/Makefile
            ${TOOL_CKSUM} -m  `basename $$i` >> MD5) ; \
            ${TOOL_CKSUM} -m  `basename $$i` >> MD5) ; \

-- for whatever reason, the checksum failure does not terminate the build:

[...]

make release started at:  Mon May 21 16:42:36 CEST 2007
make release finished at: Mon May 21 18:10:30 CEST 2007
===> Successful make release
===> build.sh ended:   Mon May 21 18:10:30 CEST 2007


>How-To-Repeat:

	Build a release of mac68k netbsd-4 branch. 	

>Fix:
	This is apparently fixed in -current; please pull up rev. 1.4
	of distrib/mac68k/stand/Makefile.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-mac68k-maintainer->hauke@NetBSD.ORG
Responsible-Changed-By: hauke@netbsd.org
Responsible-Changed-When: Sun, 10 Jun 2007 20:25:57 +0000
Responsible-Changed-Why:
I'll take that.


State-Changed-From-To: open->closed
State-Changed-By: hauke@netbsd.org
State-Changed-When: Sun, 10 Jun 2007 20:29:51 +0000
State-Changed-Why:
The fix provided in the PR was applied with netbsd-4 releng ticket #674.
Thanks for the PR.  ;)


Responsible-Changed-From-To: hauke@NetBSD.ORG->hauke
Responsible-Changed-By: dholland@narn.netbsd.org
Responsible-Changed-When: Sat, 26 Jan 2008 18:42:42 +0000
Responsible-Changed-Why:
cleaning database (pr is closed)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.