Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97722 - iso-relax-20041111 fails to build
Summary: iso-relax-20041111 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL: http://iso-relax.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks: 63246
  Show dependency tree
 
Reported: 2005-07-02 07:52 UTC by Krzysztof Pawlik (RETIRED)
Modified: 2006-01-17 23:16 UTC (History)
3 users (show)

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


Attachments
iso-relax-20041111-r1.ebuild (iso-relax-20041111-r1.ebuild,1.08 KB, text/plain)
2005-07-02 07:53 UTC, Krzysztof Pawlik (RETIRED)
Details
files/isorelax-20041111-src.diff (isorelax-20041111-src.diff,628 bytes, patch)
2005-07-02 07:53 UTC, Krzysztof Pawlik (RETIRED)
Details | Diff
files/isorelax-20041111-src.diff (isorelax-20041111-src.diff,1.33 KB, patch)
2005-07-02 11:55 UTC, Krzysztof Pawlik (RETIRED)
Details | Diff
files/isorelax-20041111-src.diff relaying (java5.patch,879 bytes, patch)
2005-09-12 14:31 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Pawlik (RETIRED) gentoo-dev 2005-07-02 07:52:11 UTC
Attached is ebuild for iso-relax-20041111-r1 (required by Resin 3.0.13 source ebuild) and a patch for iso-relax.

javac error:

release:
    [mkdir] Created dir: /home/nelchael/tmp/jaba/temp
    [javac] Compiling 44 source files to /home/nelchael/tmp/jaba/temp
    [javac] /home/nelchael/tmp/jaba/src/org/iso_relax/jaxp/ValidatingDocumentBuilderFactory.java:15: org.iso_relax.jaxp.ValidatingDocumentBuilderFactory is not abstract and does not override abstract method getFeature(java.lang.String) in javax.xml.parsers.DocumentBuilderFactory
    [javac] public class ValidatingDocumentBuilderFactory extends DocumentBuilderFactory
    [javac]        ^
    [javac] Note: * uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-07-02 07:53:17 UTC
Created attachment 62477 [details]
iso-relax-20041111-r1.ebuild

Ebuild with epatch.
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-07-02 07:53:41 UTC
Created attachment 62478 [details, diff]
files/isorelax-20041111-src.diff

Patch for iso-relax.
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-07-02 11:55:27 UTC
Created attachment 62490 [details, diff]
files/isorelax-20041111-src.diff

Backported from iso-relax CVS to fix compilation on 1.5
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-07-03 02:19:24 UTC
I've tested this patch with Sun's JDK 1.4.2_08 - it works ok.
Comment 5 Francisco José Cañizares Santofimia 2005-07-09 03:45:12 UTC
I agree for the ebuild and patch provided here. They solved my problem. Please,
add this to portage, thanks :-)
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2005-07-09 05:25:06 UTC
i don't agree, especialy since it doesn't seem too be the only changes upstream 
made too 'fix' it
Comment 7 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-07-11 13:16:47 UTC
(In reply to comment #6)
> i don't agree, especialy since it doesn't seem too be the only changes upstream 
> made too 'fix' it

There are two solutions:
 1. commit as isorelax-20041111-r1 with above patch
 2. roll a new release from CVS

Preferred?
Comment 8 Francisco José Cañizares Santofimia 2005-08-11 15:34:47 UTC
Latest iso-relax ebuild in portage solved the problems for me. 
Could you check this and, if aproppriate, close this bug?
Thanks.
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2005-08-11 22:40:23 UTC
(In reply to comment #8)
> Latest iso-relax ebuild in portage solved the problems for me. 
> Could you check this and, if aproppriate, close this bug?
> Thanks.

The ebuild has not been changed in over a month. It does not seem to compile
here.  Are you sure that you haven't recently updated your 1.4 jdk and with that
switched your system vm? This problem should be solved after we move the new
java 1.5 stuff the the official tree. I don't yet have accurate information on
when that will happen.
Comment 10 Francisco José Cañizares Santofimia 2005-08-12 13:28:49 UTC
I'm currently using sun-jdk-1.4.2.08-r1 updated a week ago in gentoo ~x86.
I'm not sure if this package (or others) could affected this.
Comment 11 Christian Ashby 2005-08-13 03:28:12 UTC
Problem still present

The build works with blackdown-jdk-1.4.2.02, causes the messages above with
sun-jdk-1.5.0.04
Comment 12 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 10:52:46 UTC
We will force it too compile with 1.4 untill they make a new release that 
supports 1.5

Comment 13 Martin von Gagern 2005-09-12 14:31:32 UTC
Created attachment 68294 [details, diff]
files/isorelax-20041111-src.diff relaying

OK, I should read bugs first and try solutions later. ;-)

The solution mentioned in attachment #62490 [details, diff] from comment #3 has the benefit
that it would compile with older versions as well. But as I read the API docu,
there is at least one feature where no exception may be thrown, namely
FEATURE_SECURE_PROCESSING. So in my opinion the cleaner solution would be to
relay those methods to the wrapped object, as in my patch. Downside is that
this can only compile using java5.

I proposed this upstream as well, unfortunately without having a look at the
CVS first, where the throwing solution is still used.
Comment 14 Josh Nichols (RETIRED) gentoo-dev 2006-01-17 23:14:07 UTC
Re-opening.
Comment 15 Josh Nichols (RETIRED) gentoo-dev 2006-01-17 23:16:10 UTC
Fixed with version 20050331.