On Wed, Dec 14, 2011 at 01:34:54PM +0100, Dirk Müller wrote:
Hi,
Hallo Dirk,
after we have bootstrapped java-1_6_0-openjdk, now most of the stuff is blocked by "ant-junit" (subpackage of ant-antlr). That one fails to build due to running OOM during building javadocs.
I've quickly checked, and it seems building javadocs is not really necessary, as the tarball has already javadocs included. So we could skip that step,
Really? As tar -tf apache-ant-1.8.2-src.tar.bz2 did not show me anything like javadoc (excluding ant's task, which is really diferent thing).
which already helps. It seems the spec file had a %build_javadocs define that is not really functional anymore (ant distribution includes ant javadocs, which is run unconditional, so the spec file actually builds javadocs twice I think).
I see, the %build_javadoc macro is defined, but not used and target distribution covers jaavdoc build. I will fix that
The alternative solution, which seems to work as well and reduces build differences is this small patch:
--- build.xml +++ build.xml @@ -1358,7 +1358,7 @@ <target name="-javadocs.do" if="jdk1.5+" unless="javadoc.notrequired"> <mkdir dir="${build.javadocs}"/> <javadoc useexternalfile="yes" - maxmemory="1000M" + maxmemory="512M" destdir="${build.javadocs}" author="true" version="true"
which finishes building javadocs target successfully after a chewing for 160 minutes under qemu (53 minutes on native hardware).
Currently I went for this solution (patch is only applied on %arm), any comments, ideas appreciated. I guess it would help overall build speed by only building "ant jars " and maybe "ant test-jars" and not also javadocs?
I vote for exclude ant-javadoc (.*-javadoc (?) even that is not so easy) build at all on %arm. Reasons are * arm is now built in qemu using interpreted java, which is slow^2 than on other arches * we already have ant-javadoc built well on i586/x86_64 so this won't add us anything new * as there are no dependencies on javadoc packages, there won't be any problems with excluding Adrian, what would you say? As far I remember, you are not so happy with that approach. Regards Michal Vyskocil