openjdk-7-jre depends on openjdk-6-jre

Bug #881218 reported by Tamal
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
ca-certificates-java (Ubuntu)
Fix Released
High
Unassigned
java-access-bridge (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

There is a circular dependency between openjdk-7-jre and openjdk-6-jre. As a result if I install openjdk-7-jdk, openjdk-6-jre is installed and if I remove openjdk-6-jre, openjdk-7-jdk is also removed.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: openjdk-7-jre 7~b147-2.0~pre6-1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Tue Oct 25 09:18:52 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 LANGUAGE=en_IN:en
 PATH=(custom, no user)
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: openjdk-7
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tamal (tamal-nath) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

ca-certificates-java needs an update

affects: openjdk-7 (Ubuntu) → ca-certificates-java (Ubuntu)
Changed in ca-certificates-java (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Adding java-access-bridge because it's another cause of this dependency, see bug #884626 for details.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in java-access-bridge (Ubuntu):
status: New → Confirmed
Revision history for this message
I_Am (ionstorm66) wrote :

openjdk-7-jre-headless doesn't have this problem.

Revision history for this message
Tamal (tamal-nath) wrote :

The issue was reported more than two months ago. Can anybody please tell me when the issue will be resolved?

Revision history for this message
Todd Vierling (duh) wrote :

For oneiric and later:

A needed fix in ca-certificates-java is to change the dependency line from:
  openjdk-6-jre-headless (>= 6b16-1.6.1-2) | java6-runtime-headless,
to:
  default-jre-headless | java6-runtime-headless

It "works" right now, but this is a correction to the current case as seen on oneiric, which really should not mention openjdk directly.

The distributed version of openjdk-6 in oneiric base is 6b23~pre10, which definitely supersedes 6b16 above. (opeiric-updates has 6b23~pre11.) However, if there are concerns about pre-release binaries causing problems here, default-java packages could depend on >= 6b22 explicitly to ensure that any such packages are upgraded.

===

The proper fix for java-access-bridge is to change the dependency in libaccess-bridge-java from:
  default-jre | openjdk-6-jre | sun-java6-jre
to:
  default-jre | java6-runtime

===

I can produce a patch for this, but is anyone paying attention and willing to apply it? (hrm, thinking about PPA'ing)

I believe that the libaccess-bridge-java change could be filed upstream, but I'm not sure about ca-certificates-java off the top of my head.

Revision history for this message
Todd Vierling (duh) wrote :

Here's the change for oneiric for java-access-bridge. With this change, installing openjdk-{jdk,jre} no longer pulls in any openjdk-6 components by default. I have not tried this change for precise, but my gut feeling is that it will probably Just Work.

For those who cannot wait for this change in oneiric, I've built it in the PPA https://launchpad.net/~duh/+archive/duh (ppa:duh/duh).

Revision history for this message
Todd Vierling (duh) wrote :

Bah, previous comment should have said "...installing openjdk-7-{jdk,jre} no longer pulls in any openjdk-6 components by default."

Revision history for this message
Todd Vierling (duh) wrote :

Note: ca-certificates-java "works" as noted in comment 7, thus I set it to Fix Released for that package only. The patch in comment 8 needs to be applied to java-access-bridge in order to fix this bug completely.

Changed in ca-certificates-java (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Change dependency from openjdk-6-jre to java6-runtime (fixes LP: #881218)" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
hanasaki (hanasaki-ubuntu) wrote :

are there plans for v7 as a backport to pre-oneric?
will the Debian project be pulling this into squeeze or testing?

Revision history for this message
Dan Kegel (dank) wrote :

For what it's worth, ubuntu 12.04 alpha 1 doesn't seem to suffer from this at the moment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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