Bug 2176827 - [RHEL9][FTBFS]: jdeparser-2.0.3-12.el9
Summary: [RHEL9][FTBFS]: jdeparser-2.0.3-12.el9
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: jdeparser
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.3
Assignee: Chris Kelley
QA Contact: idm-cs-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-09 12:35 UTC by Martin Kyral
Modified: 2023-08-11 08:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-10 16:38:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-151216 0 None None None 2023-03-09 12:38:53 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.