Page MenuHomePhabricator

Spoof DISPLAY on headless build servers when generating manpages for bitcoin-qt
ClosedPublic

Authored by jasonbcox on Feb 28 2020, 02:21.

Details

Summary

bitcoin-qt has a tightly coupled dependency on Qt resources being initialized before
help text is generated (see the code. it's related to translations). This is problematic for
generating the manpages because it needs to run bitcoin-qt --help. We can get around this
for now using xvfb to spoof a DISPLAY. A longer term solution would be to decouple Qt from
the help text, but a lot more thought needs to be put into if this is acceptable and if the
deviate from Core would be worth it.

Test Plan
COMMIT_TYPE=update-manpages ./automated-commits.sh  # fails without xvfb installed

sudo apt-get install xvfb
COMMIT_TYPE=update-manpages ./automated-commits.sh  # succeeds

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Feb 28 2020, 11:13
Fabien added a subscriber: Fabien.

Please address the linter issue.

This revision now requires changes to proceed.Feb 28 2020, 11:13
This revision is now accepted and ready to land.Mar 3 2020, 08:17