Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188192 - dev-java/xstream-1.2 ebuild fails on documentation installation
Summary: dev-java/xstream-1.2 ebuild fails on documentation installation
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:
: 204648 (view as bug list)
Depends on:
Blocks: 197861
  Show dependency tree
 
Reported: 2007-08-09 00:18 UTC by Alistair Bush (RETIRED)
Modified: 2008-01-08 07:02 UTC (History)
1 user (show)

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 Alistair Bush (RETIRED) gentoo-dev 2007-08-09 00:18:59 UTC
Just found this on the forums 
https://forums.gentoo.org/viewtopic-t-574860.html

but basically there is an error in the src_install when attempting to install html documentation.  I would suggest someone add 'do' somewhere on line 78. (i wont take all the fun away from you)


Anyway, the relevant section of error:

BUILD SUCCESSFUL
Total time: 4 seconds
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/xstream-1.2

>>> Install xstream-1.2 into /home/portagetmp/portage/dev-java/xstream-1.2/image/ category dev-java
/usr/portage/dev-java/xstream/xstream-1.2.ebuild: line 78: html: command not found

!!! ERROR: dev-java/xstream-1.2 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_install
  ebuild.sh, line 1077:   Called qa_call 'src_install'
  ebuild.sh, line 44:   Called src_install
  xstream-1.2.ebuild, line 78:   Called die 

and the Offending function

src_install() {
	java-pkg_newjar ${P}.jar

	if use doc; then
		html *.html || die
		java-pkg_dohtml -r docs/
	fi
	use source && java-pkg_dosrc src/java/com
}
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-08-09 00:53:53 UTC
Well in the current shape the javadocs don't build either:
  [javadoc] /var/tmp/portage/dev-java/xstream-1.2/work/xstream-1.2/src/java/com/thoughtworks/xstream/annotations/Annotations.java:25: <identifier> expected
  [javadoc]     private static final Set<Class<?>> configuredTypes = new HashSet<Class<?>>();
  [javadoc]                             ^

Seems the javadoc target should be done with 1.5.
Comment 2 Alistair Bush (RETIRED) gentoo-dev 2008-01-08 06:20:30 UTC
*** Bug 204648 has been marked as a duplicate of this bug. ***
Comment 3 Alistair Bush (RETIRED) gentoo-dev 2008-01-08 06:22:00 UTC
Markus Meier <maekke@gentoo.org> says:

>>> Install xstream-1.2-r1 into /var/tmp/portage/dev-java/xstream-1.2-r1/image/ category dev-java
 * No index.html in javadoc directory
find: `/var/tmp/portage/dev-java/xstream-1.2-r1/image//usr/share/doc/': No such
file or directory
>>> Completed installing xstream-1.2-r1 into /var/tmp/portage/dev-java/xstream-1.2-r1/image/

# qlist xstream-1.2-r1
/usr/share/xstream/lib/xstream.jar
/usr/share/xstream/package.env
/usr/share/xstream/sources/xstream-src.zip
/usr/share/xstream/api

api is a dead symlink to /usr/share/doc/xstream-1.2-r1/html/api

Which is just a symptom of what Betegeuse says above :)
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2008-01-08 07:02:20 UTC
Added patch for build.xml which fixes generating build.xml using jdk-1.4.