Bug 20712 - !!! ERROR: dev-java/xerces-2.3.0 failed.
|
Bug#:
20712
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: blocker
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: absinthe@gentoo.org
|
Reported By: liviu.voicu@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: !!! ERROR: dev-java/xerces-2.3.0 failed.
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-05-09 12:03 0000
|
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
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.
Seems to be a duplicate of 17765, meaning the xerces code is not buggy and
needs no patch.
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?
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
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
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