github.com/goldbock/go-ethereum@v1.9.7/build/ci-notes.md (about)

     1  # Debian Packaging
     2  
     3  Tagged releases and develop branch commits are available as installable Debian packages
     4  for Ubuntu. Packages are built for the all Ubuntu versions which are supported by
     5  Canonical.
     6  
     7  Packages of develop branch commits have suffix -unstable and cannot be installed alongside
     8  the stable version. Switching between release streams requires user intervention.
     9  
    10  ## Launchpad
    11  
    12  The packages are built and served by launchpad.net. We generate a Debian source package
    13  for each distribution and upload it. Their builder picks up the source package, builds it
    14  and installs the new version into the PPA repository. Launchpad requires a valid signature
    15  by a team member for source package uploads.
    16  
    17  The signing key is stored in an environment variable which Travis CI makes available to
    18  certain builds. Since Travis CI doesn't support FTP, SFTP is used to transfer the
    19  packages. To set this up yourself, you need to create a Launchpad user and add a GPG key
    20  and SSH key to it. Then encode both keys as base64 and configure 'secret' environment
    21  variables `PPA_SIGNING_KEY` and `PPA_SSH_KEY` on Travis.
    22  
    23  We want to build go-ethereum with the most recent version of Go, irrespective of the Go
    24  version that is available in the main Ubuntu repository. In order to make this possible,
    25  we bundle the entire Go sources into our own source archive and start the built job by
    26  compiling Go and then using that to build go-ethereum. On Trusty we have a special case
    27  requiring the `~gophers/ubuntu/archive` PPA since Trusty can't even build Go itself. PPA
    28  deps are set at https://launchpad.net/%7Eethereum/+archive/ubuntu/ethereum/+edit-dependencies
    29  
    30  ## Building Packages Locally (for testing)
    31  
    32  You need to run Ubuntu to do test packaging.
    33  
    34  Install any version of Go and Debian packaging tools:
    35  
    36      $ sudo apt-get install build-essential golang-go devscripts debhelper python-bzrlib python-paramiko
    37  
    38  Create the source packages:
    39  
    40      $ go run build/ci.go debsrc -workdir dist
    41  
    42  Then go into the source package directory for your running distribution and build the package:
    43  
    44      $ cd dist/ethereum-unstable-1.9.6+bionic
    45      $ dpkg-buildpackage
    46  
    47  Built packages are placed in the dist/ directory.
    48  
    49      $ cd ..
    50      $ dpkg-deb -c geth-unstable_1.9.6+bionic_amd64.deb