FS#69443 - [groff] outdated ghoscript font paths

Attached to Project: Arch Linux
Opened by Rodrigo (rodarima) - Tuesday, 26 January 2021, 10:26 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 26 January 2021, 11:12 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

gropdf fails to embed the fonts in the PDF when using the -e option as it is unable to find the fonst file:

$ groff -mm -k -t -p -R -P -e -dpaper=a4 -Tpdf test.mm > test.pdf
test.mm: Failed to open '/usr/share/ghostscript/9.50/Resource/Font/NimbusRoman-Regular'

The paths are outdated in the /usr/share/groff/1.22.4/font/devpdf/download file:

$ head /usr/share/groff/1.22.4/font/devpdf/download
# foundry ps name psfile
AvantGarde-Book /usr/share/ghostscript/9.50/Resource/Font/URWGothic-Book
AvantGarde-BookOblique /usr/share/ghostscript/9.50/Resource/Font/URWGothic-BookOblique
AvantGarde-Demi /usr/share/ghostscript/9.50/Resource/Font/URWGothic-Demi
AvantGarde-DemiOblique /usr/share/ghostscript/9.50/Resource/Font/URWGothic-DemiOblique
Bookman-Demi /usr/share/ghostscript/9.50/Resource/Font/URWBookman-Demi
Bookman-DemiItalic /usr/share/ghostscript/9.50/Resource/Font/URWBookman-DemiItalic
Bookman-Light /usr/share/ghostscript/9.50/Resource/Font/URWBookman-LightItalic
Bookman-LightItalic /usr/share/ghostscript/9.50/Resource/Font/URWBookman-Light
Courier */usr/share/ghostscript/9.50/Resource/Font/NimbusMonoPS-Regular

The current version is 9.53.3:

$ ls /usr/share/ghostscript/*/Resource/Font/NimbusRoman-Regular
/usr/share/ghostscript/9.53.3/Resource/Font/NimbusRoman-Regular

Additional info:

$ pacman -Qi groff ghostscript | egrep 'Name|Version'
Name : groff
Version : 1.22.4-3
Name : ghostscript
Version : 9.53.3-2

When corrected with

# sed -i 's/9\.50/9.53.3/g' /usr/share/groff/1.22.4/font/devpdf/download

The generated PDF successfully contains the embedded fonts.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 26 January 2021, 11:12 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#67751 

Loading...