2016-09-30 22:03:08 +02:00
|
|
|
# Debian Packaging
|
2016-05-25 14:07:57 +02:00
|
|
|
|
|
|
|
Tagged releases and develop branch commits are available as installable Debian packages
|
|
|
|
for Ubuntu. Packages are built for the all Ubuntu versions which are supported by
|
2018-02-19 11:04:26 +02:00
|
|
|
Canonical.
|
2016-05-25 14:07:57 +02:00
|
|
|
|
|
|
|
Packages of develop branch commits have suffix -unstable and cannot be installed alongside
|
|
|
|
the stable version. Switching between release streams requires user intervention.
|
|
|
|
|
2019-02-12 10:55:25 +01:00
|
|
|
## Launchpad
|
|
|
|
|
2016-05-25 14:07:57 +02:00
|
|
|
The packages are built and served by launchpad.net. We generate a Debian source package
|
|
|
|
for each distribution and upload it. Their builder picks up the source package, builds it
|
|
|
|
and installs the new version into the PPA repository. Launchpad requires a valid signature
|
2019-02-12 10:55:25 +01:00
|
|
|
by a team member for source package uploads.
|
|
|
|
|
|
|
|
The signing key is stored in an environment variable which Travis CI makes available to
|
|
|
|
certain builds. Since Travis CI doesn't support FTP, SFTP is used to transfer the
|
|
|
|
packages. To set this up yourself, you need to create a Launchpad user and add a GPG key
|
|
|
|
and SSH key to it. Then encode both keys as base64 and configure 'secret' environment
|
|
|
|
variables `PPA_SIGNING_KEY` and `PPA_SSH_KEY` on Travis.
|
2016-05-25 14:07:57 +02:00
|
|
|
|
|
|
|
We want to build go-ethereum with the most recent version of Go, irrespective of the Go
|
|
|
|
version that is available in the main Ubuntu repository. In order to make this possible,
|
travis, build, internal: use own Go bundle for PPA builds (#20240)
* build: bump PPAs to Go 1.13 (via longsleep), keep Trusty on 1.11
* travis, build, vendor: use own Go bundle for PPA builds
* travis, build, internal, vendor: smarter Go bundler, own untar
* build: updated ci-notes with new Go bundling, only make, don't test
2019-11-05 15:32:42 +02:00
|
|
|
we bundle the entire Go sources into our own source archive and start the built job by
|
|
|
|
compiling Go and then using that to build go-ethereum. On Trusty we have a special case
|
|
|
|
requiring the `~gophers/ubuntu/archive` PPA since Trusty can't even build Go itself. PPA
|
|
|
|
deps are set at https://launchpad.net/%7Eethereum/+archive/ubuntu/ethereum/+edit-dependencies
|
2016-05-25 14:07:57 +02:00
|
|
|
|
2016-09-30 22:03:08 +02:00
|
|
|
## Building Packages Locally (for testing)
|
|
|
|
|
|
|
|
You need to run Ubuntu to do test packaging.
|
|
|
|
|
travis, build, internal: use own Go bundle for PPA builds (#20240)
* build: bump PPAs to Go 1.13 (via longsleep), keep Trusty on 1.11
* travis, build, vendor: use own Go bundle for PPA builds
* travis, build, internal, vendor: smarter Go bundler, own untar
* build: updated ci-notes with new Go bundling, only make, don't test
2019-11-05 15:32:42 +02:00
|
|
|
Install any version of Go and Debian packaging tools:
|
2016-09-30 22:03:08 +02:00
|
|
|
|
travis, build, internal: use own Go bundle for PPA builds (#20240)
* build: bump PPAs to Go 1.13 (via longsleep), keep Trusty on 1.11
* travis, build, vendor: use own Go bundle for PPA builds
* travis, build, internal, vendor: smarter Go bundler, own untar
* build: updated ci-notes with new Go bundling, only make, don't test
2019-11-05 15:32:42 +02:00
|
|
|
$ sudo apt-get install build-essential golang-go devscripts debhelper python-bzrlib python-paramiko
|
2016-09-30 22:03:08 +02:00
|
|
|
|
|
|
|
Create the source packages:
|
|
|
|
|
|
|
|
$ go run build/ci.go debsrc -workdir dist
|
|
|
|
|
|
|
|
Then go into the source package directory for your running distribution and build the package:
|
|
|
|
|
travis, build, internal: use own Go bundle for PPA builds (#20240)
* build: bump PPAs to Go 1.13 (via longsleep), keep Trusty on 1.11
* travis, build, vendor: use own Go bundle for PPA builds
* travis, build, internal, vendor: smarter Go bundler, own untar
* build: updated ci-notes with new Go bundling, only make, don't test
2019-11-05 15:32:42 +02:00
|
|
|
$ cd dist/ethereum-unstable-1.9.6+bionic
|
2016-09-30 22:03:08 +02:00
|
|
|
$ dpkg-buildpackage
|
|
|
|
|
|
|
|
Built packages are placed in the dist/ directory.
|
|
|
|
|
|
|
|
$ cd ..
|
travis, build, internal: use own Go bundle for PPA builds (#20240)
* build: bump PPAs to Go 1.13 (via longsleep), keep Trusty on 1.11
* travis, build, vendor: use own Go bundle for PPA builds
* travis, build, internal, vendor: smarter Go bundler, own untar
* build: updated ci-notes with new Go bundling, only make, don't test
2019-11-05 15:32:42 +02:00
|
|
|
$ dpkg-deb -c geth-unstable_1.9.6+bionic_amd64.deb
|