Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request description
Added
java-17-devel
to match non-openJDK Java distributions for RPM install.An old AmazonLinux 2 LTS with old PRM 4.11 does not recognize multiple dependencies and should be installed with --nodeps
❌ AmazonLinux2 failed test
Run rpm --version → if it’s 4.11.x, then Amazon Linux 2 cannot handle rich dependencies. On AL2, either use --nodeps or rebuild the RPM without rich deps. On AL2023+, no issue.
Example for Amazon Corretto Java:
JDK
java-17-devel
docker run --rm -it amazonlinux:2 bash -c "yum install -y java-17-amazon-corretto-devel && rpm -q --provides java-17-amazon-corretto-devel.aarch64" java-17-amazon-corretto-devel = 1:17.0.16+8-1.amzn2.1 java-17-amazon-corretto-devel(aarch-64) = 1:17.0.16+8-1.amzn2.1 java-17-devel = 1:17.0.16 java-17-devel = 1:17.0.16+8-1.amzn2.1 java-devel = 1:17.0.16
JRE
✅ The tag
jre-17
already supporteddocker run --rm -it amazonlinux:2 bash -c "yum install -y java-17-amazon-corretto && rpm -q --provides java-17-amazon-corretto.aarch64" java = 1:17.0.16 java-17 = 1:17.0.16 java-17 = 1:17.0.16+8-1.amzn2.1 java-17-amazon-corretto = 1:17.0.16+8-1.amzn2.1 java-17-amazon-corretto(aarch-64) = 1:17.0.16+8-1.amzn2.1 jre = 17.0.16 jre-17 = 1:17.0.16+8-1.amzn2.1 jre-17-amazon-corretto = 1:17.0.16+8-1.amzn2.1
Headless
✅ The tag
jre-17-headless
already supporteddocker run --rm -it amazonlinux:2 bash -c "yum install -y java-17-amazon-corretto-headless && rpm -q --provides java-17-amazon-corretto-headless.aarch64" config(java-17-amazon-corretto-headless) = 1:17.0.16+8-1.amzn2.1 java-17-amazon-corretto-headless = 1:17.0.16+8-1.amzn2.1 java-17-amazon-corretto-headless(aarch-64) = 1:17.0.16+8-1.amzn2.1 java-17-headless = 1:17.0.16+8-1.amzn2.1 java-headless = 1:17.0.16 jre-17-amazon-corretto-headless = 1:17.0.16+8-1.amzn2.1 jre-17-headless = 1:17.0.16+8-1.amzn2.1 jre-headless = 1:17.0.16
Related PR to give more context: #13744
Manual test on AmazonLinux:2023
dnf install -y shadow-utils
otherwise
with JDK
with JRE
with headless
with no Java installed
General checklist
Front-End feature checklist
Back-End feature checklist