Repository navigation
fix(rpm): make msttcore-fonts-installer optional - #19
Conversation
No Fedora/RHEL repository ships it, so dnf install failed. Recommend it instead and require the metric-compatible Liberation fonts. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Julius Knorr <jus@bitgrid.net>
chrip
left a comment
There was a problem hiding this comment.
Summary
This moves msttcore-fonts-installer from Requires to Recommends in rpm/requires.spec and adds liberation-sans-fonts and liberation-serif-fonts next to the existing liberation-mono-fonts. I checked the motivation against Fedora 43 and Rocky 9 with EPEL. Neither has msttcore-fonts-installer, and all three Liberation packages resolve on both (2.1.5 in Fedora, 2.1.3 in Rocky 9 AppStream). The RPM is built with the rpm from ubuntu:24.04 (DocumentServer/build/.docker/packages.bake.Dockerfile), which understands Recommends:, and apt-rpm/ has its own requires.spec that this change leaves alone. DCO and the conventional-commit check pass.
Minor 1: the package already ships Liberation Sans and Serif. The bundle copies core-fonts into the package (DocumentServer/build/.docker/bundle.bake.Dockerfile:29), and core-fonts/liberation/ has the Sans, Serif and Mono families. common/documentserver/bin/documentserver-generate-allfonts.sh.m4:21 indexes that directory with --input="$DIR/core-fonts", so the editor has the metric-compatible fallbacks without any system package. The two new Requires add a second copy that --use-system="true" picks up. That does no harm, but the comment at rpm/requires.spec:2 ("the Liberation fonts above stand in for it") credits them with work the bundled copies already do. You could drop the two new Requires and keep the change to the Recommends move, or keep them for parity with liberation-mono-fonts and reword the comment, for example: "Not in any Fedora/RHEL repository; the bundled core-fonts/liberation copies cover Arial and Times New Roman."
Verdict
Approve. A plain dnf install works on Fedora and EL9 again with this. Minor 1 is about whether the two extra Requires are needed and doesn't block the merge.
Assisted-by: ClaudeCode:claude-opus-5-5
No Fedora/RHEL repository ships
msttcore-fonts-installer, sodnf installof the documentserver RPM fails and the docs fall back torpm --nodeps, which skips every other dependency too.Recommends, so it is still pulled in where availableliberation-sans-fontsandliberation-serif-fonts(metric-compatible with Arial/Times New Roman) next to the already required mono variantTested by installing an RPM with the new dependency list via
dnf install: works on Fedora 43, and on Rocky 9 with EPEL (needed forcertbot, unchanged).AI assistance was used for this change (see the
Assisted-bytrailer).