Red Hat Bugzilla – Bug 963882
pdfopt is missing
Last modified: 2015-04-22 06:11:49 EDT
Description of problem:
/usr/bin/pdfopt is missing from ghostscript in Fedora > 18.
The manpages referring to it are still being shipped:
# rpm -qlp ghostscript-9.07-2.fc19.x86_64.rpm | grep pdfopt
Version-Release number of selected component (if applicable):
The ghostscript package ships manpages without corresponding binaries.
Previous releases had contained /usr/bin/pdfopt
Either the manpages should not be shipped or the binary be added.
I don't know what is intended.
- Lack of pdfopt causes FTBFS of other packages.
Enhancements to the pdfwrite driver have made pdfopt redundant so it was removed upstream. They forgot to remove the manpages until after the 9.07 release.
Which packages are using pdfopt during build?
(In reply to comment #1)
> Enhancements to the pdfwrite driver have made pdfopt redundant so it was
> removed upstream. They forgot to remove the manpages until after the 9.07
I do not understand. How can a driver enhancement replace a script/program?
What are people, who have been using /usr/bin/pdfopt, supposed to use now?
> Which packages are using pdfopt during build?
I encountered this issue when investigating sdcc's FTBS
For now, in sdcc, I resorted to using
configure ... PDFOPT="/bin/cp"
which, as AFAICT, replaces running pdfopt in sdcc copying around files.
[Full story in sdcc's master in Fedora's git - I commited my sdcc changes and rebuilt sdcc just a couple of minutes ago]
Here's the explanation in the commit log:
Author: Ken Sharp <email@example.com>
Date: Fri Sep 28 14:34:27 2012 +0100
With the addition of linearisation to pdfwrite, pdfopt.ps has become
redundant. Since it is difficult to maintain, has a number of bugs, and is
believed not to work properly anyway, it is now deprecagted and hence
removed from the repository.
(In reply to comment #3)
> Here's the explanation in the commit log:
> commit 260ddb3e53ffe852a8994dd00719931ca3f2beec
> Author: Ken Sharp <firstname.lastname@example.org>
> Date: Fri Sep 28 14:34:27 2012 +0100
> With the addition of linearisation to pdfwrite, pdfopt.ps has become
> redundant. Since it is difficult to maintain, has a number of bugs, and
> believed not to work properly anyway, it is now deprecagted and hence
> removed from the repository.
OK, they are saying pdfopt is functionally not required anymore.
They missed they have broken the UI, without prior warning or deprecation notice.
ghostscript-9.07-10.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghostscript-9.07-10.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
ghostscript-9.07-10.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
I can't find pdfopt on fedora 21.
I have ghostscript-9.15-6.fc21.x86_64 already installed.
It was removed upstream - see comment #3.