Bug#982302: Outdated ghostscript font paths

2021-02-08 Thread Colin Watson
On Mon, Feb 08, 2021 at 03:08:33PM +0100, Rodrigo Arias wrote:
> When building a PDF with groff 1.22.4-3 [1] on Debian buster, it 
> complains that some fonts are missing:
> 
> % groff -ms -k -t -p -R -Tpdf test.ms > test.pdf
> test.ms: Failed to open '/usr/share/ghostscript/9.26/Resource/Font/P052-Bold'
> 
> The last version of ghostscript at current time is 9.27 with the fonts 
> provided by the package libgs9-common [2], located at:
[...]
> It seems that the paths in the "download" file are generated at build 
> time pointing to the ghostscript installation, detected in the configure 
> phase [3,4]. Therefore, rebuilding groff again should be enough to fix 
> the paths.

Good point.  I've filed a stable update request as
https://bugs.debian.org/982311, and will wait for permission to upload.

-- 
Colin Watson (he/him)  [cjwat...@debian.org]



Bug#982302: Outdated ghostscript font paths

2021-02-08 Thread Rodrigo Arias
Package: groff
Version: 1.22.4-3

When building a PDF with groff 1.22.4-3 [1] on Debian buster, it 
complains that some fonts are missing:

% groff -ms -k -t -p -R -Tpdf test.ms > test.pdf
test.ms: Failed to open '/usr/share/ghostscript/9.26/Resource/Font/P052-Bold'

The last version of ghostscript at current time is 9.27 with the fonts 
provided by the package libgs9-common [2], located at:

% ls -1 /usr/share/ghostscript/9.27/Resource/Font
C059-BdIta
C059-Bold
C059-Italic
C059-Roman
D05L
NimbusMonoPS-Bold
NimbusMonoPS-BoldItalic
NimbusMonoPS-Italic
NimbusMonoPS-Regular
NimbusRoman-Bold
...

While in groff, the paths are outdated as they point to the 9.26 
version:

% awk '/ghost/{print $2}' /usr/share/groff/1.22.4/font/devpdf/download
/usr/share/ghostscript/9.26/Resource/Font/URWGothic-Book
/usr/share/ghostscript/9.26/Resource/Font/URWGothic-BookOblique
/usr/share/ghostscript/9.26/Resource/Font/URWGothic-Demi
/usr/share/ghostscript/9.26/Resource/Font/URWGothic-DemiOblique
/usr/share/ghostscript/9.26/Resource/Font/URWBookman-Demi
/usr/share/ghostscript/9.26/Resource/Font/URWBookman-DemiItalic
/usr/share/ghostscript/9.26/Resource/Font/URWBookman-LightItalic
/usr/share/ghostscript/9.26/Resource/Font/URWBookman-Light
*/usr/share/ghostscript/9.26/Resource/Font/NimbusMonoPS-Regular
*/usr/share/ghostscript/9.26/Resource/Font/NimbusMonoPS-Bold
...

It seems that the paths in the "download" file are generated at build 
time pointing to the ghostscript installation, detected in the configure 
phase [3,4]. Therefore, rebuilding groff again should be enough to fix 
the paths.

Rodrigo.

[1]:https://packages.debian.org/buster/groff
[2]:https://packages.debian.org/buster/all/libgs9-common/filelist
[3]:https://git.savannah.gnu.org/cgit/groff.git/tree/font/devpdf/devpdf.am
[4]:https://git.savannah.gnu.org/cgit/groff.git/tree/font/devpdf/util/BuildFoundries.pl

http://bsc.es/disclaimer