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 fails with files changing size 
X-Send-Pr-Version: 3.95

>Number:         41266
>Category:       toolchain
>Synopsis:       build.sh invoked mkisofs fails with files changing size
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lukem
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 22 10:15:00 +0000 2009
>Closed-Date:    
>Last-Modified:  Sat May 20 08:40:58 +0000 2023
>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.

>Release-Note:

>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

State-Changed-From-To: open->feedback
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Thu, 18 May 2023 13:31:37 +0000
State-Changed-Why:
martin fixed etc/Makefile on 2014-06-03 to:
    Undo the mac68k specific previous change and instead move all mkisofs-based
    images into ${RELEASEDIR}/images (just like the makefs ones).

Is the wrong path issue still occurring?

(I'm treating the "File '..." did grow" as a separate issue)


From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org
Cc: toolchain-manager@netbsd.org, gnats-admin@netbsd.org, lukem@NetBSD.org
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for
 iso image)
Date: Thu, 18 May 2023 20:53:18 +0200

 On Thu, 18 May 2023 13:31:37 +0000 (UTC), lukem@NetBSD.org wrote:
 > martin fixed etc/Makefile on 2014-06-03 to:
 >     Undo the mac68k specific previous change and instead move all=20
 > mkisofs-based
 >     images into ${RELEASEDIR}/images (just like the makefs ones).
 >=20
 > Is the wrong path issue still occurring?

 Apparently not.

 > (I'm treating the "File '..." did grow" as a separate issue)

 That is still there:

 [...]
 --- iso-image-mi ---
 mkisofs 3.02 2022/08/18 (amd64-unknown-netbsd10.0.)
 Copyright (C) 1993-1997 Eric Youngdale
 Copyright (C) 1997-2020 Joerg Schilling
 Copyright (C) 1997-2001 James Pearson
 Copyright (C) 2006      HELIOS Software GmbH
 Copyright (C) 2022      the schilytools team
 /usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T  -V=20
 NETBSD_10994  -publisher "The NetBSD Project"  -m "/u/netbsd-bu
 ilds/10/mac68k/releasedir/mac68k/installation/cdrom" -quiet -hfs=20
 --macbin  -map /u/netbsd-builds/10/mac68k/releasedir/mac68
 k/installation/misc/extensions.map -graft-points -path-list=20
 /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.pathlist  -o=20
 /u/netbsd-builds/10/mac68k/releasedir/images/NetBSD-10.99.4-mac68k.iso=20
 /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.dir
 mkisofs: Try to use the option -data-change-warn
 mkisofs: Files should not change while mkisofs is running.
 mkisofs: File=20
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BooterManua=
 l.stxt.bin'=20
 did shrink.
 mkisofs: Error is considered fatal, aborting.
 *** Failed target: iso-image-mi
 *** Failed commands:
         @if ! ${MKISOFS} --version; then  echo "install=20
 pkgsrc/sysutils/cdrtools and run 'make iso-image'." ;  false;  fi
         =3D> @if ! /usr/pkg/bin/mkisofs --version; then  echo "install=20
 pkgsrc/sysutils/cdrtools and run 'make iso-image'." ;  false;  fi
         ${MKISOFS} ${MKISOFS_FLAGS} -graft-points -path-list=20
 ${CDROM.pathlist}  -o ${CDROM_IMAGE} ${CDROM.dir}
         =3D> /usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T  -V=20
 NETBSD_10994  -publisher "The NetBSD Project"  -m=20
 "/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/cdrom"=20
 -quiet -hfs --macbin  -map=20
 /u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/extensions.m=
 ap=20
 -graft-points -path-list=20
 /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.pathlist  -o=20
 /u/netbsd-builds/10/mac68k/releasedir/images/NetBSD-10.99.4-mac68k.iso=20
 /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.dir
 *** [iso-image-mi] Error code 253
 nbmake[1]: stopped in /u/sources/netbsd-10/src/etc
 [...]

 Cheerio,
 Hauke

 --=20
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut f=FCr Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-21344

From: Luke Mewburn <luke@mewburn.net>
To: Hauke Fath <hf@spg.tu-darmstadt.de>
Cc: gnats-bugs@netbsd.org, toolchain-manager@netbsd.org,
	gnats-admin@netbsd.org, lukem@netbsd.org
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for iso
 image)
