← Back to team overview

openjdk team mailing list archive

[Bug 1584118] Re: 16.04 incorrectly installs openjdk-9 to satisfy java8-runtime dependency

 

> after some additional testing, this appears to
> be a solution, can you see any problems with it?

Any installed JRE that Provides java8-runtime will satisfy your Depends.
Unfortunately that includes openjdk-9-jre - but then the user must have
installed it beforehand. Otherwise openjdk-8-jre-headless will be
installed.

It's exactly because openjdk-9-jre can also satisfy that Depends that I
previously suggested depending explicitly on the JRE packages that you
support instead of relying on the "java8-runtime" virtual package for a
"catch all".

On a side note, if you prefer to keep relying on the virtual package you
might want to use "java8-runtime-headless" instead of "java8-runtime"
(given that your other dependency is "openjdk-8-jre-headless").

> These were the results in my testing:
> - With no JRE installed, openjdk-8-jre-headless
>   is pulled in.
> - With oracle-java8-installer from webupd8 already
>   installed, no JRE is pulled in.

Correct, if the user has previously installed any JRE that provides
java8-runtime than no JRE will be pulled in.

> Am I correct in assuming that the first package
> (in this case openjdk-8-jre-headless) will be
> installed in case none of the (virtual) packages
> are installed on the system?

Yes, that is correct.

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-9 in Ubuntu.
https://bugs.launchpad.net/bugs/1584118

Title:
  16.04 incorrectly installs openjdk-9 to satisfy java8-runtime
  dependency

Status in openjdk-9 package in Ubuntu:
  Confirmed

Bug description:
  Hi,
  A user recently reported an issue on our bug tracker stating that our package was pulling in openjdk-9 and subsequently crashed when started. This apparently because openjdk-9 is the default choice for java8-runtime, which is quite surprising.

  Now it is technically correct that java9 does provide a java8-runtime,
  but java9 isn't even released yet and should definitely not be the
  default java8-runtime until that time.

  Same bug was reported against puppet here:
  https://tickets.puppetlabs.com/browse/EZ-77

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1584118/+subscriptions


References