Giter Site home page Giter Site logo

Comments (9)

ThomDietrich avatar ThomDietrich commented on June 10, 2024 1

I know, I've written the docs sentence saying so 😸

Okay then. The whole situation is pretty silly.

from openhab-linuxpkg.

ThomDietrich avatar ThomDietrich commented on June 10, 2024

Good idea! Are you fixed on default-jdk-headless? Zulu doesn't seem to provide this virtual package.

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

Ah good catch, also default-jdk-headless may not install java 8 at all! I should be able to depend on the following to cover all:

java8-jdk | java8-sdk-headless | java8-sdk | java8-runtime-headless

That said, it shouldn't depend on java 8 but recommend it instead. That way, those who have installed java manually would not have issues.

from openhab-linuxpkg.

ThomDietrich avatar ThomDietrich commented on June 10, 2024

Great, seems to cover all the big three, looking at the Provides of all of them maybe you want to also add java8-runtime (of the Java 8 packages Zulu only provides java8-jdk and java8-runtime).

Recommends seems like a good choice 👍

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

Eek, looks like these virtual packages are a mess.

java9* virtual package provides java8* virtual packages, so if you recommend or depend on the above then it will automatically choose to install java 9, which is incompatible with openHAB 2. What's worse is that there seems to be no way of specifying a maximum version for these virtual packages.

I understand java8 containing java7 virtual packages, Java 8 is fairly backwards compatible. Java 9 however is not.

Related: https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1584118

from openhab-linuxpkg.

ThomDietrich avatar ThomDietrich commented on June 10, 2024

Okay... wow, this is the key problem:

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

I agree with the second part but openHAB needs to be properly tested with Java 9 before it can even be considered. Hence that should not be an option at all. The first part makes sense but totally messes with the initial idea.

What's your suggestion? Recommends: zulu-embedded-8 | oracle-java8-jdk | openjdk-8-jre-headless

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

openHAB fails to start on openjdk-9, but that is a problem for another day.

Since oracle-java8-jdk is a provided by oracle-java9-installer I think it'll have to be oracle-java8-installer specifically.

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

One last use case, someone has manually installed oracle linux, and then tries to install openHAB2.

Even with recommends it'll install openjdk, which would be less stable. Is this something that we should seek to avoid?

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

I know, I've written the docs sentence saying so 😸

Haha, sorry. I should really read the changes more often ;)

from openhab-linuxpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.