Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546638 - dev-java/relaxngcc-1.12-r2 does not build with jdk-1.8
Summary: dev-java/relaxngcc-1.12-r2 does not build with jdk-1.8
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:
: 557378 (view as bug list)
Depends on:
Blocks: jdk8-tracker
  Show dependency tree
 
Reported: 2015-04-14 23:03 UTC by Dominik Diesch
Modified: 2015-08-13 00:26 UTC (History)
1 user (show)

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


Attachments
A patch to fix the ebuild (fix_java_1_8.patch,597 bytes, patch)
2015-04-14 23:05 UTC, Dominik Diesch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Diesch 2015-04-14 23:03:32 UTC
dev-java/relaxngcc-1.12-r2 does not build if the eselected system java-vm is a JDK 1.8. The reason is that 1.8 needs the jar containing the interface definition for org.iso_relax.verifier.VerifierHandler in its build path.

Reproducible: Always

Steps to Reproduce:
1. eselect java-vm set system oracle-jdk-bin-1.8
2. ebuild /usr/portage/dev-java/relaxngcc/relaxngcc-1.12-r2.ebuild clean install
Actual Results:  
   [javac] /var/tmp/portage/dev-java/relaxngcc-1.12-r2/work/relaxngcc-0031218/src/relaxngcc/runtime/NGCCTypedContentHandler.java:141: error: cannot access VerifierHandler
    [javac]     protected Locator getLocator() { return _ngcc_reader.getLocator(); }
    [javac]                                                         ^
    [javac]   class file for org.iso_relax.verifier.VerifierHandler not found
    [javac] 1 error



This can easily be fixed by adding the jar from iso-relax to the build path. A patch is provided as an attachment.
Comment 1 Dominik Diesch 2015-04-14 23:05:33 UTC
Created attachment 401274 [details, diff]
A patch to fix the ebuild
Comment 2 Toralf Förster gentoo-dev 2015-08-12 15:04:15 UTC
*** Bug 557316 has been marked as a duplicate of this bug. ***
Comment 3 Patrice Clement gentoo-dev 2015-08-12 15:23:34 UTC
Last release is .. 13 years old (!). I would prefer punting this package tbh but the dependency mish-mash it's in goes all the way to netbeans.
Comment 4 Toralf Förster gentoo-dev 2015-08-12 16:00:26 UTC
*** Bug 557378 has been marked as a duplicate of this bug. ***
Comment 5 Patrice Clement gentoo-dev 2015-08-13 00:26:29 UTC
| Author: Patrice Clement <monsieurp@gentoo.org>
| Date:   Thu Aug 13 01:26:28 2015 +0000
|
|     dev-java/relaxngcc: Add dev-java/iso-relax to classpath to get package to compile with JDK 1.8, courtesy of Dominik Diesch. Fixes bug 546638.
|
|     Package-Manager: portage-2.2.18
|     Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
|
|  create mode 100644 dev-java/relaxngcc/files/relaxngcc-1.12-SwitchBlockInfo.java.patch
|  create mode 100644 dev-java/relaxngcc/relaxngcc-1.12-r3.ebuild