Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245006 - dev-java/cocoon-2.1.11 fails to build with the 'doc' USE flag
Summary: dev-java/cocoon-2.1.11 fails to build with the 'doc' USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 21:40 UTC by Quetzaly Solano Gómez
Modified: 2008-12-01 21:49 UTC (History)
0 users

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


Attachments
Proposed patch to fix build errors (cocoon-2.1.11.ebuild.patch,565 bytes, patch)
2008-10-30 21:44 UTC, Quetzaly Solano Gómez
Details | Diff
Updated patch to fix API installation path (cocoon-2.1.11.ebuild.patch,628 bytes, patch)
2008-10-31 02:56 UTC, Quetzaly Solano Gómez
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Quetzaly Solano Gómez 2008-10-30 21:40:13 UTC
When trying to install, cocoon-2.1.11 with the 'doc' USE flag, it fails with the message 'build/webapp/api does not exist, or isn't a directory!'.

At first, since the Ant build task died with an OutOfMemory error, I thought perhaps that was the root cause.  However, modifying the build process to raise the maximum memory failed to fix the problem (though the documentation now was successfully built).

It turns out the ebuild is looking for the documentation in 'build/webapp/api' when it is actually put into 'build/cocoon/javadocs'.  I will attach a patch to the ebuild that should address both of these issues.
Comment 1 Quetzaly Solano Gómez 2008-10-30 21:44:08 UTC
Created attachment 170355 [details, diff]
Proposed patch to fix build errors

This patch makes two changes:

1. Changes the XML file used as a template when building the Javadoc documentation to allow Javadoc to use 384m of memory instead of 192m.  I had tried 256m, but that was still too small.

2. Change the directory for the dojavadoc command.
Comment 2 Quetzaly Solano Gómez 2008-10-31 02:56:14 UTC
Created attachment 170374 [details, diff]
Updated patch to fix API installation path

Incidentally, the ordering of the various statements in the src_install() function was causing the API documentation to be installed in the 'legal' directory instead of 'html'.  I have reordered the statements to avoid this.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-12-01 21:49:51 UTC
(In reply to comment #2)
> Created an attachment (id=170374) [edit]
> Updated patch to fix API installation path
> 
> Incidentally, the ordering of the various statements in the src_install()
> function was causing the API documentation to be installed in the 'legal'
> directory instead of 'html'.  I have reordered the statements to avoid this.
> 

Thanks. Patch applied. Sorry about the delay.