Ant Dependency on OpenJDK-6-jre

Bug #303348 reported by Thangalin
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ant (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ant

Hi,

The ant should not have a tight dependency on openjdk-6-jre.

If Java is already installed (e.g., Sun's Java Development Kit), there is no reason to install the openjdk-6-jre when ant is installed.

Otherwise two Java Virtual Machines will be installed on the same machine, which is redundant in many ways.

Please remove the tight dependency. Instead, if no version of Java can be found on the machine, then install OpenJDK. Otherwise, don't.

Revision history for this message
David Allouche (ddaa) wrote :

ant 1.7.1-0ubuntu1 has a "recommend" dependency on "default-jdk | java-compiler | java-sdk".

With the new policy in 8.10 of installing recommends by default, that might cause the installation of openjdk-6-jre even when another JRE is already installed. Or maybe the previously installed jre package did not provide "java-sdk".

Which JRE package did you have installed before installing ant?

Changed in ant:
status: New → Incomplete
Revision history for this message
Thangalin (thangalin-deactivatedaccount) wrote :

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
sun-java6-jdk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Not exclusively the JRE, however you are no doubt aware that the JRE is contained by the JDK.

Revision history for this message
Victor Vargas (kamus) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in ant (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Aaron (dartme) wrote :

I'm not sure why the filer of this bug let it die, but I have a great interest in seeing this addressed:

lawsa@ubuntu:~/java/repo/kfs502$ sudo apt-get install --no-install-recommends ant
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  ca-certificates-java default-jre-headless openjdk-6-jre-headless
  openjdk-6-jre-lib
Suggested packages:
  default-jdk java-compiler java-sdk ant-gcj ant-doc default-jre
  sun-java6-fonts fonts-ipafont-gothic fonts-ipafont-mincho ttf-telugu-fonts
  ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
Recommended packages:
  ant-optional icedtea-6-jre-cacao icedtea-6-jre-jamvm
The following NEW packages will be installed:
  ant ca-certificates-java default-jre-headless openjdk-6-jre-headless
  openjdk-6-jre-lib
0 upgraded, 5 newly installed, 0 to remove and 27 not upgraded.
Need to get 1,845 kB/33.4 MB of archives.
After this operation, 87.1 MB of additional disk space will be used.
Do you want to continue [Y/n]?

I already have a jdk installed and configured (although not with dpkg or using apt-get). I would like to install ant without installing a jdk. (Hopefully this isn't too far from the OP's original intent.) Let me know if I can provide anything else.

Changed in ant (Ubuntu):
status: Invalid → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ant (Ubuntu):
status: New → Confirmed
Revision history for this message
Emmanuel Bourg (ebourg) wrote :

ant depends on default-jre-headless | java{5,6,7}-runtime-headless and pulls the default version of Java if none is available.

Changed in ant (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.