Date: Fri, 19 May 2023 18:03:44 +1000

 On 23-05-18 20:53, Hauke Fath wrote:
   | On Thu, 18 May 2023 13:31:37 +0000 (UTC), lukem@NetBSD.org wrote:
   | > martin fixed etc/Makefile on 2014-06-03 to:
   | >     Undo the mac68k specific previous change and instead move all 
   | > mkisofs-based
   | >     images into ${RELEASEDIR}/images (just like the makefs ones).
   | > 
   | > Is the wrong path issue still occurring?
   | 
   | Apparently not.

 Good to hear.


   | > (I'm treating the "File '..." did grow" as a separate issue)
   | 
   | That is still there:
   | 
   | [...]
   | --- iso-image-mi ---
   | mkisofs 3.02 2022/08/18 (amd64-unknown-netbsd10.0.)
   | Copyright (C) 1993-1997 Eric Youngdale
   | Copyright (C) 1997-2020 Joerg Schilling
   | Copyright (C) 1997-2001 James Pearson
   | Copyright (C) 2006      HELIOS Software GmbH
   | Copyright (C) 2022      the schilytools team
   | /usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T  -V 
   | NETBSD_10994  -publisher "The NetBSD Project"  -m "/u/netbsd-bu
   | ilds/10/mac68k/releasedir/mac68k/installation/cdrom" -quiet -hfs 
   | --macbin  -map /u/netbsd-builds/10/mac68k/releasedir/mac68
   | k/installation/misc/extensions.map -graft-points -path-list 
   | /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.pathlist  -o 
   | /u/netbsd-builds/10/mac68k/releasedir/images/NetBSD-10.99.4-mac68k.iso 
   | /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.dir
   | mkisofs: Try to use the option -data-change-warn
   | mkisofs: Files should not change while mkisofs is running.
   | mkisofs: File 
   | '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin' 
   | did shrink.
   | mkisofs: Error is considered fatal, aborting.

 Well this time the error was "File [...] did shrink" not "File [...] did grow".


 Should we move this problem to a separate ticket, or do we rename the
 title/subject of this one to reflect this issue?



 regards,
 Luke.

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Luke Mewburn <luke@mewburn.net>
Cc: gnats-bugs@netbsd.org, toolchain-manager@netbsd.org,
        gnats-admin@netbsd.org, lukem@netbsd.org
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for iso
 image)
Date: Fri, 19 May 2023 11:21:13 +0200

 On 5/19/23 10:03, Luke Mewburn wrote:
 >    | mkisofs: Error is considered fatal, aborting.
 > 
 > Well this time the error was "File [...] did shrink" not "File [...] did grow".

 Shrink, grow, what's the difference.  ;)

 Something is fiddling with the files while mkisofs is reading them, as 
 it shouldn't.

 > Should we move this problem to a separate ticket, or do we rename the
 > title/subject of this one to reflect this issue?

 I changed the title; we have enough PRs as it is.

 Cheerio,
 Hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Luke Mewburn <luke@mewburn.net>
To: gnats-bugs@netbsd.org
Cc: toolchain-manager@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for iso
 image)
Date: Fri, 19 May 2023 19:45:50 +1000

 On 23-05-19 09:25, Hauke Fath wrote:
   |  On 5/19/23 10:03, Luke Mewburn wrote:
   |  >    | mkisofs: Error is considered fatal, aborting.
   |  > 
   |  > Well this time the error was "File [...] did shrink" not "File [...] did grow".
   |  
   |  Shrink, grow, what's the difference.  ;)
   |  
   |  Something is fiddling with the files while mkisofs is reading them, as 
   |  it shouldn't.

 Possibly, but there's nothing obvious in the way that isos are
 generated; it should be serial (not parallel) make by that point.

 If you run the failing mkisofs command manually do you get the same
 error?

 Maybe mkisofs has a bug in this case?  I had a quick look at the mkisofs
 source from its git repo
 	https://codeberg.org/schilytools/schilytools.git
 The warning/error is generated in mkisofs/write.c write_one_file().



   |  > Should we move this problem to a separate ticket, or do we rename the
   |  > title/subject of this one to reflect this issue?
   |  
   |  I changed the title; we have enough PRs as it is.

 Good idea!

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Luke Mewburn <luke@mewburn.net>, 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: Fri, 19 May 2023 13:17:12 +0200

 On 5/19/23 11:45, Luke Mewburn wrote:
 > If you run the failing mkisofs command manually do you get the same
 > error?

 Good thinking -- and indeed, it does. At this point, nobody but mkisofs 
 should have its hand on the innocent 
 /u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin 
 - and

 > Maybe mkisofs has a bug in this case? 

 sounds like a reasonable assumption.

 > I had a quick look at the mkisofs
 > source from its git repo
 > 	https://codeberg.org/schilytools/schilytools.git
 > The warning/error is generated in mkisofs/write.c write_one_file().

 When I drop '--macbin' from the mkisofs invocation, the latter runs to 
 completion. I'll have to burn a CDROM to see what a real Mac makes of 
 the result.

 The man page is terse on this ("Look for MacBinary Macintosh files"); 
 the code is convoluted, but appears to set type and creator for 
 macbinary files - which would change files written to the image, and 
 mkisofs may well trip over its own shoelaces here.

 If all that is lost is the proper hfs type for macbinary files, a 
 workaround could be to drop --macbin, and add a note to the mac68k 
 specific part of INSTALL that the respective files need to be 
 dragged&dropped onto an unpacker to be accessed.

 Cheerio,
 Hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org, toolchain-manager@netbsd.org,
        gnats-admin@netbsd.org, Luke Mewburn <luke@mewburn.net>
Cc: 
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for iso
 image)
Date: Fri, 19 May 2023 13:43:04 +0200

 On 5/19/23 13:20, Hauke Fath wrote:
 >   the code is convoluted, but appears to set type and creator for
 >   macbinary files - which would change files written to the image, and
 >   mkisofs may well trip over its own shoelaces here.

 Reported upstream as 
 <https://codeberg.org/schilytools/schilytools/issues/58>.

 Cheerio,
 Hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org, toolchain-manager@netbsd.org,
        gnats-admin@netbsd.org, Luke Mewburn <luke@mewburn.net>
Cc: 
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for iso
 image)
Date: Fri, 19 May 2023 13:50:55 +0200

 On 5/19/23 13:20, Hauke Fath wrote:
 >   When I drop '--macbin' from the mkisofs invocation, the latter runs to
 >   completion. I'll have to burn a CDROM to see what a real Mac makes of
 >   the result.

 On second thought, since this appears to be a self-inflicted wound, we 
 should just add '-data-change-warn':

 % /usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T -V 
 NETBSD_10994 -publisher 'The NetBSD Project' -m 
 /u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/cdrom -hfs 
 --macbin -data-change-warn -map 
 /u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/extensions.map 
 -graft-points -path-list 
 /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.pathlist -o 
 /u/netbsd-builds/10/mac68k/releasedir/images/NetBSD-10.99.4-mac68k.iso 
 /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.dir
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BSD_Mac68k_Booter.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1g.sea.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1g.sea.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1h.sea.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1h.sea.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Mkfs_1.47.sea.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Mkfs_1.47.sea.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/mode32-7.5.bin' 
 did shrink.
 mkisofs: File 
 '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/mode32-7.5.bin' 
 did shrink.
    3.21% done, estimate finish Fri May 19 13:47:12 2023

 [...]

    96.03% done, estimate finish Fri May 19 13:46:43 2023
 Total extents actually written (inc HFS) = 156066
 (Size of ISO volume = 151740, HFS extra = 4326)
 Total translation table size: 17993
 Total rockridge attributes bytes: 10452
 Total directory bytes: 24576
 Path table size(bytes): 142
 Max brk space used 0
 156216 extents written (305 MB)
 %

 Cheerio,
 Hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Luke Mewburn <luke@mewburn.net>
To: Hauke Fath <hf@spg.tu-darmstadt.de>
Cc: gnats-bugs@netbsd.org, toolchain-manager@netbsd.org,
	gnats-admin@netbsd.org, Luke Mewburn <luke@mewburn.net>
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for iso
 image)
