Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635904 - media-gfx/sane-backends-1.0.27: Error in ghostcript command
Summary: media-gfx/sane-backends-1.0.27: Error in ghostcript command
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 636374 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-30 18:28 UTC by Martin von Gagern
Modified: 2018-04-02 11:59 UTC (History)
3 users (show)

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


Attachments
build log (media-gfx:sane-backends-1.0.27:20171030-181945.log,366.12 KB, text/plain)
2017-10-30 18:28 UTC, Martin von Gagern
Details
emerge --info (media-gfx:sane-backends-1.0.27.emerge--info,9.75 KB, text/plain)
2017-10-30 19:24 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2017-10-30 18:28:12 UTC
Created attachment 500982 [details]
build log

Latest sane-backends has problems building its documentation:

Error in ghostcript command
command was: gs -q -dNOPAUSE -sAutoRotatePages=None -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=figs/area.pdf - -c quit

Without MAKEOPTS=-j1 I happened to see three more of these, for figs/image-data.pdf, figs/hierarchy.pdf and figs/flow.pdf.

I have app-text/ghostscript-gpl-9.21 and media-gfx/transfig-3.2.5e installed.
Comment 1 Martin von Gagern 2017-10-30 19:24:51 UTC
Created attachment 501128 [details]
emerge --info

Contrary to what I expected, USE=-doc didn't solve this.
Comment 2 Serge Gavrilov 2017-11-03 00:23:43 UTC
The working workaround for me was 

eselect infinality set ultimate-free

This yields

# fc-match helvetica
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"

Before I had 

eselect infinality set infinality

and "helvetica" was actually Arial. This somehow breaks ghostscript.
Comment 4 Pacho Ramos gentoo-dev 2017-11-04 10:43:23 UTC
*** Bug 636374 has been marked as a duplicate of this bug. ***
Comment 5 Martin von Gagern 2017-11-04 21:33:31 UTC
Don't seem to have infinality here. Not sure what a clean fix would be for me.

# fc-match helvetica
texgyreheros-regular.otf: "TeX Gyre Heros" "Regular"
# eselect infinality
!!! Error: Can't load module infinality
exiting
# qfile -v -b texgyreheros-regular.otf
dev-texlive/texlive-fontsrecommended-2017 (/usr/share/texmf-dist/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf)
media-sound/lilypond-2.19.64 (/usr/share/lilypond/2.19.64/fonts/otf/texgyreheros-regular.otf)
media-fonts/tex-gyre-2.005 (/usr/share/fonts/tex-gyre/texgyreheros-regular.otf)

From /etc/fonts/conf.d/30-metric-aliases.conf
<!-- Map generics to specifics -->

        <!-- PostScript -->
        <alias binding="same">
          <family>Helvetica</family>
          <accept>
          <family>TeX Gyre Heros</family>
          </accept>
        </alias>
Comment 6 Serge Gavrilov 2017-11-04 21:48:31 UTC
Try to reconfigure fontconfig to substitute another font instead of Helvetica.
Comment 7 Martin von Gagern 2017-12-15 17:09:16 UTC
I don't know what changed in my config, but during today's world update, the sane-backends-1.0.27 package suddenly emerged successfully, without me taking any manual action. I see no difference to comment 5.
Comment 8 Pacho Ramos gentoo-dev 2018-04-02 11:59:20 UTC
closing as obsolete (this looks to me as a ghostscript bug anyway, for the case it reappears)