<div dir="ltr">On Fri, May 19, 2017 at 2:58 AM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>>  <br>> BTW, for all people installing and building their own please note this:<br>><br>> On Tue, May 16, 2017 at 5:57 AM, Max Leske <<a href="mailto:maxleske@gmail.com">maxleske@gmail.com</a>> wrote:<br>> [snip]<br>>><br>>> /usr/local/lib/phcogspurlinux/lib/pharo/5.0-/pharo<br>>> Pharo VM version: 5.0-$URL$  Tue May 16 12:22:16 UTC 2017 gcc 4.9.2 [Production Spur ITHB VM]<br>>> Built from: CoInterpreter VMMaker.oscog-eem.2207 uuid: 8da5de9b-33d7-478b-9081-58591f7da69a May 16 2017<br>>> With: StackToRegisterMappingCogit VMMaker.oscog-eem.2208 uuid: 4877be7d-941d-4e15-b6df-4f1b8c7072a8 May 16 2017<br>>> Revision: VM: $URL$ $Date$ Date: $Rev$ Plugins:  $Rev$<br>>> Build host: Linux nuc 4.10.0-20-generic #22-Ubuntu SMP Thu Apr 20 09:22:42 UTC 2017 i686 GNU/Linux<br>>> plugin path: /usr/local/lib/phcogspurlinux/lib/pharo/5.0-/ [default: /usr/local/lib/phcogspurlinux/lib/pharo/5.0-/]<br>><br>><br>> The way to get rid of the " Revision: VM: $URL$ $Date$ Date: $Rev$ Plugins:  $Rev$" nonsense in the version report is to make sure to run<br>> scripts/updateSCCSVersions<br><br>Even though I know this, I usually forget for the first run on a new machine.<br>Is there some reason this can't be run as part of make?  <br><br><br>> exactly once before you build.  From then on the checkin script<br>> scrips/gitci<br>> makes sure that this is up-to-date.  You'll get something more useful such as<br>><br>> VM: 201705161708 eliot@Sisyphus:oscogvm $ Date: Tue May 16 10:08:12 2017 -0700 $<br>><br>> which allows me to identify this VM as one I build myself on my Mac Mini Sisyphus in directory oscogvm, which contrasts with the official binary VMs.<br>><br>> Ideally the script would be run automatically after the repository was cloned.  Do git mavens know if a post-clone hook is available to make this happen?  If so, can someone make it so?<br><br>The blocker to this is that clone does not install the hooks.  <br>Maybe the hooks be installed by make?<br>Of course, everyone should look at the README, but unfortunate human nature its a bit TL;DR.<br>The alternative could be a SETUP or QUICKSTART file in the root directory, to make it more obvious it should be run.<br><br><br>btw, could someone actually explain how this works...<br>  git config --local include.path ../.gitconfig<br>  git stash -q || true<br>  echo "//" >> platforms/Cross/vm/sqSCCSVersion.h<br>  echo "//" >> platforms/Cross/plugins/sqPluginsSCCSVersion.h<br>  git checkout HEAD -- platforms/Cross/vm/sqSCCSVersion.h<br>  git checkout HEAD -- platforms/Cross/plugins/sqPluginsSCCSVersion.h<br>  git stash pop -q || true<br>I can't grok its magic. <br>Hopefully that highlights why its the same script for each of post-checkout, post-commit & post-merge<br><br><br>Also, at <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm">https://github.com/OpenSmalltalk/opensmalltalk-vm</a><div>if you click on the green <Clone or download> button and then on "Download ZIP" </div><div>I found (from memory) that running mvm seems to successfully build a VM on a Mac <div>(but I didn't validate the version info).  However on Linux the build fails in a way that seems similar to when </div><div>updateSCCSVersions hasn't been run.  But that script depends on git, whereas </div><div>I presume it would be good to be able to build from the ZIP download without git - particularly </div><div>for Linux distributions that source compile their packages.</div><div>Indeed, I think Alistair bumped into this packing the VM for nixos.</div><div><div><br></div><div>So I notice that this file...</div><div><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/platforms/Cross/vm/sqSCCSVersion.h">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/platforms/Cross/vm/sqSCCSVersion.h</a><br><div><div>is dated 16 Dec 2016.  Why isn't this file kept synchronised to identify the checked in build? </div><div>So that compiling from the ZIP download would have correct version info?<br><br>cheers -ben<br><br></div></div></div></div></div></div>