[EPEL-devel] Re: EPEL package and Java 11 requirement.
On Tue, Oct 5, 2021 at 10:41 AM Stefan Bluhm wrote: > > 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" > An: "epel-devel" > 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. It is possible to filter generated requires. This was described in a comment in one of the bugs you referred to: https://bugzilla.redhat.com/show_bug.cgi?id=1993879#c10 -- Mikolaj Izdebski > > 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" > An: "epel-devel" > 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 > 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 -- epel-devel@lists.fedoraproject.org > To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org > 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/epel-devel@lists.fedoraproject.org >
[EPEL-devel] Re: EPEL package and Java 11 requirement.
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" An: "epel-devel" 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" An: "epel-devel" 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 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 -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ epel-devel mailing list -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ epel-devel mailing list -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraprojec
[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" An: "epel-devel" 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 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 -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ epel-devel mailing list -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[EPEL-devel] Re: EPEL package and Java 11 requirement.
On Mon, Oct 4, 2021 at 3:50 PM Stefan Bluhm 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 -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[EPEL-devel] Re: EPEL package and Java 11 requirement.
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" An: "epel-devel" 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 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 -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure ___ epel-devel mailing list -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[EPEL-devel] Re: EPEL package and Java 11 requirement.
On Mon, Oct 4, 2021 at 3:06 PM Stefan Bluhm 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 -- epel-devel@lists.fedoraproject.org To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org 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/epel-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure