When opening a Buzilla, these common issues popped up:

java-11-openjdk-headless RPM does not provide java-headless capability
- https://bugzilla.redhat.com/show_bug.cgi?id=1797054
- "Hi. This is intentional. It will be added once jdk8 will stop to be the 
system JDK."

javapackages-tools: wrong generated Requires: `java-headless >= 11`
- https://bugzilla.redhat.com/show_bug.cgi?id=1993879
- "The culprint *may* be xmvn, as there is (at least) one pkg in rhel8 which is 
jdk11 based but is build by Makefile, and do not suffer the issue."
- "A proper long-term fix would mean redesigning how provides and auto-requires 
are supposed to work. There are several possibilities."
- "Another possibility is removing auto-requires on java-headless altogether - 
they add little value and cause much trouble."

Is it possible to disable the auto-require generation in xmvn?
Otherwise it seems I have to skip usage of xmvn just for that.

Best wishes,

Stefan


----- Ursprüngliche Mail -----
Von: "fedoraproject org" <[email protected]>
An: "epel-devel" <[email protected]>
Gesendet: Dienstag, 5. Oktober 2021 09:05:13
Betreff: [EPEL-devel] Re: EPEL package and Java 11 requirement.

Hello Mike,

I thought (!) I read somewhere that this difference between java-headless and 
java-11-headless was intentional (or at least I understood it that way).
Let me open a Bugzilla against Java 11.



How did others tackle this issue in the past/currently though? I can't be the 
first one creating an rpm with an autogenerated java-headless >= 1:9 tag.

Is there a way to disable/remove this autogeneration or force it to be 
something different?
Also I noticed some packages where the headless tag was not generated at all. 
So maybe I could just remove the trigger for that.

I tried removing maven-compiler-plugin from the pom and adding the 
compiler.target=11 line in the build section but that gave the same result.

Thanks and best wishes,

Stefan

----- Ursprüngliche Mail -----
Von: "Mike Rochefort" <[email protected]>
An: "epel-devel" <[email protected]>
Gesendet: Montag, 4. Oktober 2021 22:57:09
Betreff: [EPEL-devel] Re: EPEL package and Java 11 requirement.

On Mon, Oct 4, 2021 at 3:50 PM Stefan Bluhm
<[email protected]> wrote:
>
> it provides "java-11-headless". Not "java-headless". At least not on my 
> machine

Doing my own checks on CentOS Stream 8 and RHEL 8.4, this sounds like a Fedora
change that didn't make its way back to RHEL. Worth opening a Bugzilla
report on?

For posterity, only java-1.8.0 returns when checking for java-headless
on EL8 (latest
versions on RHEL for 1.8 and 11 as of writing).

$ rpm -qp --provides
java-1.8.0-openjdk-headless-1.8.0.302.b08-0.el8_4.x86_64.rpm
/usr/bin/jjs
config(java-1.8.0-openjdk-headless) = 1:1.8.0.302.b08-0.el8_4
java-1.8.0-headless = 1:1.8.0.302.b08-0.el8_4
java-1.8.0-openjdk-headless = 1:1.8.0.302.b08-0.el8_4
java-1.8.0-openjdk-headless(x86-64) = 1:1.8.0.302.b08-0.el8_4
java-headless = 1:1.8.0
java-openjdk-headless = 1:1.8.0.302.b08-0.el8_4
jre-1.8.0-headless = 1:1.8.0.302.b08-0.el8_4
jre-1.8.0-openjdk-headless = 1:1.8.0.302.b08-0.el8_4
jre-headless = 1:1.8.0
jre-openjdk-headless = 1:1.8.0.302.b08-0.el8_4
libjava.so()(64bit)
libjava.so(SUNWprivate_1.1)(64bit)
libjsig.so()(64bit)
libjvm.so()(64bit)
libjvm.so(SUNWprivate_1.1)(64bit)
libverify.so()(64bit)
libverify.so(SUNWprivate_1.1)(64bit)

$ rpm -qp --provides java-11-openjdk-headless-11.0.12.0.7-0.el8_4.x86_64.rpm
config(java-11-openjdk-headless) = 1:11.0.12.0.7-0.el8_4
java-11-headless = 1:11.0.12.0.7-0.el8_4
java-11-openjdk-headless = 1:11.0.12.0.7-0.el8_4
java-11-openjdk-headless(x86-64) = 1:11.0.12.0.7-0.el8_4
jre-11-headless = 1:11.0.12.0.7-0.el8_4
jre-11-openjdk-headless = 1:11.0.12.0.7-0.el8_4

-- 
Mike
_______________________________________________
epel-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure
_______________________________________________
epel-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure
_______________________________________________
epel-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to