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.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rSTAGING4826fc6251ad: Spoof DISPLAY on headless build servers when generating manpages for bitcoin-qt
rABC4826fc6251ad: Spoof DISPLAY on headless build servers when generating manpages for bitcoin-qt
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
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- headless-automanpages
- Lint
Lint Passed Severity Location Code Message Advice contrib/source-control-tools/automated-commits.sh:110 SC2230 ShellCheck found an issue: - Unit
No Test Coverage - Build Status
Buildable 9622 Build 17144: Default Diff Build & Tests Build 17143: arc lint + arc unit