|
8 years ago | |
---|---|---|
bin | 8 years ago | |
doc | 9 years ago | |
etc | 8 years ago | |
libexec | 8 years ago | |
share | 9 years ago | |
target-bin | 8 years ago | |
.gitignore | 10 years ago | |
README.md | 8 years ago |
Read about the project goals at the “project home page”:https://gitian.org/ .
This package can do a deterministic build of a package inside a VM.
This performs a build inside a VM, with deterministic inputs and outputs. If the build script takes care of all sources of non-determinism (mostly caused by timestamps), the result will always be the same. This allows multiple independent verifiers to sign a binary with the assurance that it really came from the source they reviewed.
Install prereqs:
sudo apt-get install apt-cacher
sudo service apt-cacher start
If you want to use kvm:
sudo apt-get install python-vm-builder qemu-kvm
or alternatively, lxc (no need for hardware support):
sudo apt-get install debootstrap lxc
Create the base VM for use in further builds (requires sudo, please review the script):
bin/make-base-vm
bin/make-base-vm --arch i386
or for lxc:
bin/make-base-vm --lxc
bin/make-base-vm --lxc --arch i386
Copy any additional build inputs into a directory named inputs.
Then execute the build using a YAML description file (can be run as non-root):
export USE_LXC=1 # LXC only
bin/gbuild <package>.yml
or if you need to specify a commit for one of the git remotes:
bin/gbuild --commit <dir>=<hash> <package>.yml
The resulting report will appear in result/<package>-res.yml
To sign the result, perform:
bin/gsign --signer <signer> --release <release-name> <package>.yml
Where is your signing PGP key ID and is the name for the current release. This will put the result and signature in the sigs//. The sigs/ directory can be managed through git to coordinate multiple signers.
After you’ve merged everybody’s signatures, verify them:
bin/gverify --release <release-name> <package>.yml
PATH="libexec:$PATH"
start-target 32 lucid-i386
or start-target 64 lucid-amd64
on-target
or on-target -u root
TODO: