Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
2 Problems: a) 'emerge ant' prints errors in the compile stage, but happily continues and merges the broken ant to the live filesystem b) The ant sources up to and including 1.5.3 cannot be compiled with the new sun-jdk-1.4.2, as there have been incompatible changes in at least one internal class. Ant's build.sh causes a) by exiting with status 0 in spite of errors. The ebuild calls "build.sh || die", so emerge goes on installing. Problem b) is solved in the ant sources from CVS. I will add patches solving both issues for ant-1.5.3 soon. Reproducible: Always Steps to Reproduce: 1. get the ebuild and related files from PR 23701 2. emerge sun-jdk-1.4.2 ant set it as system-vm 3. emerge ant Actual Results: The ant build-script complains about 2 errors and finally says | ... Failed Building Ant Distribution ! | Bootstrap FAILED emerge goes on: | >>> dev-java/ant-1.5.3-r4 merged. The installed ant ist totally broken: $ ant Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main Expected Results: The emerge should not continue with install/qmerge but fail.
Created an attachment (id=14126) [edit] proposal for ant-1.5.3-r5.ebuild
Created an attachment (id=14127) [edit] files/build.sh-exit-fix.patch.gz Fix for problem a)
Created an attachment (id=14129) [edit] files/1.5.3/javah-backport-for-sun-jdk142.patch.gz Backport from ant CVS sources. Patched ant-1.5.3 sources will compile with all JDKs including sun-jdk-1.4.2.
Created an attachment (id=14130) [edit] files/build.sh-exit-fix.patch.gz
i will check these patches and if they work ok. then i can movo to testing sun-jdk-1.4.2 and ant 1.5.3 with the patches.
Checked those files, and worked like a charm. I tested the most important features of ant, build it with any jdk, and it worked very well. So putting it on testing.