Re: Jaguar build progress
Vic Heintz <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, February 2, 2005, at 09:04 PM, Steven Palm wrote:
> It seems as though it's failing on:
>
> hdiutil detach $dev
Yes, there is something that is making hdiutil think that the mounted
image is still busy after the copy:
Copying files to /Volumes/BitPim...
> /Developer/Tools/CpMac -r dist/BitPim.app "/Volumes/BitPim"
> hdiutil detach /dev/disk1
hdiutil: detach: "disk1s2" failed to unmount due to error 16 (dissenter
-1).
Uncaught exception from user code:
FATAL: Couldn't unmount device /dev/disk1: 4096
If I immediately attempt to manually eject the BitPim disk image icon,
I get an error that it is busy. If I wait about a minute and manually
do a "hdiutil detach /dev/disk1" it will unmount. As a matter of fact
by editing buildDMG.pl to force it to sleep and retry I was able to get
it to finish without error:
# unmount the dmg
print "> hdiutil detach $dev\n" if $debug;
$output = `hdiutil detach $dev`;
#####################################################################
## This section added by Vic Heintz to wait until not busy for detach
$sleepsecs=0;
while (($? == 4096) && ($sleepsecs < 120)) {
sleep 5;
$sleepsecs += 5;
$output = `hdiutil detach $dev`;
}
print "Busy for ", $sleepsecs, " secs\n" if $debug;
## Typical busy time is 55 sec on 360 MHz G3 iBook running Jaguar
#####################################################################
die "FATAL: Error while copying files (Error: $err)\n" if $err;
die "FATAL: Couldn't unmount device $dev: $?\n" if $?;
(Typical sleep time seems to be 50-60 secs.) This is a real kludge but
I have not yet been able to figure out what is keeping it busy. (I'm
sure it doesn't help that this is a 360 Mhz G3.)
With this patch to buildDMG.pl I am able to get completely through the
Jaguar makedist without error. (Do you feel warm and fuzzy, Roger?)
Vic
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl