hdiutil attach "blah.dmg"<br><br>should be sufficient without specifying *any* mount point at all.<br><br>The output of hdiutil attach gives you the name of the folder in "/Volumes" where the *.dmg file was mounted.<br>
<br>Therefore, simply capture the output of the hdiutil command and analyze it to get the path where the thing got mounted rather than demanding that it be mounted in a given spot. That way, the OS (via hdiutil) decides when it needs to worry about duplicate names and all that jazz. Following is a sequence of commands to open up the cmake-2.6.2 *.dmg file and the resulting output of two separate hdiutil attach commands on two separate (but identically named) *.dmg files.<br>
<br>*Using this technique* would be an acceptable patch to fix the bug. CPack is not going to provide a tmp file name API and wanting to mount a *.dmg file is not a reasonable thing to do in an arbitrary CMake build tree (because of the stupid 90 character limit). Sorry I do not presently have time to work on such a patch in the near term.... but if one were to appear (that analyzes hdiutil output instead of forcing a -mountroot argument) then it would have a higher likelihood of being applied.<br>
<br><br>HTH,<br>David<br><br><br>hdiutil experiment: (Mac OSX 10.5 -- should be verified on 10.4 and earlier, also...)<br><br>[in ~/Downloads]<br>$ hdiutil attach ./cmake-2.6.2-Darwin-universal.dmg<br>expected CRC32 $31C5BA6B<br>
/dev/disk1 Apple_partition_scheme<br>/dev/disk1s1 Apple_partition_map<br>/dev/disk1s2 Apple_HFS /Volumes/cmake-2.6.2-Darwin-universal<br><br>$ cd ..<br><br>[now in ~]<br>
$ cp Downloads/cmake-2.6.2-Darwin-universal.dmg .<br><br>$ hdiutil attach ./cmake-2.6.2-Darwin-universal.dmg<br>... [blah blah blah snipped out]...<br>verified CRC32 $31C5BA6B<br>/dev/disk2 Apple_partition_scheme<br>
/dev/disk2s1 Apple_partition_map<br>/dev/disk2s2 Apple_HFS /Volumes/cmake-2.6.2-Darwin-universal 1<br><br>$ ls -la /Volumes<br>total 8<br>drwxrwxrwt@ 5 root admin 170 Jan 7 15:03 .<br>
drwxr-xr-x 37 davidcole staff 1326 Dec 27 13:37 ..<br>lrwxr-xr-x 1 root admin 1 Jan 5 09:15 Macintosh HD -> /<br>drwxr-xr-x 6 davidcole staff 238 Sep 24 14:32 cmake-2.6.2-Darwin-universal<br>drwxr-xr-x 6 davidcole staff 238 Sep 24 14:32 cmake-2.6.2-Darwin-universal 1<br>
<br><br><br><div class="gmail_quote"><br>On Wed, Jan 7, 2009 at 2:24 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
<br>
On Jan 7, 2009, at 1:42 PM, Bill Hoffman wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mike Arthur wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">