New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional provides for debian packages #190
Comments
@ALRyanAdams You are right, the Corretto 8 debian package does not provide I'm linking this issue to corretto-8-docker#17 & corretto-8#65. |
Discussed with the team, short-term we will add both |
Learned a little bit more about I've found another workaround. On Debian's package page, groovy requires either |
I think that would work for Groovy since it explicitly is looking for the Java 7 runtime... but looking at the openjdk packages it looks like they also provide other runtime-headless packages. For instance, looking at the latest openjdk for 8 on Ubuntu, I see the following list of provides: Similarly, openjdk 11 provides for java5 to java11. I would think we would want to have a similar list to openjdk. |
This has been fixed in the most recent 8.242.08.1. Please check out our download page. |
So... commenting here as a start (though I can file a different ticket if you want). I tested with the latest build and we appear to have missed adding |
@ALRyanAdams We almost missed your comment. Feel free to reopen it next time to raise more attention. I'll add |
Describe the bug
When trying to use the deb package that's built from Corretto, I have to jump through some hoops in order to install other OS packages that depend on Java. The issue is that those pacakges depend on default-jre-headless or default-jdk-headless, and Corretto does not list this in the provides. As a result, both Debian and Ubuntu eventually end up trying to pull in a version of OpenJDK.
To Reproduce
This can be reproduced on any Debian or Ubuntu box, but the easiest way to reproduce is with the Corretto docker file
docker build -t amazon-corretto-8 github.com/corretto/corretto-8-docker/#8-al2-full:contrib/debian
docker run -ti amazon-corretto-8:latest /bin/bash
apt-get update && apt-get install --simulate groovy
. Note that it pulls in default-jre-headless and ultimately openjdk-11-jre-headless.Current list of files:
Expected behavior
The groovy install would not bring in the additional openjdk requirements.
Screenshots
n/a
Platform information
OpenJDK Runtime Environment Corretto-8.232.09.1 (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM Corretto-8.232.09.1 (build 25.232-b09, mixed mode)
Package version - java-1.8.0-amazon-corretto-jdk:amd64 1:8.232.09-1
Additional context
I think the fix would just be to add in the additional provides in https://github.com/corretto/corretto-8/blob/master/installers/linux/universal/deb/build.gradle , but I may be wrong.
The text was updated successfully, but these errors were encountered: