Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207370 - ant-core-1.7.0 will not compile with only java 1.6.0
Summary: ant-core-1.7.0 will not compile with only java 1.6.0
Status: RESOLVED DUPLICATE of bug 165330
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-25 11:35 UTC by [undisclosed]
Modified: 2008-01-25 12:51 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description [undisclosed] 2008-01-25 11:35:12 UTC
ant-core-1.7.0 seems to be dependent on java 1.4. This should either be explicitly set in the ebuild or the installation code which makes this so removed.

Reproducible: Always

Steps to Reproduce:
1. remove all versions of java available
2. install dev-java/sun-jdk-1.6.0.03 (probably any version > 1.4.0
3. try to install ant-core-1.7.0

Actual Results:  
toad distfiles # emerge -va1 =ant-core-1.7.0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/ant-core-1.7.0  USE="doc -source" 0 kB 

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-java/ant-core-1.7.0 to /
 * ant-1.7.0-gentoo.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                           [ ok ]
 * apache-ant-1.7.0-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                       [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking apache-ant-1.7.0-src.tar.bz2 ;-) ...                                                                                                      [ ok ]
 * checking ant-1.7.0-gentoo.tar.bz2 ;-) ...                                                                                                          [ ok ]
 * Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking apache-ant-1.7.0-src.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.7.0/work
>>> Unpacking ant-1.7.0-gentoo.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.7.0/work
removed `lib/xercesImpl.jar'
removed `lib/xml-apis.jar'
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-java/ant-core-1.7.0/work/apache-ant-1.7.0 ...
... Bootstrapping Ant Distribution
... Compiling Ant Classes
/opt/sun-jdk-1.6.0.03/bin/javac: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
... Failed compiling Ant classes !
Bootstrap FAILED
 * 
 * ERROR: dev-java/ant-core-1.7.0 failed.
 * Call stack:
 *               ebuild.sh, line 1701:  Called dyn_compile
 *               ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *               ebuild.sh, line   44:  Called src_compile
 *   ant-core-1.7.0.ebuild, line   60:  Called die
 * The specific snippet of code:
 *   	./build.sh ${bsyscp} jars-core $(use_doc javadocs) \
 *   		|| die "build failed"
 *  The die message:
 *   build failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.7.0/temp/build.log'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

 * Messages for package dev-java/ant-core-1.7.0:

 * 
 * ERROR: dev-java/ant-core-1.7.0 failed.
 * Call stack:
 *               ebuild.sh, line 1701:  Called dyn_compile
 *               ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *               ebuild.sh, line   44:  Called src_compile
 *   ant-core-1.7.0.ebuild, line   60:  Called die
 * The specific snippet of code:
 *   	./build.sh ${bsyscp} jars-core $(use_doc javadocs) \
 *   		|| die "build failed"
 *  The die message:
 *   build failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.7.0/temp/build.log'.
 * 


Expected Results:  
It seems that ant-1.7.0, or at least as installed by the ebuild, is dependent on java-1.4.2. This should either be explicitly set in the ebuild dependencies, or the code which makes it dependent on java-1.4.2 should be removed.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2008-01-25 12:51:28 UTC

*** This bug has been marked as a duplicate of bug 165330 ***