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
Description:   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

------- Comment #1 From Voicu Liviu 2003-05-09 12:05:08 0000 -------
Created an attachment (id=11726) [details]
The edited ebuild.

------- Comment #2 From Voicu Liviu 2003-05-09 12:06:25 0000 -------
Created an attachment (id=11727) [details]
First patch

------- Comment #3 From Voicu Liviu 2003-05-09 12:06:41 0000 -------
Created an attachment (id=11728) [details]
First patch

------- Comment #4 From Voicu Liviu 2003-05-09 12:08:28 0000 -------
Created an attachment (id=11729) [details]
Second patch

------- Comment #5 From Voicu Liviu 2003-05-09 12:09:04 0000 -------
Created an attachment (id=11730) [details]
Third patch

------- Comment #6 From Voicu Liviu 2003-05-09 13:28:39 0000 -------
(From update of attachment 11727 [details])
ingore it please, is duplicate of first patch

------- Comment #7 From sf 2003-05-26 01:08:07 0000 -------
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 From sf 2003-05-26 01:12:20 0000 -------
Seems to be a duplicate of 17765, meaning the xerces code is not buggy and
needs no patch.

------- Comment #9 From Voicu Liviu 2003-05-26 01:40:49 0000 -------
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 From Voicu Liviu 2003-05-26 01:43:28 0000 -------
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 From Dylan Carlson (RETIRED) 2003-05-26 05:37:00 0000 -------
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 From Voicu Liviu 2003-05-26 06:09:43 0000 -------
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