Closed tom93 closed 4 years ago
Thanks! This is indeed the case.
I’ve filed https://bugs.debian.org/960571 to get the package’s dependencies updated.
And rst2pdf/rst2pdf#864 about the build succeeding even though there are errors.
But indeed for now we need to install fontconfig
explicitly.
The error occurs when the team manual is generated using sphinx-build/rst2pdf in the contributor and domserver Docker containers.
The rst2pdf package uses the
fc-match
command from the fontconfig package, but doesn't list it as a dependency for some reason so fontconfig isn't installed.The build exit status is 0 (success), but the output includes a long error message and the generated file domjudge-team-manual.pdf is empty.
(The build happens to work in the gitlabci container because it installs packaging-dev, which pulls in fontconfig.)
Steps to reproduce
Expected behaviour
domjudge/doc/manual/build/team/domjudge-team-manual.pdf should contain the team manual.
Actual behaviour
domjudge-team-manual.pdf exists but is empty.
Build output
Fix
The obvious fix is to install fontconfig. There may be other solutions though, I'm not familiar with rst2pdf.
Pull request
57, DOMjudge/domjudge#797 (for install instructions)