Thanks Neal,

it provides "java-11-headless". Not "java-headless". At least not on my machine:

$ dnf repoquery --provides java-11-openjdk-headless 

config(java-11-openjdk-headless) = 1:11.0.11.0.9-2.el8_4
config(java-11-openjdk-headless) = 1:11.0.12.0.7-0.el8_4
java-11-headless = 1:11.0.11.0.9-2.el8_4
java-11-headless = 1:11.0.12.0.7-0.el8_4
java-11-openjdk-headless = 1:11.0.11.0.9-2.el8_4
java-11-openjdk-headless = 1:11.0.12.0.7-0.el8_4
java-11-openjdk-headless(x86-64) = 1:11.0.11.0.9-2.el8_4
java-11-openjdk-headless(x86-64) = 1:11.0.12.0.7-0.el8_4
jre-11-headless = 1:11.0.11.0.9-2.el8_4
jre-11-headless = 1:11.0.12.0.7-0.el8_4
jre-11-openjdk-headless = 1:11.0.11.0.9-2.el8_4
jre-11-openjdk-headless = 1:11.0.12.0.7-0.el8_4

Best wishes,

Stefan

----- Ursprüngliche Mail -----
Von: "Neal Gompa" <[email protected]>
An: "epel-devel" <[email protected]>
Gesendet: Montag, 4. Oktober 2021 21:45:41
Betreff: [EPEL-devel] Re: EPEL package and Java 11 requirement.

On Mon, Oct 4, 2021 at 3:06 PM Stefan Bluhm
<[email protected]> wrote:
>
> Hello,
>
> can you please give me a direction on how to handle a Java 11 package build 
> on RHEL8 for EPEL8?
>
> My issue: I am trying to build jaxb-api. The build works fine:
> https://src.fedoraproject.org/rpms/jaxb-api/blob/rawhide/f/jaxb-api.spec
> In addition to the original file, I added:
>
> BuildRequires:  java-11-openjdk-devel
>
> and
>
> %if 0%{?rhel}
> export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
> %endif
>
> Now the generated rpm adds this requirement line:
>
> Requires: java-headless >= 1:9
>
> This is something that RHEL cannot fulfill as it would be called 
> java-11-headless (adding the next higher available version).
>
> How do I remove/omit the generation of the 1:9 requirement?
>

java-11-openjdk-headless provides "java-headless = 1:11", so it should
work anyway. And that's in RHEL 8.



-- 
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
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