Changeset View
Changeset View
Standalone View
Standalone View
doc/gitian-building/gitian-building-manual.md
Show All 22 Lines | |||||
```bash | ```bash | ||||
tail -f var/install.log | tail -f var/install.log | ||||
tail -f var/build.log | tail -f var/build.log | ||||
``` | ``` | ||||
Output from `gbuild` will look something like | Output from `gbuild` will look something like | ||||
Initialized empty Git repository in /home/gitianuser/gitian-builder/inputs/bitcoin/.git/ | Initialized empty Git repository in /home/gitianuser/bitcoin-abc/contrib/gitian-builder/inputs/bitcoin/.git/ | ||||
remote: Counting objects: 57959, done. | remote: Counting objects: 57959, done. | ||||
remote: Total 57959 (delta 0), reused 0 (delta 0), pack-reused 57958 | remote: Total 57959 (delta 0), reused 0 (delta 0), pack-reused 57958 | ||||
Receiving objects: 100% (57959/57959), 53.76 MiB | 484.00 KiB/s, done. | Receiving objects: 100% (57959/57959), 53.76 MiB | 484.00 KiB/s, done. | ||||
Resolving deltas: 100% (41590/41590), done. | Resolving deltas: 100% (41590/41590), done. | ||||
From https://github.com/Bitcoin-ABC/bitcoin-abc.git | From https://github.com/Bitcoin-ABC/bitcoin-abc.git | ||||
... (new tags, new branch etc) | ... (new tags, new branch etc) | ||||
--- Building for trusty amd64 --- | --- Building for trusty amd64 --- | ||||
Stopping target if it is up | Stopping target if it is up | ||||
Show All 36 Lines | |||||
To configure apt-cacher-ng as an offline cacher, you will need to first populate its cache with the relevant | To configure apt-cacher-ng as an offline cacher, you will need to first populate its cache with the relevant | ||||
files. You must additionally patch target-bin/bootstrap-fixup to set its apt sources to something other than | files. You must additionally patch target-bin/bootstrap-fixup to set its apt sources to something other than | ||||
plain archive.ubuntu.com: us.archive.ubuntu.com works. | plain archive.ubuntu.com: us.archive.ubuntu.com works. | ||||
So, if you use LXC: | So, if you use LXC: | ||||
```bash | ```bash | ||||
export PATH="$PATH":${HOME}/gitian-builder/libexec | export PATH="$PATH":${HOME}/bitcoin-abc/contrib/gitian-builder/libexec | ||||
export USE_LXC=1 | export USE_LXC=1 | ||||
cd ~/gitian-builder | cd ~/bitcoin-abc/contrib/gitian-builder | ||||
./libexec/make-clean-vm --suite buster --arch amd64 | ./libexec/make-clean-vm --suite buster --arch amd64 | ||||
LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root dpkg --add-architecture i386 | LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root dpkg --add-architecture i386 | ||||
LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root apt-get update | LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root apt-get update | ||||
LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root \ | LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root \ | ||||
-e DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y install \ | -e DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y install \ | ||||
$( sed -ne '/^packages:/,/^[^-]/ {/^- .*/{s/"//g;s/- //;p}}' ../bitcoin-abc/contrib/gitian-descriptors/*|sort|uniq ) | $( sed -ne '/^packages:/,/^[^-]/ {/^- .*/{s/"//g;s/- //;p}}' ../gitian-descriptors/*|sort|uniq ) | ||||
LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root apt-get -q -y purge grub | LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root apt-get -q -y purge grub | ||||
LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root -e DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade | LXC_ARCH=amd64 LXC_SUITE=buster on-target -u root -e DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade | ||||
``` | ``` | ||||
And then set offline mode for apt-cacher-ng: | And then set offline mode for apt-cacher-ng: | ||||
``` | ``` | ||||
/etc/apt-cacher-ng/acng.conf | /etc/apt-cacher-ng/acng.conf | ||||
Show All 15 Lines |