Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557114 - dev-java/itext-5.5.4 with dev-java/bcprov-1.52:0 - package org.bouncycastle.ocsp does not exist
Summary: dev-java/itext-5.5.4 with dev-java/bcprov-1.52:0 - package org.bouncycastle.o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-09 10:49 UTC by Martin von Gagern
Modified: 2015-08-11 10:30 UTC (History)
0 users

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


Attachments
Changes to the ebuild (gentoo557114a.patch,554 bytes, patch)
2015-08-09 10:50 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2015-08-09 10:49:15 UTC
source/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java:186:
error: package org.bouncycastle.ocsp does not exist
    else if (status instanceof org.bouncycastle.ocsp.RevokedStatus) {

The ebuild depends on >=dev-java/bcprov-1.49:0 but the dev-java/bcprov-1.52:0 I've got installed doesn't contain that class any more. So I'd say that dependency should be on dev-java/bcprov:1.49 instead, and that slot should be used for the classpath as well.

Comparing the ebuild against the upstream pom.xml, I wonder whether we might be able to drop the dependency on bcmail. See
https://github.com/itext/itextpdf/blob/iText_5_5_4/pom.xml#L257-L289
for the upstream list of dependencies. Also note that the latest release is 5.5.6 so you might want to work on a revision bump.
Comment 1 Martin von Gagern 2015-08-09 10:50:25 UTC
Created attachment 408610 [details, diff]
Changes to the ebuild

These changes made the package emerge successfully for me.
Comment 2 Patrice Clement gentoo-dev 2015-08-11 10:30:05 UTC
I tried with version 1.49 and it didn't work. So I put together a patch to comment out this org.bouncycastle.ocsp warning (it's a simple if else throw Exception) and compilation is going through now.

commit ea03b145e75ff0ab44c9a8c526e64a41b2faf129
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Tue Aug 11 11:30:11 2015 +0000

    dev-java/itext: Adjust classpath and remove unexisting class with a patch. Fixes bug 557114.

    Package-Manager: portage-2.2.18
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>