Bug 2266694 - system-rules fails to build with java-21-openjdk
Summary: system-rules fails to build with java-21-openjdk
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-rules
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Didik Supriadi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2262141
TreeView+ depends on / blocked
 
Reported: 2024-02-28 18:17 UTC by Petra Alice Mikova
Modified: 2024-03-14 13:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-14 13:46:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petra Alice Mikova 2024-02-28 18:17:50 UTC
system-rules 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=114141598
https://kojipkgs.fedoraproject.org/work/tasks/1916/114141916/state.log
https://kojipkgs.fedoraproject.org/work/tasks/1916/114141916/build.log
https://kojipkgs.fedoraproject.org/work/tasks/1916/114141916/root.log
https://kojipkgs.fedoraproject.org/work/tasks/1916/114141916/mock_output.log
https://kojipkgs.fedoraproject.org/work/tasks/1916/114141916/hw_info.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 system-rules; cd system-rules;  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 jiri vanek 2024-03-14 13:05:36 UTC
newer logs: https://koji.fedoraproject.org/koji/taskinfo?taskID=114934297

[ERROR] /builddir/build/BUILD/system-rules-system-rules-1.19.0/src/test/java/org/junit/contrib/java/lang/system/internal/NoExitSecurityManagerTest.java:[6,25] error: cannot access Mockito
  bad class file: /usr/share/java/mockito/mockito-core.jar(org/mockito/Mockito.class)
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[INFO] 1 error

Comment 2 jiri vanek 2024-03-14 13:08:04 UTC
  mockito                                 noarch  5.8.0-5.fc41               build      703.9 KiB  

was already built by jdk21...

Comment 3 jiri vanek 2024-03-14 13:12:15 UTC
gosh

BuildRequires:  maven-local-openjdk8


DEBUG util.py:463:   java-1.8.0-openjdk                      ppc64le 1:1.8.0.402.b06-1.fc41.1   build        2.1 MiB
DEBUG util.py:463:   java-1.8.0-openjdk-devel                ppc64le 1:1.8.0.402.b06-1.fc41.1   build       47.0 MiB
DEBUG util.py:463:   java-1.8.0-openjdk-headless             ppc64le 1:1.8.0.402.b06-1.fc41.1   build      120.7 MiB
DEBUG util.py:463:   java-21-openjdk                         ppc64le 1:21.0.2.0.13-2.fc41       build        1.7 MiB
DEBUG util.py:463:   java-21-openjdk-devel                   ppc64le 1:21.0.2.0.13-2.fc41       build       15.6 MiB
DEBUG util.py:463:   java-21-openjdk-headless                ppc64le 1:21.0.2.0.13-2.fc41       build      211.6 MiB

Comment 4 jiri vanek 2024-03-14 13:14:37 UTC
Package upstreamis dead :(


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