Date: Fri, 19 May 2023 22:07:43 +1000

 On 23-05-19 13:50, Hauke Fath wrote:
   | On 5/19/23 13:20, Hauke Fath wrote:
   | >   When I drop '--macbin' from the mkisofs invocation, the latter runs to
   | >   completion. I'll have to burn a CDROM to see what a real Mac makes of
   | >   the result.
   | 
   | On second thought, since this appears to be a self-inflicted wound, we
   | should just add '-data-change-warn':

 I saw that option, but I was leery of just using it to disable an error
 that I wasn't sure about. So thanks for investigating and seeing that it
 does help.


   | % /usr/pkg/bin/mkisofs -J -l -hide-joliet-trans-tbl -r -T -V NETBSD_10994
   | -publisher 'The NetBSD Project' -m
   | /u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/cdrom -hfs
   | --macbin -data-change-warn -map
   | /u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/extensions.map
   | -graft-points -path-list
   | /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.pathlist -o
   | /u/netbsd-builds/10/mac68k/releasedir/images/NetBSD-10.99.4-mac68k.iso
   | /var/obj/netbsd-build-objects/10/mac68k/etc/cdrom.dir
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BooterManual.stxt.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/BSD_Mac68k_Booter.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1g.sea.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1g.sea.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1h.sea.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Installer_1.1h.sea.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Mkfs_1.47.sea.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/Mkfs_1.47.sea.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/mode32-7.5.bin'
   | did shrink.
   | mkisofs: File '/u/netbsd-builds/10/mac68k/releasedir/mac68k/installation/misc/mode32-7.5.bin'
   | did shrink.
   |   3.21% done, estimate finish Fri May 19 13:47:12 2023
   | 
   | [...]
   | 
   |   96.03% done, estimate finish Fri May 19 13:46:43 2023
   | Total extents actually written (inc HFS) = 156066
   | (Size of ISO volume = 151740, HFS extra = 4326)
   | Total translation table size: 17993
   | Total rockridge attributes bytes: 10452
   | Total directory bytes: 24576
   | Path table size(bytes): 142
   | Max brk space used 0
   | 156216 extents written (305 MB)
   | %
   | 
   | Cheerio,
   | Hauke

 Are you happy to apply that fix and close the PR yourself?

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Luke Mewburn <luke@mewburn.net>
Cc: gnats-bugs@netbsd.org, toolchain-manager@netbsd.org,
        gnats-admin@netbsd.org
Subject: Re: toolchain/41266 (build.sh invoked mkisofs has wrong path for iso
 image)
Date: Fri, 19 May 2023 14:15:47 +0200

 On 5/19/23 14:07, Luke Mewburn wrote:
 > On 23-05-19 13:50, Hauke Fath wrote:
 >    | On 5/19/23 13:20, Hauke Fath wrote:
 >    | >   When I drop '--macbin' from the mkisofs invocation, the latter runs to
 >    | >   completion. I'll have to burn a CDROM to see what a real Mac makes of
 >    | >   the result.
 >    |
 >    | On second thought, since this appears to be a self-inflicted wound, we
 >    | should just add '-data-change-warn':
 > 
 > I saw that option, but I was leery of just using it to disable an error
 > that I wasn't sure about.

 Same here, but running mkisofs by hand made it pretty clear that its 
 left hand does not know what the right hand did.

 > Are you happy to apply that fix and close the PR yourself?

 I'll run a -current test build, and commit the change to 
 src/distrib/cdrom/Makefile.

 I do wonder why this appears not to be an issue for macppc? See e.g. the 
 tail of <https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=37643>.

 Cheerio,
 Hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

State-Changed-From-To: feedback->needs-pullups
State-Changed-By: hauke@NetBSD.org
State-Changed-When: Fri, 19 May 2023 14:50:33 +0000
State-Changed-Why:
I committed a fix. It needs to be pulled up to stable brances.


Responsible-Changed-From-To: toolchain-manager->lukem
Responsible-Changed-By: lukem@NetBSD.org
Responsible-Changed-When: Sat, 20 May 2023 08:40:58 +0000
Responsible-Changed-Why:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.