Subject: port-mac68k/36374: mac68k netbsd-4 build fails because of invalid option to cksum(1)
To: None <port-mac68k-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 05/22/2007 10:30:00
>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:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 22 10:30:00 +0000 2007
>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.

>Unformatted: