Bug 1491191

Summary: ghostscript 9.20 (gs bug number 697846) causes pstoedit to fail, breaking textext in inkscape
Product: [Fedora] Fedora Reporter: Patrick Warren <patrickbwarren>
Component: ghostscriptAssignee: David Kaspar // Dee'Kej <deekej>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 26CC: deekej, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: ghostscript-9.22-1.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-15 17:48:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick Warren 2017-09-13 09:28:00 UTC
Description of problem: textext in inkscape fails due to bug 697846 in ghostscript 9.20 impacting pstoedit, resulting in 
"Error: /invalidaccess in --.execinstall--" 
(followed by a dump of stack variables etc etc).

Steps to Reproduce:
1. fire up inkscape, with the textext plugin
2. attempt to typeset, eg, $x$

Actual results: popup window appears with the above error message.

Expected results: control should return to inkscape, with typeset eqn

Additional info: 

This is a known bug in ghostscript (# 697846), which is fixed in the latest ghostscript release 9.21.  

A workaround (for me) was to download the 9.21 ghostscript executable from the Artifex Software Inc website, copy to /usr/bin, and symlink /bin/gs to it:
eg "ln -s /usr/bin/gs-921-linux-x86_64 /usr/bin/gs"

Likely fix is to bump the relevant Fedora package to wrap the 9.21 ghostscript release.

Comment 1 David Kaspar // Dee'Kej 2017-09-13 10:24:03 UTC
Hello Patrick,

thanks for the report. I'm currently waiting for upstream to release the 9.22 version that should be this month.

Currently, the ghotscript package is complete mess, and I'm already working on fixing that. If possible, I would like to see those changes being backported into F26 as well.

If you can, please use your workaround in the meantime, because my work might still take some time. I'm sorry for the inconvenience. :(

  -- Dee'Kej --

Comment 2 David Kaspar // Dee'Kej 2017-09-13 10:41:19 UTC
BTW: I just saw that ghostscript-9.22 is ready for testing:
https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs922rc1

I expect the 9.22 to be released officially soon. :)

Comment 3 Fedora Update System 2017-11-09 14:33:01 UTC
ghostscript-9.22-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c9b0c406b3

Comment 4 Fedora Update System 2017-11-09 19:56:04 UTC
ghostscript-9.22-1.fc27, poppler-data-0.4.8-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c9b0c406b3

Comment 5 Fedora Update System 2017-11-15 17:48:20 UTC
ghostscript-9.22-1.fc27, poppler-data-0.4.8-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.