FS#24083 - apache-ant missing dependency jdk

Attached to Project: Arch Linux
Opened by Sebastian Sauer (rudygotya) - Wednesday, 04 May 2011, 02:07 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 17 May 2011, 18:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

apache-ant relies on /opt/java/lib/tools.jar, provided by jdk.

Additional info:

apache-ant 1.8.2-1

pacman -Ql jdk | grep tools.jar prints
jdk /opt/java/lib/tools.jar


Steps to reproduce:

install apache-ant
remove jdk, if installed
run /usr/share/java/apache-ant/bin/ant build
you'll get the error:
"Unable to locate tools.jar. Expected to find it in /opt/java/lib/tools.jar"
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 17 May 2011, 18:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  apache-ant 1.8.2-2
Comment by Thomas Dziedzic (tomd123) - Wednesday, 04 May 2011, 04:21 GMT
apache-ant depends on java-runtime. This should depend on java-environment to depend on either jdk or openjdk6.

pkgfile -v tools.jar
community/jdk (6u25-1) : /opt/java/lib/tools.jar
extra/openjdk6 (6.b22_1.10.1-1) : /usr/lib/jvm/java-6-openjdk/lib/tools.jar

good catch!

Loading...