openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #12066
[Bug 1584118] Re: 16.04 incorrectly installs openjdk-9 to satisfy java8-runtime dependency
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
I can see from https://github.com/puppetlabs/ezbake/pull/303 that you
have implemented a fix.
Your current settings will force the user to install a openkdk-7|8-jre-
headless package even if he has something else installed that could be
used as a JRE 7|8.
If you actually need to depend on OpenJDK then keep it as it is, otherwise for a broader JRE dependency you can also use:
-Depends: ${misc:Depends}, openjdk-7-jre-headless | openjdk-8-jre-headless, net-tools, adduser<%=
+Depends: ${misc:Depends}, default-jre-headless | openjdk-7-jre-headless | openjdk-8-jre-headless | java7-runtime-headless | java8-runtime-headless, net-tools, adduser<%=
This will:
- Install the distro's default headless JRE (either OpenJDK 7 or 8 depending on the distro release)
- Or reuse any installed openjdk-7|8-jre-headless
- Or reuse any installed package that satisfy the java7|8-runtime-headless
--
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