Expand gitian/check-prerequisites.sh tests

check-prerequisites.sh should include logic to test for known build requirements:

AMD64 architecture Enough RAM memory Enough disk storage

Assuming that builds on IA32 VMs (using LXC) and bare metal build environments fail due to the current OSX cross-compile toolchain and/or linking of libxul.so, check-prerequisites.sh should include (pseudocode):

uname -m | grep -q x86_64 || echo 'Wrong CPU arch!'

Assuming a minimum 4Go RAM build requirement, check-prerequisites.sh should include (pseudocode):

free -g | grep Mem | sed(1)/awk(1)

Assuming a minumum 48Go disk storage requirement, check-prerequisites.sh should include (pseudcode):

pwd(1)/mount(1)/df(1) script code to determine max storage in current path.

NOTE: These requirements depend on other variables, at the very least whether KVM or LXC is in use (already determined by check-prerequisites.sh.

Lastly, once these requirements are sorted out they should be documented (separate ticket) in or near [1] for human consumption.

[1] https://trac.torproject.org/projects/tor/wiki/doc/TorBrowser/Hacking/

Trac:
Username: michael