groff can't embed fonts due to version mismatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
groff (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have Ubuntu 22.10 x86-64 running groff-base and groff 1.22.4-8build1. I also have Ghostscript installed, as the ghostscript and ghostscript-x 9.56.1~
When I run this shell command:
printf '%s\n' '.TH zic 8' '.SH NAME' | groff -Tpdf -man -P-e - >x.pdf
I see the following message on stderr:
Failed to open '/usr/share/
This is because the file /usr/share/
Times-Roman */usr/share/
but this file does not exist. Instead, the following file does exist:
/usr/share/
Apparently groff is built so that it requires GhostScript 9.55.0, but Ubuntu 22.10 comes with a later version of GhostScript, which means groff doesn't work when it wants to embed fonts.