HomePhabricator

Use ninja for the debian packages build

Description

Use ninja for the debian packages build

Summary:
This is supported since debhelper 11.7. We enforce >= 12.1 as this is
the minimum version we are building against (from bionic 18.04
backports).

A few changes are required:

  • The test step needs to be overriden as it requires a tests target

and we have a check target.

  • The build directory has to be set because otherwise we can't override

the tests.

Also the build type is set explicitely to override debhelper defaults
(it sets to None which is invalid, and sets all the flags on
environment variables). This does not change the behavior but makes it
easier to reason about.

Test Plan:

Uploaded a package with the changes on my personal PPA and built with

Bionic and Focal. Bionic succeeded and Focal failed with a segfault, so
the behavior is the same as previously. However it cuts the runtime by
4x.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D6934

Details

Provenance
FabienAuthored on Jul 15 2020, 13:27
FabienPushed on Jul 15 2020, 17:15
Reviewer
Restricted Project
Differential Revision
D6934: Use ninja for the debian packages build
Parents
rABC80b9a642cecb: Disable optional Jemalloc for the example Arch Linux build in build-unix.md
Branches
Unknown
Tags
Unknown