Skip to content
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

Debian package: Allow installation with openjdk-8-jre and with headless JREs #445

Merged
merged 1 commit into from Aug 31, 2020

Conversation

sathieu
Copy link
Contributor

@sathieu sathieu commented Aug 21, 2020

On Debian 9 (jessie), installing Jolokia when openjdk-8-jre (the default
JRE) is installed will pull openjdk-11-jre (or worst, oracle-java6-jre when
available). The reason being openjdk-8-jre has Provides: java2-runtime, but no
Provides: java-runtime (this is a bug on Debian's side that won't be
solved because Jessie is now LTS).

Also, Jolokia works with headless JRE. Adding those as alternative
depends.

@sathieu
Copy link
Contributor Author

sathieu commented Aug 21, 2020

More info (commands run on Debian 9 jessie):

# grep-aptavail -F Package -s Package,Depends jolokia-jvm
Package: jolokia-jvm
Depends: java-runtime
 
# grep-aptavail -F Provides -s Package java-runtime
Package: default-jre
Package: default-jre-headless
Package: gcj-6-jre
Package: gcj-6-jre-headless
Package: gcj-jre
Package: gcj-jre-headless
Package: openjdk-11-jre
Package: openjdk-11-jre-headless
Package: oracle-j2sdk1.7
Package: oracle-java6-jdk
Package: oracle-java6-jre
 
# grep-aptavail -F Provides -s Package,Provides -r 'java.*-runtime'
Package: default-jre
Provides: java-runtime, java2-runtime, java5-runtime, java6-runtime, java7-runtime, java8-runtime
 
Package: default-jre-headless
Provides: java-runtime-headless, java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless
 
Package: gcj-6-jre
Provides: java-runtime, java1-runtime, java2-runtime, java5-runtime
 
Package: gcj-6-jre-headless
Provides: java-runtime-headless, java1-runtime-headless, java2-runtime-headless, java5-runtime-headless
 
Package: gcj-jre
Provides: java-gcj-compat, java-runtime, java1-runtime, java2-runtime, java5-runtime
 
Package: gcj-jre-headless
Provides: java-gcj-compat-headless, java-runtime-headless, java-virtual-machine, java1-runtime-headless, java2-runtime-headless, java5-runtime-headless
 
Package: openjdk-8-jre
Provides: java2-runtime, java5-runtime, java6-runtime, java7-runtime, java8-runtime
 
Package: openjdk-8-jre-headless
Provides: java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless
 
Package: openjdk-11-jre
Provides: java-runtime, java10-runtime, java11-runtime, java2-runtime, java5-runtime, java6-runtime, java7-runtime, java8-runtime, java9-runtime
 
Package: openjdk-11-jre-headless
Provides: java-runtime-headless, java10-runtime-headless, java11-runtime-headless, java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless, java9-runtime-headless
 
Package: oracle-j2sdk1.7
Provides: j2re1.7, j2sdk1.7, java-browser-plugin, java-compiler, java-runtime, java-runtime-headless, java-sdk, java-virtual-machine, java2-compiler, java2-runtime, java2-runtime-headless, java2-sdk
 
Package: oracle-java6-jdk
Provides: java-browser-plugin, java-compiler, java-runtime, java-runtime-headless, java-sdk, java-virtual-machine, java2-compiler, java2-runtime, java2-runtime-headless, java2-sdk, java4-runtime, java4-runtime-headless, java4-sdk, java5-runtime, java5-runtime-headless, java5-sdk, java6-runtime, java6-runtime-headless, java6-sdk
 
Package: oracle-java6-jre
Provides: java-browser-plugin, java-runtime, java-runtime-headless, java-virtual-machine, java2-runtime, java2-runtime-headless, java4-runtime, java4-runtime-headless, java5-runtime, java5-runtime-headless, java6-runtime, java6-runtime-headless

…ss JREs

On Debian 9 (jessie), installing Jolokia when openjdk-8-jre (the default
JRE) is installed will pull openjdk-11-jre (or worst, oracle-java6-jre when
available). The reason being openjdk-8-jre has Provides: java2-runtime, but no
Provides: java-runtime (this is a bug on Debian's side that won't be
solved because Jessie is now LTS).

Also, Jolokia works with headless JRE. Adding those as alternative
depends.
@sathieu
Copy link
Contributor Author

sathieu commented Aug 21, 2020

I don't understand why the ci is failing...

@sathieu sathieu closed this Aug 25, 2020
@sathieu sathieu reopened this Aug 25, 2020
@sathieu
Copy link
Contributor Author

sathieu commented Aug 25, 2020

@rhuss Please review and help me with the failing CI (which should not be affected by this change).

@rhuss
Copy link
Member

rhuss commented Aug 31, 2020

Thanks looks good to me. The test looks like a flake that should have been fixed already. Let's merge this PR as the failure is clearly not related to the change here.

@rhuss rhuss merged commit 5a22016 into jolokia:master Aug 31, 2020
@sathieu sathieu deleted the deb-depends branch August 31, 2020 10:21
@sathieu
Copy link
Contributor Author

sathieu commented Sep 3, 2020

Thanks @rhuss. Is there any release planned soon? Latest was one year ago ⌚, no hurry of course 🏃 ...

@rhuss
Copy link
Member

rhuss commented Sep 3, 2020

yes, I plan a release soon. Need to wrap up some threads but this should be within the next month or so

@sathieu
Copy link
Contributor Author

sathieu commented Sep 3, 2020

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants