[Bug 1913656] Re: Fix for Ghostscript 9.50 upstream bug needs to be back-ported
Dirk F
1913656 at bugs.launchpad.net
Fri Jan 29 10:31:29 UTC 2021
Example.
Start with GS 9.26 installed.
1 Install package ocrfeeder from the Graphics (universe) category (if
not already installed).
2 Run ocrfeeder (desktop menu item OCRFeeder).
3 Select a PDF file to use with File>Import PDF.
4 A pop-up dialog "Loading" appears; after it closes the images of the
pages from the PDF file are shown in the ocrfeeder application window.
One can then use the application UI to run OCR on the images or selected
areas from them.
Start again with GS 9.50 installed.
Repeat steps 1-3. At step 4, nothing happens.
Repeat but at 2 start ocrfeeder from a terminal window. At step 4 a
Ghostscript error exit 1 is reported.
The referenced bug (which owing to a long-standing bug in Launchpad has
been automatically linked to Launchpad, but is actually in GS's
Bugzilla) means that some ways of passing a filename argument from the
GS command line fail to give the said file read permission in the GS
interpreter.
ocrfeeder sensibly calls GS using "gs ... -- <filename>", which protects
against incorrect command-line parsing for a file called (eg) "--
startswithhyphens.pdf", but is also one of the bugged cases.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1913656
Title:
Fix for Ghostscript 9.50 upstream bug needs to be back-ported
Status in ghostscript package in Ubuntu:
New
Bug description:
Ghostscript 9.50 exhibits bug 701894 (fix the '--' and co options)
which causes (eg) ocrfeeder to fail to load PDF files: an input file
specified using the "... -- filename ..." command line syntax has no
read permission in the GS interpreter.
This commit fixes it:
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=24ec06a27df63297796a379c95ee5d4b39040410
GS 9.52 includes the commit.
Either apply the fix from the linked commit in the Focal-Updates
version, or upgrade it to 9.52.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1913656/+subscriptions
More information about the Ubuntu-sponsors
mailing list