Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490248 - app-text/ghostscript-gpl: unavailability of /usr/share/ghostscript-gpl/(ver)/Resource/Font
Summary: app-text/ghostscript-gpl: unavailability of /usr/share/ghostscript-gpl/(ver)/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL: https://forum.sabayon.org/viewtopic.p...
Whiteboard:
Keywords:
: 494764 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-03 10:49 UTC by Fabio Erculiani (RETIRED)
Modified: 2017-02-11 23:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani (RETIRED) gentoo-dev 2013-11-03 10:49:21 UTC
Please see URL.
The ebuild removes the Resource/Font directory but this doesn't only contain urw-fonts.
The result is that printing PDF files is broken.
Simply removing the following lines seem to fix it:

        ...
        # remove internal urw-fonts
        rm -rf "${S}"/Resource/Font
        ...
Comment 1 Timo Gurr (RETIRED) gentoo-dev 2013-12-02 15:34:21 UTC
As far as I know we ditched media-fonts/gnu-gs-fonts-std in favor of urw-fonts a while ago. We had that package installing the gs fonts to /usr/share/fonts/default/ghostscript.

That's the way fedora handles it to date, besides they install the urw-fonts to /usr/share/fonts/default/Type1 instead of /usr/share/fonts/urw-fonts.

So the proper way to handle this would be to reintroduce the media-fonts/gnu-gs-fonts-std package installing the fonts to /usr/share/fonts/default/ghostscript and alter the ghostscript-gpl ebuild to include that search path right before /usr/share/fonts/urw-fonts.

Though I'm really not sure if this is needed at all since this is probably the first report of such problems and we did that change quite a while ago, for reference the relevant commit was:

"Depend on media-fonts/urw-fonts instead of media-fonts/gnu-gs-fonts-std and symlink font dir, wrt bugs 247657 and 256088."
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r2.ebuild?hideattic=0&revision=1.1&view=markup

For completeness the fedora .spec file for the ghostscript-fonts (they only ship a subset of the fonts as some are causing problems and/or license issues):
http://pkgs.fedoraproject.org/cgit/ghostscript-fonts.git/tree/ghostscript-fonts.spec
Comment 2 Maxr 2014-02-12 19:52:12 UTC
After using strace and other debug options, I traced the problem of error during print pdf figure from octave to here. Gentoo doesn't come with this folder and other important fonts for gs( StandardSymL). Most users will just say "ahaa, I can not plot pdf using octave/etc", then they might just switch to someother boxes.
As the bug is here for such a long time, no action has been taken yet, I highlly suggest changing the Importance to high. because this just break the function of this package and other related packages.
for those who have same problem as me, my quick fix is download the package from archlinux/other distribution, extract Fonts into  /usr/share/ghostscript-gpl/(ver)/Resource/Font, this will made life much easier while waiting for a fix.
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2014-03-12 19:17:48 UTC
Concerning whether urw-fonts are enough:

~/work/gentoo/scratch/ghostscript-9.10/Resource/Font $ fc-query -f '%{family}\n' * | sort -u | xargs -n1 -d '\n' fc-match -f '%{file}\n'
/usr/share/fonts/urw-fonts/c059013l.pfb
/usr/share/fonts/urw-fonts/d050000l.pfb
/usr/share/fonts/urw-fonts/n022003l.pfb
/usr/share/fonts/urw-fonts/n021003l.pfb
/usr/share/fonts/urw-fonts/n019003l.pfb
/usr/share/fonts/urw-fonts/s050000l.pfb
/usr/share/fonts/urw-fonts/b018012l.pfb
/usr/share/fonts/urw-fonts/z003034l.pfb
/usr/share/fonts/urw-fonts/a010013l.pfb
/usr/share/fonts/urw-fonts/p052003l.pfb

conclusion: yes

The ghostscript developers test only with the fonts present, so more fonts may help in some cases but should not be necessary.

Thus I'd do one of the following:
* move urw-fonts to Type1 and then either
** symlink /usr/share/ghostscript/../Resource/Font -> /usr/share/fonts/urw-fonts
** or export GS_FONTPATH="/usr/share/fonts/Type1"
* not move urw-fonts and instead do: export GS_FONTPATH="/usr/share/fonts/urw-fonts:/usr/share/fonts/Type1"

@Fabio/@Maxr: do you have infinality enabled (on Sabayon)?
If yes, then bug #494764 can be considered a dupe of this one.
Comment 4 Fabio Erculiani (RETIRED) gentoo-dev 2014-07-19 15:44:38 UTC
Yes we have infinality enabled.
Can we please not try to be smarter than we can and do what all other sane human beings do (aka all other distro devs)?
Comment 5 Tiziano Müller (RETIRED) gentoo-dev 2014-11-09 12:12:41 UTC
*** Bug 494764 has been marked as a duplicate of this bug. ***
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2014-11-09 12:13:49 UTC
As written in the other bug: the only working solution at the moment is to have ghostscript-gpl install the bundled fonts.
So, can we please install /usr/share/ghostscript/*/Resource/Font like almost any other distro and be done with it?
Comment 7 Matthias Maier gentoo-dev 2014-11-09 13:54:18 UTC
This is now fixed in 9.10-r4 and 9.15-r1 by just installing the bundled fonts. I leave this bug open until one of those versions is stabilized

*ghostscript-gpl-9.10-r4 (09 Nov 2014)
*ghostscript-gpl-9.15-r1 (09 Nov 2014)

  09 Nov 2014; Matthias Maier <tamiko@gentoo.org>
  +ghostscript-gpl-9.10-r4.ebuild, +ghostscript-gpl-9.15-r1.ebuild,
  -ghostscript-gpl-9.10-r3.ebuild, -ghostscript-gpl-9.14.ebuild,
  -ghostscript-gpl-9.15.ebuild:
  also install [...]/Resource/Font/* wrt bug #490248, enable parallel make for
  9.15* wrt bug #234378
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2017-02-11 23:09:27 UTC
(In reply to Matthias Maier from comment #7)
> This is now fixed in 9.10-r4 and 9.15-r1 by just installing the bundled
> fonts. I leave this bug open until one of those versions is stabilized
> 
> *ghostscript-gpl-9.10-r4 (09 Nov 2014)
> *ghostscript-gpl-9.15-r1 (09 Nov 2014)
> 
>   09 Nov 2014; Matthias Maier <tamiko@gentoo.org>
>   +ghostscript-gpl-9.10-r4.ebuild, +ghostscript-gpl-9.15-r1.ebuild,
>   -ghostscript-gpl-9.10-r3.ebuild, -ghostscript-gpl-9.14.ebuild,
>   -ghostscript-gpl-9.15.ebuild:
>   also install [...]/Resource/Font/* wrt bug #490248, enable parallel make
> for
>   9.15* wrt bug #234378

Stable now.