Skip to content

fix(rpm): make msttcore-fonts-installer optional - #19

Merged
juliusknorr merged 1 commit into
mainfrom
fix/rpm-optional-mscorefonts
Oct 21, 2026
Merged

juliusknorr merged 1 commit into
mainfrom
fix/rpm-optional-mscorefonts

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

No Fedora/RHEL repository ships msttcore-fonts-installer, so dnf install of the documentserver RPM fails and the docs fall back to rpm --nodeps, which skips every other dependency too.

  • Move it to Recommends, so it is still pulled in where available
  • Require liberation-sans-fonts and liberation-serif-fonts (metric-compatible with Arial/Times New Roman) next to the already required mono variant

Tested by installing an RPM with the new dependency list via dnf install: works on Fedora 43, and on Rocky 9 with EPEL (needed for certbot, unchanged).

AI assistance was used for this change (see the Assisted-by trailer).

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>
@juliusknorr
juliusknorr requested review from chrip and rikled October 19, 2026 14:36

@chrip chrip left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@juliusknorr
juliusknorr merged commit 4f849ca into main Oct 21, 2026
2 checks passed
@juliusknorr juliusknorr added this to the 9.3.8 milestone Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants