Bug 2176827

Summary: [RHEL9][FTBFS]: jdeparser-2.0.3-12.el9
Product: Red Hat Enterprise Linux 9 Reporter: Martin Kyral <mkyral>
Component: jdeparserAssignee: Chris Kelley <ckelley>
Status: CLOSED NEXTRELEASE QA Contact: idm-cs-qe-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: ckelley
Target Milestone: rcKeywords: Triaged
Target Release: 9.3   
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-03-10 16:38:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Kyral 2023-03-09 12:35:55 UTC
Description of problem:
As a consequence of fixing bug https://bugzilla.redhat.com/show_bug.cgi?id=2164351, jdeparser build started to fail. Previously the build worked as maven (incorrectly) ignored the JAVA_HOME env variable.

The build uses a class from xmvn which was build with Java 11 but jdeparser needs to be built with Java 8. Thus, the build fails as Java 8 can use Java 11 bytecode:

...
...

Caused by: java.lang.UnsupportedClassVersionError: org/fedoraproject/xmvn/connector/maven/XMvnModelValidator has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Version-Release number of selected component (if applicable):
jdeparser-2.0.3-12.el9


How reproducible:
Always


Steps to Reproduce:
1. rpmbuild --rebuild jdeparser-2.0.3-12.el9.src.rpm
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Chris Kelley 2023-03-10 16:01:05 UTC
It appears the requirement for Java 8 is no longer necessary, I have a successful c9s scratch build with Java 11.

As we are in the blocker/exception phase for RHEL 9.2 I am targeting the fix for RHEL 9.3, we can backport the fix to RHEL 9.2.z if we need to do a build for it in the future.

Comment 2 Chris Kelley 2023-03-10 16:38:25 UTC
Successful build for RHEL 9.3: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=51249500, closing ticket.

Comment 3 Martin Kyral 2023-08-11 05:27:03 UTC
In RHEL-9.3.0-20230718.0, there is still jdeparser-2.0.3-12.el9:

https://beaker-archive.hosts.prod.psi.bos.redhat.com/beaker-logs/2023/07/80920/8092091/14267204/163226326/taskout.log

Is that intentional, not to include the fix in the shipped product yet?

Comment 4 Chris Kelley 2023-08-11 08:10:58 UTC
Yes, because the problem is in building the package. It is a build system implementation detail on our side so the fix does not need shipping in an erratum to users. I chose CLOSED NEXTRELEASE because I confirmed that future builds of jdeparser are not affected by this bug, but there has not been a reason (rebase, another bug) to actually rebuild the package since then, so we still have the build from before this.