File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,19 @@ variables `PPA_SIGNING_KEY` and `PPA_SSH_KEY` on Travis.
22
22
23
23
We want to build go-ethereum with the most recent version of Go, irrespective of the Go
24
24
version that is available in the main Ubuntu repository. In order to make this possible,
25
- our PPA always fetches a recent Go release for the upstream server and uses that.
25
+ our PPA depends on the ~ gophers/ubuntu/archive PPA. Our source package build-depends on
26
+ golang-1.11, which is co-installable alongside the regular golang package. PPA dependencies
27
+ can be edited at https://launchpad.net/%7Eethereum/+archive/ubuntu/ethereum/+edit-dependencies
26
28
27
29
## Building Packages Locally (for testing)
28
30
29
31
You need to run Ubuntu to do test packaging.
30
32
31
- Install Go and the Debian packaging tools:
33
+ Add the gophers PPA and install Go 1.11 and Debian packaging tools:
32
34
35
+ $ sudo apt-add-repository ppa:gophers/ubuntu/archive
33
36
$ sudo apt-get update
34
- $ sudo apt-get install build-essential golang devscripts debhelper python-bzrlib python-paramiko
37
+ $ sudo apt-get install build-essential golang-1.11 devscripts debhelper python-bzrlib python-paramiko
35
38
36
39
Create the source packages:
37
40
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Source: {{.Name}}
2
2
Section: science
3
3
Priority: extra
4
4
Maintainer: {{.Author}}
5
- Build-Depends: debhelper (>= 8.0.0), golang
5
+ Build-Depends: debhelper (>= 8.0.0), golang-1.11
6
6
Standards-Version: 3.9.5
7
7
Homepage: https://ethereum.org
8
8
Vcs-Git: git://github.com/ethereum/go-ethereum.git
Original file line number Diff line number Diff line change 4
4
# Uncomment this to turn on verbose mode.
5
5
# export DH_VERBOSE=1
6
6
7
- # Launchpad rejects Go's access to $HOME, use custom folder
8
- export HOME =/tmp/home
7
+ # Launchpad rejects Go's access to $HOME/.cache , use custom folder
8
+ export GOCACHE =/tmp/go-build
9
9
10
10
override_dh_auto_build :
11
- go get golang.org/dl/go1.13 && $HOME /go/bin/go1.13 download
12
- build/env.sh $HOME /go/bin/go1.13 run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}
11
+ build/env.sh /usr/lib/go-1.11/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}
13
12
14
13
override_dh_auto_test :
15
14
You can’t perform that action at this time.
0 commit comments