Skip to content

Commit 732c257

Browse files
Merge pull request #365 from marcus290/updates-gitian-docs
Updates gitian building docs and updates to README.md
2 parents 8eb4652 + 63c941e commit 732c257

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

doc/gitian-building.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ After creating the VM, we need to configure it.
9595

9696
- Click `Ok` twice to save.
9797

98-
Get the [Debian 8.x net installer](http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso) (a more recent minor version should also work, see also [Debian Network installation](https://www.debian.org/CD/netinst/)).
98+
Get the [Debian 8.x net installer](https://cdimage.debian.org/cdimage/archive/8.11.0/amd64/iso-cd/debian-8.11.0-amd64-netinst.iso) (see also [Debian Network installation](https://www.debian.org/CD/netinst/)).
9999
This DVD image can be validated using a SHA256 hashing tool, for example on
100100
Unixy OSes by entering the following in a terminal:
101101

102-
echo "ad4e8c27c561ad8248d5ebc1d36eb172f884057bfeb2c22ead823f59fa8c3dff debian-8.5.0-amd64-netinst.iso" | sha256sum -c
102+
echo "ea799ed959d77359783e7922ed4c94a7437b083a4ce6f09e9fe41a7af6ba60df debian-8.11.0-amd64-netinst.iso" | sha256sum -c
103103
# (must return OK)
104104

105105
Then start the VM. On the first launch you will be asked for a CD or DVD image. Choose the downloaded iso.
@@ -335,17 +335,17 @@ There will be a lot of warnings printed during the build of the image. These can
335335
Getting and building the inputs
336336
--------------------------------
337337

338-
Follow the instructions in [doc/release-process.md](release-process.md#fetch-and-build-inputs-first-time-or-when-dependency-versions-change)
339-
in the navcoin repository under 'Fetch and build inputs' to install sources which require
338+
Follow the instructions in [doc/release-process.md](release-process.md#fetch-and-create-inputs-first-time-or-when-dependency-versions-change)
339+
in the navcoin repository under 'Fetch and create inputs' to install sources which require
340340
manual intervention. Also optionally follow the next step: 'Seed the Gitian sources cache
341341
and offline git repositories' which will fetch the remaining files required for building
342342
offline.
343343

344344
Building NavCoin Core
345345
----------------
346346

347-
To build NavCoin Core (for Linux, OS X and Windows) just follow the steps under 'perform
348-
Gitian builds' in [doc/release-process.md](release-process.md#perform-gitian-builds) in the navcoin repository.
347+
To build NavCoin Core (for Linux, OS X and Windows) just follow the steps under 'Setup and perform
348+
Gitian builds' in [doc/release-process.md](release-process.md#setup-and-perform-gitian-builds) in the navcoin repository.
349349

350350
This may take some time as it will build all the dependencies needed for each descriptor.
351351
These dependencies will be cached after a successful build to avoid rebuilding them when possible.
@@ -449,6 +449,26 @@ SIGPATH=/some/root/path/navcoin-detached-sigs
449449
./bin/gbuild --url navcoin=${NAVPATH},signature=${SIGPATH} ../navcoin/contrib/gitian-descriptors/gitian-win-signer.yml
450450
```
451451

452+
Building with Debian 9.5.0
453+
-------------------
454+
455+
Building with Debian 9.5.0 using the above instructions will require several modified steps:
456+
- [Enabling SSH login for root users](gitian-building.md#after-installation) will not work with `sed -i 's/^PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config`.
457+
You can manually modify `/etc/ssh/sshd_config` by adding `PermitRootLogin yes`.
458+
- [The rc.local script to set up a bridge between guest and host](gitian-building.md#setting-up-debian-for-gitian-building) will not work. Instead, use:
459+
```
460+
# make /etc/rc.local script that sets up bridge between guest and host
461+
echo '#!/bin/sh -e' > /etc/rc.local
462+
echo 'brctl addbr br0' >> /etc/rc.local
463+
echo 'ip addr add 10.0.3.2/24 broadcast 10.0.3.255 dev br0' >> /etc/rc.local
464+
echo 'ip link set br0 up' >> /etc/rc.local
465+
echo 'firewall-cmd --zone=trusted --add-interface=br0' >> /etc/rc.local
466+
echo 'exit 0' >> /etc/rc.local
467+
chmod +x /etc/rc.local
468+
```
469+
The script is the same as [bitcoin-core](https://github.com/bitcoin-core/docs/blob/master/gitian-building/gitian-building-setup-gitian-debian.md#setting-up-debian-for-gitian-building) except that port `10.0.3.1/24` is modified to `10.0.3.2/24`.
470+
- LXC in the gitian builder will fail in Debian 9. The issue is fixed in [the pull request here](https://github.com/devrandom/gitian-builder/pull/150) and you can manually make the changes to gitian builder. The changes were subsequently rolled back due to [the patch introducing problems when running in Debian 8.x](https://github.com/devrandom/gitian-builder/issues/151).
471+
452472
Signing externally
453473
-------------------
454474

@@ -473,5 +493,5 @@ Uploading signatures
473493
---------------------
474494

475495
After building and signing you can push your signatures (both the `.assert` and `.assert.sig` files) to the
476-
[navcoin-core/gitian.sigs](https://github.com/navcoin-core/gitian.sigs/) repository, or if that's not possible create a pull
477-
request. You can also mail the files to Wladimir (laanwj@gmail.com) and he will commit them.
496+
[NAVCoin/navcoin-sigs](https://github.com/NAVCoin/navcoin-sigs) repository, or if that's not possible create a pull
497+
request.

doc/release-process.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ Before every release candidate:
4444

4545
Before every minor and major release:
4646

47-
* Update [npips.md](npips.md) a to account for the protocol changes since the last release
48-
* Update [bips.md](bips.md) to account for changes since the last release that we included from bitcoin core.
47+
* Update [npips.md](npips.md) to account for the protocol changes since the last release
4948
* Update version in sources (see below)
5049
* Write release notes (see below)
5150

@@ -82,9 +81,6 @@ Write release notes. git shortlog helps a lot, for example:
8281

8382
git shortlog --no-merges v(current version, e.g. 4.0.6)..v(new version, e.g. 4.1.0)
8483

85-
(or ping @wumpus on IRC, he has specific tooling to generate the list of merged pulls
86-
and sort them into categories based on labels)
87-
8884
Generate list of authors:
8985

9086
git log --format='%aN' "$*" | sort -ui | sed -e 's/^/- /'
@@ -98,7 +94,7 @@ Tag version (or release candidate) in git
9894
Setup Gitian descriptors:
9995

10096
pushd ./navcoin-core
101-
export VERSION=(new version, e.g. v4.1.0)
97+
export VERSION=(new version, e.g. v4.1.0, which should also be the name of the repository branch)
10298
git fetch
10399
git checkout v${VERSION}
104100
popd
@@ -143,7 +139,6 @@ The gbuild invocations below <b>DO NOT DO THIS</b> by default.
143139
./bin/gbuild --memory 3000 --commit navcoin-core=${VERSION} ../navcoin-core/contrib/gitian-descriptors/gitian-arm.yml
144140
mv build/out/navcoin-*.tar.gz build/out/src/navcoin-*.tar.gz ../
145141

146-
pushd ./gitian-builder
147142
./bin/gbuild --memory 3000 --commit navcoin-core=${VERSION} ../navcoin-core/contrib/gitian-descriptors/gitian-linux.yml
148143
mv build/out/navcoin-*.tar.gz build/out/src/navcoin-*.tar.gz ../
149144

0 commit comments

Comments
 (0)