Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 633834

Summary: app-office/libreoffice-5.4.0.3: configure error, ant says java.lang.NoSuchMethodError
Product: Gentoo Linux Reporter: OKUMURA N. Shin-ya <oku.ns>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED OBSOLETE    
Severity: normal CC: slawomir.nizio
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
config.log
emerge -v --info app-office/libreoffice
emerge -pqv app-office/libreoffice

Description OKUMURA N. Shin-ya 2017-10-09 12:18:57 UTC
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.
Comment 1 OKUMURA N. Shin-ya 2017-10-09 12:20:04 UTC
Created attachment 498200 [details]
build.log
Comment 2 OKUMURA N. Shin-ya 2017-10-09 12:20:27 UTC
Created attachment 498202 [details]
config.log
Comment 3 OKUMURA N. Shin-ya 2017-10-09 12:21:28 UTC
Created attachment 498204 [details]
emerge -v --info app-office/libreoffice
Comment 4 OKUMURA N. Shin-ya 2017-10-09 12:21:59 UTC
Created attachment 498206 [details]
emerge -pqv app-office/libreoffice
Comment 5 OKUMURA N. Shin-ya 2017-11-03 11:24:46 UTC
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
Comment 6 Andreas Sturmlechner gentoo-dev 2017-11-10 19:52:51 UTC
Were you able to reproduce that issue with 5.4.2.2?
Comment 7 OKUMURA N. Shin-ya 2017-11-11 04:16:09 UTC
I can reproduce  the issue with 5.4.2.2 with ant-core-1.9.2.
Are the equivalent logs needed?
Comment 8 OKUMURA N. Shin-ya 2017-11-11 04:36:17 UTC
As comment 5, it seems to be caused by ant-core.
Should I close it?
Comment 9 Sławomir Nizio 2018-02-11 22:22:11 UTC
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.
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2020-11-26 23:26:13 UTC
Most likely obsolete. Please open a new bug (and link to this one) if there is still a problem with current versions.