Page MenuHomePhabricator

[GITIAN] Migrate OSX Gitian builds to CMake and Ninja
Changes PlannedPublic

Authored by Fabien on Thu, Nov 7, 15:44.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Summary

Replace autotools by CMake for the OSX Gitian builds, and use
Ninja as a generator.

Note 1:
The test_bitcoin binary is no longer part of the Gitian output.

Note 2: There are some more dependencies required.
This is because CMake is run for the native platform in order to build a
couple helper binaries for secp256k1 and univalue. CMake is run from the
project root and check for all the dependencies despite only a compiler
is required. This is a minor inconvenience which can be reworked later.

Depends on D4425 and D4426.

Test Plan

Run the OSX Gitian build twice.
Check the hashes are identical between the builds.
Run the binaries and installers (DMG).

Diff Detail

Repository
rABC Bitcoin ABC
Branch
gitian_osx_cmake
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 8059
Build 14113: Bitcoin ABC Buildbot
Build 14112: arc lint + arc unit

Event Timeline

Fabien created this revision.Thu, Nov 7, 15:44
Herald added a reviewer: Restricted Project. · View Herald TranscriptThu, Nov 7, 15:44
deadalnix requested changes to this revision.Sun, Nov 10, 12:58

Depending on system libs will cause the build to not be reproducible. You need to be using depends libs.

This revision now requires changes to proceed.Sun, Nov 10, 12:58
Fabien updated this revision to Diff 14049.Mon, Nov 11, 12:15

Reduce the amount of dependencies required by rebasing on top of D4425.
Disable ccache for the build.

Fabien planned changes to this revision.Tue, Nov 12, 19:49