Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351394 - related to bug #123168: dev-java/xerces-2.9.1 fails to emerge b/c of missing xjavac ant taskdef despite the presence of xjavac-20041208-r5
Summary: related to bug #123168: dev-java/xerces-2.9.1 fails to emerge b/c of missing ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 21:24 UTC by michael dye
Modified: 2012-05-26 11:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michael dye 2011-01-11 21:24:11 UTC
Steps to reproduce:
With dev-java/xjavac-20041208-r5 emerged:
# emerge dev-java/xerces-2.9.1

Error message:
/var/tmp/portage/dev-java/xerces-2.9.1/work/xerces-2_9_1/build.xml:14: taskdef class org.apache.xerces.util.XJavac cannot be found

The jar containing the appropriate taskdef is "/usr/share/xjavac-1/lib/xjavac.jar"; modifying xerces' build.xml, ln. 16, "<pathelement location="${tools.dir}/bin/xjavac.jar" ></pathelement>" fixes the build.

Note that xjavac is missing from the ebuild environment variable "EANT_GENTOO_CLASSPATH".
Comment 1 Miroslav Šulc gentoo-dev 2011-01-18 18:14:06 UTC
works fine here with icedtea6. what jdk are you using to build xerces? also, did you try to re-emerge xjavac? and what arch are you on?
Comment 2 michael dye 2011-01-19 06:07:08 UTC
I apologize that my bug report wasn't particularly thorough.

I am using amd64, and I did try re-emerging xjavac and the problem persisted.  I am using Sun JDK 1.6.0.22 [sun-jdk-1.6] (java-config -L confirms that it's selected)
Comment 3 Miroslav Šulc gentoo-dev 2011-01-19 12:47:15 UTC
i still cannot reproduce the issue. tested on ~amd64 with sun-jdk-1.6.0.23 and ant 1.8.1.

xjavac ant task should be pulled on path by ant so modifying build.xml is not fix but rather workaround.

what version of ant do you have?
Comment 4 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-26 11:42:55 UTC
(In reply to comment #0)
> Steps to reproduce:
> With dev-java/xjavac-20041208-r5 emerged:
> # emerge dev-java/xerces-2.9.1
> 
> Error message:
> /var/tmp/portage/dev-java/xerces-2.9.1/work/xerces-2_9_1/build.xml:14:
> taskdef class org.apache.xerces.util.XJavac cannot be found
> 
> The jar containing the appropriate taskdef is
> "/usr/share/xjavac-1/lib/xjavac.jar"; modifying xerces' build.xml, ln. 16,
> "<pathelement location="${tools.dir}/bin/xjavac.jar" ></pathelement>" fixes
> the build.
> 
> Note that xjavac is missing from the ebuild environment variable
> "EANT_GENTOO_CLASSPATH".

xjavac doesn't belong into EANT_GENTOO_CLASSPATH and this all should work as is.
I faintly remember old taskdef task not liking non-existent jars, so I'm not sure about it. Either way, changed the taskdef to no reference a jar at all.

*xerces-2.11.0 (26 May 2012)

  26 May 2012; Ralph Sennhauser <sera@gentoo.org> +xerces-2.11.0.ebuild,
  +files/xerces-2.11.0-build.xml.patch:
  Security bump. #280611
  Don't let taskdef point to non-existent jar. #351394