app-text/ghostscript-gpl-9.26 installs an invalid font mapping file '/usr/share/ghostscript/9.26/Resource/Init/Fontmap.GS'. In this file, filenames are truncated and the font "Times-Roman" is mapped to non-existing font files. If users want to display documents containing text in Times-Roman, they will get the error message: Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu. See https://forums.gentoo.org/viewtopic-t-1091040.html for additional information. Reproducible: Always
Created attachment 558638 [details] Faulty Fontmap.GS installed by emerge on my Gentoo machine
Created attachment 558640 [details] Original Fontmap.GS from ghostscript source tarball
I found the culprit. It's ghostscript-9.25-urw-fonts-naming-2.patch The patch contains truncated filenames and non-existing filenames for Times-Roman. Furthermore, ghostscript-9.25-urw-fonts-naming-1.patch modifies the Copyright notice of the file Fontmap.GS. That's at least unfriendly, probably illegal and definitely unnecessary.
This issue pops up on different packages using doxygen to build the documentation, if class diagrams are not build using dot, but with the doxygen internal mechanism. This uses epstopdf from dev-texlive/texlive-fontutils, which in turn uses ghostscript and pops out errors like Generating docs for compound ocl::weave::Weave... Error: /invalidfont in /findfont Operand stack: boxfont Times-Roman Execution stack: %interp_exit .runexec2 --nostringval-- .findfontop --nostringval-- 2 %stopped_push --nostringval-- .findfontop .findfontop false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop .findfontop 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- .findfontop --nostringval-- 2 %stopped_push --nostringval-- 1975 2 3 %oparray_pop Dictionary stack: --dict:967/1684(ro)(G)-- --dict:0/20(G)-- --dict:96/200(L)-- Current allocation mode is local Last OS error: No such file or directory GPL Ghostscript 9.26: Unrecoverable error, exit code 1 epstopdf ($Id: epstopdf.pl 48681 2018-09-16 23:03:58Z karl $) 2.28 !!! Error: Writing to gs failed, error code 1 error: Problems running epstopdf. Check your TeX installation! You can verify this by starting gs in a terminal and once inside ghostscript, run "loadallfonts" (without quotes). This gives: GPL Ghostscript 9.26 (2018-11-20) Copyright (C) 2018 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. GS>loadallfonts Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusRomNo9L-Medi. Can't find (or can't open) font file NimbusRomNo9L-Medi. Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusRomNo9L-Medi. Can't find (or can't open) font file NimbusRomNo9L-Medi. Querying operating system for font files... Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusRomNo9L-Medi. Can't find (or can't open) font file NimbusRomNo9L-Medi. Didn't find this font on the system! Substituting font Courier for NimbusRomNo9L-Medi. Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu. Can't find (or can't open) font file NimbusMonL-Regu. Can't find (or can't open) font file /usr/share/ghostscript/9.26/Resource/Font/NimbusMonL-Regu. Can't find (or can't open) font file NimbusMonL-Regu. Didn't find this font on the system! Unable to substitute for font. Error: /invalidfont in /findfont Operand stack: Times-Bold Execution stack: %interp_exit .runexec2 --nostringval-- .findfontop --nostringval-- 2 %stopped_push --nostringval-- .findfontop %loop_continue .findfontop .findfontop false 1 %stopped_push .runexec2 --nostringval-- .findfontop --nostringval-- 2 %stopped_push --nostringval-- .findfontop .findfontop %array_continue --dict:99/100(G)-- .findfontop 128 %dict_continue .findfontop 1975 1 3 %oparray_pop Dictionary stack: --dict:973/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- Current allocation mode is local Last OS error: No such file or directory Current file position is 13 GS<1> I agree with Michael with the downgrade of the copyright notice from a (C) 2001-2018 to (C) 2001-2012 and changing the address to a probably no longer valid one. This could possibly be highly problematic from a legal point of view.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d930d39c8fa5fdee7087d30867cd61f410739102 commit d930d39c8fa5fdee7087d30867cd61f410739102 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-10-10 00:37:21 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-10-10 01:14:29 +0000 app-text/ghostscript-gpl: drop urw-fonts naming patch Closes: https://bugs.gentoo.org/673856 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> app-text/ghostscript-gpl/Manifest | 2 +- ...ostscript-gpl-9.28_rc4.ebuild => ghostscript-gpl-9.28_rc4-r1.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)