emerge =app-office/libreoffice-5.4.0.3 fails as follows; checking if /usr/bin/ant works... configure: error: Ant does not work - Some Java projects will not build! Reproducible: Always Steps to Reproduce: 1. USE=java emerge =app-office/libreoffice-5.4.0.3 Actual Results: emerge fails with "checking if /usr/bin/ant works... configure: error: Ant does not work - Some Java projects will not build!". build.log (I will attach it soon) says so also. config.log (too) says as follows; configure:38367: /usr/bin/ant -buildfile conftest.xml 1>&2 Buildfile: /var/tmp/portage/app-office/libreoffice-5.4.0.3/work/libreoffice-5.4. 0.3/conftest.xml java.lang.NoSuchMethodError: org.apache.tools.ant.Project.setCoreLoader(Ljava/lang/ClassLoader;)V at org.apache.tools.ant.Main.runBuild(Main.java:765) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) org.apache.tools.ant.Project.setCoreLoader(Ljava/lang/ClassLoader;)V Expected Results: finished successfully. ;-p It is similar to #623240 but not seems the same one. In addition, to re-emerge dev-java/java-config didn't work for me.
Created attachment 498200 [details] build.log
Created attachment 498202 [details] config.log
Created attachment 498204 [details] emerge -v --info app-office/libreoffice
Created attachment 498206 [details] emerge -pqv app-office/libreoffice
This issue seems to be caused by dev-java/ant-core-1.9.2 of my environment. my ant bypassed the error with following workaround; $ LOCALCLASSPATH=/usr/share/ant-core/lib/ant.jar emerge app-office/libreoffice
Were you able to reproduce that issue with 5.4.2.2?
I can reproduce the issue with 5.4.2.2 with ant-core-1.9.2. Are the equivalent logs needed?
As comment 5, it seems to be caused by ant-core. Should I close it?
I can confirm the problem and the workaround (thanks!) with app-office/libreoffice-6.0.1.1 and dev-java/ant-core-1.9.2.
Most likely obsolete. Please open a new bug (and link to this one) if there is still a problem with current versions.