NetBSD Problem Report #41266

From hf@spg.tu-darmstadt.de  Wed Apr 22 10:11:47 2009
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 68EB663B8A5
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Apr 2009 10:11:47 +0000 (UTC)
Message-Id: <200904220936.n3M9aYxi020069@Hochstuhl.nt.e-technik.tu-darmstadt.de>
Date: Wed, 22 Apr 2009 11:36:34 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: build.sh invoked mkisofs has wrong path for iso image
X-Send-Pr-Version: 3.95

>Number:         41266
>Category:       toolchain
>Synopsis:       build.sh invoked mkisofs has wrong path for iso image
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 22 10:15:00 +0000 2009
>Last-Modified:  Thu Feb 23 16:25:00 +0000 2012
>Originator:     Hauke Fath
>Release:        NetBSD 5.0_RC4
>Organization:

>Environment:


System: NetBSD Hochstuhl 5.0_RC4 NetBSD 5.0_RC4 (GENERIC) #0: Thu Apr 16 14:17:47 CEST 2009 hf@Hochstuhl:/var/obj/netbsd-builds/5/i386/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

	A cross-build of netbsd-5 for mac68k fails with

iso_image ===> distrib/miniroot
--- iso_image-mac68k ---
iso_image ===> distrib/mac68k
iso-image ===> etc
--- check_DESTDIR ---
--- check_RELEASEDIR ---
--- iso-image-setup ---
rm -f /var/obj/netbsd-builds/5/mac68k/etc/cdrom.pathlist
echo "mac68k/=/u/netbsd-builds/5/mac68k/releasedir/mac68k/" >> /var/obj/netbsd-builds/5/mac68k/etc/cdrom.pathlist
mkdir -p /var/obj/netbsd-builds/5/mac68k/etc/cdrom.dir
mkdir -p /u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/cdrom
--- iso-image-mi ---
mkisofs 2.01.01a58 (i386-unknown-netbsd5.0.) Copyright (C) 1993-1997 Eric Youngdale (C) 1997-2008 Jörg Schilling
/usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T  -V NETBSD_50_RC4  -publisher "The NetBSD Project"  -m "/u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/cdrom" -quiet -hfs --macbin  -map /u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/misc/extensions.map -graft-points -path-list /var/obj/netbsd-builds/5/mac68k/etc/cdrom.pathlist  -o /u/netbsd-builds/5/mac68k/releasedir/iso/mac68kcd.iso /var/obj/netbsd-builds/5/mac68k/etc/cdrom.dir
/usr/pkg/bin/mkisofs: No such file or directory. Unable to open disc image file '/u/netbsd-builds/5/mac68k/releasedir/iso/mac68kcd.iso'.
*** [iso-image-mi] Error code 2
1 error

	-- While src/etc/Makefile creates
	"/u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/cdrom",
	"/u/netbsd-builds/5/mac68k/releasedir/iso" is never created
	until mkisofs wants it.

	Note this is a PR against netbsd-5, and any fix should be
	pulled up.

>How-To-Repeat:

	(Cross-)build netbsd-5 for mac68k, and have build.sh generate
	an iso image.

>Fix:

	The patch to target iso-image-setup

RCS file: /cvsroot/src/etc/Makefile,v
retrieving revision 1.359.2.3
diff -u -u -r1.359.2.3 Makefile
--- Makefile    27 Mar 2009 14:50:35 -0000      1.359.2.3
+++ Makefile    22 Apr 2009 09:30:53 -0000
@@ -451,6 +451,7 @@
 .endfor
        echo "${MACHINE}/=${RELEASEDIR}/${RELEASEMACHINEDIR}/" >> ${CDROM.pathlist}
        mkdir -p ${CDROM.dir}
+       mkdir -p ${RELEASEDIR}/iso
        mkdir -p ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom

 # iso-image-mi --

	helps (there should probably be a new variable for the image
	path that could then be used to form ${CDROM.image}), but the
	build then fails with

[...]
--- iso-image-mi ---
mkisofs 2.01.01a58 (i386-unknown-netbsd5.0.) Copyright (C) 1993-1997 Eric Youngdale (C) 1997-2008 Jörg Schilling
/usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T  -V NETBSD_50_RC4  -publisher "The NetBSD Project"  -m "/u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/cdrom" -quiet -hfs --macbin  -map /u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/misc/extensions.map -graft-points -path-list /var/obj/netbsd-builds/5/mac68k/etc/cdrom.pathlist  -o /u/netbsd-builds/5/mac68k/releasedir/iso/mac68kcd.iso /var/obj/netbsd-builds/5/mac68k/etc/cdrom.dir
/usr/pkg/bin/mkisofs: File '/u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin' did grow.
/usr/pkg/bin/mkisofs: Error is considered fatal, aborting.
*** [iso-image-mi] Error code 253
1 error

which my mkisofs fu does not cut.

>Audit-Trail:
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: toolchain/41266: build.sh invoked mkisofs has wrong path for
 iso image
Date: Wed, 22 Apr 2009 14:31:12 +0200

 At 10:15 Uhr +0000 22.04.2009, Hauke Fath wrote:
 >--- iso-image-mi ---
 >mkisofs 2.01.01a58 (i386-unknown-netbsd5.0.) Copyright (C) 1993-1997 
 >Eric Youngdale (C) 1997-2008 J–rg Schilling
 >/usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T  -V 
 >NETBSD_50_RC4  -publisher "The NetBSD Project"  -m 
 >"/u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/cdrom" 
 >-quiet -hfs --macbin  -map 
 >/u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/misc/extensions.map 
 >-graft-points -path-list 
 >/var/obj/netbsd-builds/5/mac68k/etc/cdrom.pathlist  -o 
 >/u/netbsd-builds/5/mac68k/releasedir/iso/mac68kcd.iso 
 >/var/obj/netbsd-builds/5/mac68k/etc/cdrom.dir
 >/usr/pkg/bin/mkisofs: File 
 >'/u/netbsd-builds/5/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin' 
 >did grow.
 >/usr/pkg/bin/mkisofs: Error is considered fatal, aborting.
 >*** [iso-image-mi] Error code 253
 >1 error

 A non-parallel build gave the same result, so apparently it is not a 
 build synchronization issue.

 -- 

From: Piotr Meyer <aniou@smutek.pl>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: toolchain/41266: build.sh invoked mkisofs has wrong path for
 iso image
Date: Thu, 23 Feb 2012 17:24:10 +0100

 Hi,
 Message about "growing files" is produced by '-macbin' option in
 mkisofs and produces following errors/warnings in 6.0_beta release:

 mkisofs: File '/usr/obj/releasedir/mac68k/installation/misc/BooterManual.stxt.bin' did grow.
 mkisofs: File '/usr/obj/releasedir/mac68k/installation/misc/BSD_Mac68k_Booter.bin' did grow.
 mkisofs: File '/usr/obj/releasedir/mac68k/installation/misc/Installer_1.1g.sea.bin' did grow.
 mkisofs: File '/usr/obj/releasedir/mac68k/installation/misc/Installer_1.1h.sea.bin' did grow.
 mkisofs: File '/usr/obj/releasedir/mac68k/installation/misc/Mkfs_1.47.sea.bin' did grow.  
 mkisofs: File '/usr/obj/releasedir/mac68k/installation/misc/mode32-7.5.bin' did grow.

 Regards,
 -- 
 Piotr 'aniou' Meyer

>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.