Bug 1413340 - fop doesn't include fontbox on classpath
Summary: fop doesn't include fontbox on classpath
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: fop
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-15 05:32 UTC by Brad Ackerman
Modified: 2017-09-30 06:24 UTC (History)
7 users (show)

Fixed In Version: 2.0-7
Clone Of:
Environment:
Last Closed: 2017-09-25 15:50:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed update for /usr/bin/fop (713 bytes, text/plain)
2017-09-11 22:36 UTC, Steve Bonneville
no flags Details

Description Brad Ackerman 2017-01-15 05:32:37 UTC
Description of problem:

fop requires fontbox for OpenType CFF fonts; fontbox is a dependency of the rpm, but is not used by the /usr/bin/fop script.

Version-Release number of selected component (if applicable):
2.0-3.fc24 (yes, this is from the FC25 repo)

How reproducible:


Steps to Reproduce:
1. Use fop to process an FO file that uses an .otf font (e.g. Junction from tlomt-junction-fonts).

Actual results:

An error is displayed stating "The Fontbox jar was not found in the classpath. This is required for OTF CFF ssupport"

Expected results:

The FO is successfully converted to PDF without errors.

Additional info:

fontbox is missing from the set_classpath call at ll 28-30 of fop.script.

Comment 1 Steve Bonneville 2017-09-11 22:30:15 UTC
This also affects Fedora 26.  It's a one word change to add "fontbox" to the set_classpath directive in the /usr/bin/fop script.  Since the Overpass font is now packaged in the overpass-fonts RPM in OTF format, this actually impacts rendering any FO file to PDF that uses Red Hat's corporate font standard....

Any chance we can escalate the priority of this fix?

Also note that this can be tricky to diagnose if you have an existing ~/.fop cache present from previous runs under other versions of fop that may have fontbox enabled....

Comment 2 Steve Bonneville 2017-09-11 22:36:25 UTC
Created attachment 1324606 [details]
Proposed update for /usr/bin/fop

Attaching fop script with an edited set_classpath call.

Comment 3 Mikolaj Izdebski 2017-09-12 06:22:35 UTC
Fixed in fop-2.0-7

Comment 4 Fedora Update System 2017-09-12 07:17:13 UTC
fop-2.0-7.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-902fac0b2d

Comment 5 Fedora Update System 2017-09-12 07:17:33 UTC
fop-2.0-7.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-679a8016f0

Comment 6 Fedora Update System 2017-09-12 19:56:35 UTC
fop-2.0-7.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-679a8016f0

Comment 7 Fedora Update System 2017-09-13 06:20:35 UTC
fop-2.0-7.fc26 has been pushed to the Fedora 26 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-902fac0b2d

Comment 8 Fedora Update System 2017-09-21 23:53:03 UTC
fop-2.0-7.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Mikolaj Izdebski 2017-09-25 15:50:12 UTC
I believe that this bug is fixed in fop-2.0-7,
which is available in updates for Fedora 26, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=969290

This bug was fixed in the next release of Fedora, and it is currently
not planned to be fixed in the release it was filed against.
You can update to the newer release of Fedora to get the fix.

Comment 10 Fedora Update System 2017-09-30 06:24:33 UTC
fop-2.0-7.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.