<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 15 April 2017 at 01:22, Ben Coman <span dir="ltr"><<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The "magic decode for image files" seems related and possibly *very* useful....<br>
<a href="http://forum.world.st/magic-decode-for-image-files-td4941712.html#a4941837" rel="noreferrer" target="_blank">http://forum.world.st/magic-<wbr>decode-for-image-files-<wbr>td4941712.html#a4941837</a><br>
<br>
Now traditionally the VM has been backward compatible with old Images,<br>
but Pharo doesn't necessarily adhere to that and policy IIUC is<br>
release specific VM/Image pairs.<br>
So does Pharo require extra magic numbers to co-ordinate this?<br>
And how would this interact with OpenSmalltalk policy on these magic numbers?<br></blockquote><div><br></div><div>I would really like a copy of the script that checks the magic number and starts the right VM. David, could you share yours please?</div><div><br></div><div>I started writing</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">case file -m @share@/magic "$image" in</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">    'Smalltalk image V3 32b*')</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        vm=@pharo-vm-cog@</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        ;;</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">    'Smalltalk image Spur 32b*')</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        vm=@pharo-vm-spur@</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        ;;</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">    'Smalltalk image Spur 64b*')</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        vm=@pharo-vm-spur64@</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        ;;</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">    *)</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        echo unrecognized image file format</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">        ;;</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><font face="monospace, monospace">esac</font></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>... but would prefer to avoid reinventing the wheel e.g. on how to find the image name in amongst the various options passed to $@.</div><div><br></div><div>I would quite like for my package to be able to open the pharo-launcher image and the various images that this downloads. This means supporting pre-spur images. I would ideally like to do that by building a non-spur version of the latest VM, but I am not sure if that is supported for pharo, there is no mvm script for non-spur. The alternative would be to just build an old VM release with cmake.</div><div><br></div><div><br></div></div></div></div>