Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20712 - !!! ERROR: dev-java/xerces-2.3.0 failed.
Summary: !!! ERROR: dev-java/xerces-2.3.0 failed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Dylan Carlson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-09 12:03 UTC by Voicu Liviu
Modified: 2003-05-26 06:09 UTC (History)
0 users

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


Attachments
The edited ebuild. (xerces-2.3.0.ebuild,1.10 KB, text/plain)
2003-05-09 12:05 UTC, Voicu Liviu
Details
ingore it please, is duplicate of first patch (HTMLFrameElementImpl.patch,463 bytes, patch)
2003-05-09 12:06 UTC, Voicu Liviu
Details | Diff
First patch (HTMLFrameElementImpl.patch,463 bytes, patch)
2003-05-09 12:06 UTC, Voicu Liviu
Details | Diff
Second patch (HTMLIFrameElementImpl.patch,469 bytes, patch)
2003-05-09 12:08 UTC, Voicu Liviu
Details | Diff
Third patch (HTMLObjectElementImpl.patch,486 bytes, patch)
2003-05-09 12:09 UTC, Voicu Liviu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Voicu Liviu 2003-05-09 12:03:16 UTC
The error is:
=============

[xjavac] /var/tmp/portage/xerces-2.3.0/work/xerces-2_3_0/build/src/org/apache/html/dom/HTMLIFrameElementImp
l.java:70: org.apache.html.dom.HTMLIFrameElementImpl should be declared abstract; it does not define getConten
tDocument() in org.apache.html.dom.HTMLIFrameElementImpl
   [xjavac] public class HTMLIFrameElementImpl
   [xjavac]        ^
   [xjavac] /var/tmp/portage/xerces-2.3.0/work/xerces-2_3_0/build/src/org/apache/html/dom/HTMLObjectElementImp
l.java:70: org.apache.html.dom.HTMLObjectElementImpl should be declared abstract; it does not define getConten
tDocument() in org.apache.html.dom.HTMLObjectElementImpl
   [xjavac] public class HTMLObjectElementImpl
   [xjavac]        ^
   [xjavac] /var/tmp/portage/xerces-2.3.0/work/xerces-2_3_0/build/src/org/apache/html/dom/HTMLFrameElementImpl
.java:70: org.apache.html.dom.HTMLFrameElementImpl should be declared abstract; it does not define getContentD
ocument() in org.apache.html.dom.HTMLFrameElementImpl
   [xjavac] public class HTMLFrameElementImpl
   [xjavac]        ^
   [xjavac] Note: Some input files use or override a deprecated API.
   [xjavac] Note: Recompile with -deprecation for details.
   [xjavac] 3 errors

BUILD FAILED


How to fix?
===========
I did 3 patches plus I have edited the ebuild of it.
Is possible to grab them from:
http://132.64.182.216/~pacman/gentoo/dev-java/xerces-2.3.0/xerces-2.3.0.ebuild
http://132.64.182.216/~pacman/gentoo/dev-java/xerces-2.3.0/HTMLFrameElementImpl.patch
http://132.64.182.216/~pacman/gentoo/dev-java/xerces-2.3.0/HTMLIFrameElementImpl.patch
http://132.64.182.216/~pacman/gentoo/dev-java/xerces-2.3.0/HTMLObjectElementImpl.patch

the patches need to be under "files" dir like this:
starshooter files # pwd
/usr/portage/dev-java/xerces/files
starshooter files # ls *.patch
HTMLFrameElementImpl.patch  HTMLIFrameElementImpl.patch  HTMLObjectElementImpl.patch
Comment 1 Voicu Liviu 2003-05-09 12:05:08 UTC
Created attachment 11726 [details]
The edited ebuild.
Comment 2 Voicu Liviu 2003-05-09 12:06:25 UTC
Created attachment 11727 [details, diff]
ingore it please, is duplicate of first patch
Comment 3 Voicu Liviu 2003-05-09 12:06:41 UTC
Created attachment 11728 [details, diff]
First patch
Comment 4 Voicu Liviu 2003-05-09 12:08:28 UTC
Created attachment 11729 [details, diff]
Second patch
Comment 5 Voicu Liviu 2003-05-09 12:09:04 UTC
Created attachment 11730 [details, diff]
Third patch
Comment 6 Voicu Liviu 2003-05-09 13:28:39 UTC
Comment on attachment 11727 [details, diff]
ingore it please, is duplicate of first patch

ingore it please, is duplicate of first patch
Comment 7 sf 2003-05-26 01:08:07 UTC
Is this change of API allowed? Is this a confirmed xerces bug? A quick search on  the apache bugzilla yielded nothing, so could you please give the relevant bug number or a link to a mailing list thread.
Comment 8 sf 2003-05-26 01:12:20 UTC
Seems to be a duplicate of 17765, meaning the xerces code is not buggy and needs no patch.
Comment 9 Voicu Liviu 2003-05-26 01:40:49 UTC
Of course it is a bug!
if you knew java you could understand the error ( I hope you don't get offended and maybe you do know java ) These classes should be declared ABSTRACT because the instances of these classes are used in an ABSTRACT way......................

[xjavac] /var/tmp/portage/xerces-2.3.0/work/xerces-2_3_0/build/src/org/apache/html/dom/HTMLObjectElementImp
l.java:70: org.apache.html.dom.HTMLObjectElementImpl should be declared abstract;
it does not define getConten

[xjavac] /var/tmp/portage/xerces-2.3.0/work/xerces-2_3_0/build/src/org/apache/html/dom/HTMLFrameElementImpl
.java:70: org.apache.html.dom.HTMLFrameElementImpl should be declared abstract; it
does not define getContentD


See?
Comment 10 Voicu Liviu 2003-05-26 01:43:28 UTC
Ok, I have read the bug number you gave me so why not use these patches for blackdown?
Anyway, to be correct java code patches must be applyed.
Is possible to attach these comments to bug 17765? I want to know the oppinion of the other people.
Regards
Comment 11 Dylan Carlson (RETIRED) gentoo-dev 2003-05-26 05:37:00 UTC
At first, I wasn't comfortable with the idea of patching Xerces because of a Blackdown compile program.  However I have reviewed Voicu Liviu's patchset and have tested Xerces across Blackdown, and the things that depend on Xerces at runtime (including my own applications) ... and all appears to be sane.  

My thanks to Voicu for submitting this fix.  

xerces-2.3.0-r1 is in the tree. Cheers
Comment 12 Voicu Liviu 2003-05-26 06:09:43 UTC
Great :-)
Right now there are one more package which does not compile with blackdown and I'm still hunting it,....anyway, if java team of gentoo need help and has place for one more gentoo developer I'll be hapy to assist it.

Regards,
Voicu Liviu