Bug 2051161
Summary: | java-gnome fails to build with java-17-openjdk | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jiri vanek <jvanek> |
Component: | java-gnome | Assignee: | Alexander Boström <abo> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | abo, didiksupriadi41, java-maint-sig, jhuttana, jvanek, pmikova, rosset.filipe, sgehwolf |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-25 15:16:23 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2024265 |
Description
jiri vanek
2022-02-06 14:37:06 UTC
Check Java compilers: - System Default javac doesn't work - System Default javah found - System Default jar doesn't work - System Default javadoc found Check Java virtual machines: - System Default java VM doesn't work Check native compiler: - GNU gcc works Select compiler: failed No java compiler was detected. Failed to complete configuration. This souds like issue in configure, but maybe the configure is trying some jdk17 incpompatible code intentionally. Still I more like think that it simiply do not know java-17-openjdk directory. This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. I was able to build java-gnome changing source/target versions from 1.6 to 1.8 diff --git a/java-gnome-doclint.patch b/java-gnome-doclint.patch index 2c3fa20..ee5712f 100644 --- a/java-gnome-doclint.patch +++ b/java-gnome-doclint.patch @@ -9,7 +9,7 @@ diff -ur java-gnome-4.1.3-orig/build/faster java-gnome-4.1.3/build/faster cmd += "-public " cmd += "-nodeprecated " - cmd += "-source 1.5 " -+ cmd += "-source 1.6 " ++ cmd += "-source 1.8 " cmd += "-notree " cmd += "-noindex " cmd += "-notimestamp " diff --git a/java-gnome.spec b/java-gnome.spec index 63a956c..32ca07c 100644 --- a/java-gnome.spec +++ b/java-gnome.spec @@ -16,6 +16,9 @@ Patch3: java-gnome-4.1.3-javah.patch Patch4: java-gnome-4.1.3-py3.patch # This is the "Classpath" exception. License: GPLv2 with exceptions + +ExclusiveArch: %{java_arches} + BuildRequires: pkgconfig BuildRequires: pkgconfig(atk) BuildRequires: pkgconfig(cairo-svg) @@ -81,6 +84,10 @@ pango_PangoAnalysis pango_PangoEngine pango_PangoEngineShape pango_PangoEngineLa done %build + +# Require JDK 8 at a minimum +sed -i 's/1\.6/1.8/g' configure + # It'll get two conflicting --libdir parameters, but the last one # happens to win which is what we want. %configure --jardir=%{_jnidir} --libdir=%{_libdir}/%{name} This message is a reminder that Fedora Linux 36 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '36'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 36 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. This message is a reminder that Fedora Linux 36 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '36'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 36 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16. Fedora Linux 36 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed. |