Bug 2266687

Summary: sblim-cim-client fails to build with java-21-openjdk
Product: [Fedora] Fedora Reporter: Petra Alice Mikova <pmikova>
Component: sblim-cim-clientAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: java-maint-sig, jvanek, pmikova, vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sblim-cim-client-1.3.9.3-34.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-01 13:25:41 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: 2262141    

Description Petra Alice Mikova 2024-02-28 18:07:33 UTC
sblim-cim-client fails to build with java-21-openjdk as sytem JDK. See https://fedoraproject.org/wiki/Changes/Java21.

For the build logs, see: https://koji.fedoraproject.org/koji/taskinfo?taskID=114140722
https://kojipkgs.fedoraproject.org/work/tasks/832/114140832/mock_output.log
https://kojipkgs.fedoraproject.org/work/tasks/832/114140832/state.log
https://kojipkgs.fedoraproject.org/work/tasks/832/114140832/build.log
https://kojipkgs.fedoraproject.org/work/tasks/832/114140832/root.log
https://kojipkgs.fedoraproject.org/work/tasks/832/114140832/hw_info.log
https://kojipkgs.fedoraproject.org/work/tasks/832/114140832/checkout.log
We run the rebuild in side tag f41-build-side-84507, but as fail ratio was small, we expect this side tag to be merged into rawhide ASAP.
To reproduce before this date simply: fedpkg clone sblim-cim-client; cd sblim-cim-client;  fedpkg build --target f41-build-side-84507; #The target is crucial.
After merge, the usual fedpkg build in rawhide should do.

We had tried aprox 400 packages, and aprox 55 had failed, so the java-21-openjdk will be system JDK in f40, and you should fix your package if you want to keep it alive. Usually the fix is simple, and best is to update the package to latest upstream version. Fix the issue in both f40 and rawhide, if possible, the side tag and rebuild of f40 (and bugs) will follow soon.
Let us know here if you have any questions, here in bug, or at java-devel.org .

We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side if needed.

Comment 1 Vitezslav Crhonek 2024-03-01 08:44:45 UTC
The fail may not be connected to java-21-openjdk at all, the log says:
error: Patch number not specified: %patch -p1 -b .fix-for-java-11-openjdk

But after fixing it locally, I can't test it with java-21-openjdk:

$ fedpkg build --srpm --target f41-build-side-84507
Not downloading already downloaded sblim-cim-client-1.3.9.3-src.zip
Not downloading already downloaded sblim-cim-client-samples-1.3.9.3-src.zip

setting SOURCE_DATE_EPOCH=1709251200
Wrote: /home/vcrhonek/work/fedora-git/sblim-cim-client/sblim-cim-client-1.3.9.3-34.fc41.src.rpm
[====================================] 100% 00:00:01 470.74 KiB 278.50 KiB/sec
Could not execute build: Unknown build target: f41-build-side-84507

Push didn't help:
$ fedpkg build --target f41-build-side-84507
Could not execute build: Unknown build target: f41-build-side-84507

Has the target changed or anything?

Comment 2 Petra Alice Mikova 2024-03-01 12:21:59 UTC
The target was already merged into rawhide, so just "fedpkg build" should do.

Thanks!

Comment 3 Vitezslav Crhonek 2024-03-01 12:52:20 UTC
I see, thank you!