Bug 2266637 - apache-sshd fails to build with java-21-openjdk
Summary: apache-sshd fails to build with java-21-openjdk
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: apache-sshd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Mat Booth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2262141
TreeView+ depends on / blocked
 
Reported: 2024-02-28 16:39 UTC by Petra Alice Mikova
Modified: 2024-03-14 09:25 UTC (History)
7 users (show)

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


Attachments (Terms of Use)

Description Petra Alice Mikova 2024-02-28 16:39:11 UTC
apache-sshd 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=114131918
https://kojipkgs.fedoraproject.org/work/tasks/2042/114132042/mock_output.log
https://kojipkgs.fedoraproject.org/work/tasks/2042/114132042/state.log
https://kojipkgs.fedoraproject.org/work/tasks/2042/114132042/build.log
https://kojipkgs.fedoraproject.org/work/tasks/2042/114132042/root.log
https://kojipkgs.fedoraproject.org/work/tasks/2042/114132042/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 apache-sshd; cd apache-sshd;  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-13 13:03:56 UTC
[INFO] 9 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /builddir/build/BUILD/apache-sshd-2.8.0/sshd-common/src/main/java/org/apache/sshd/common/util/threads/CloseableExecutorService.java:[29,8] types java.util.concurrent.ExecutorService and org.apache.sshd.common.Closeable are incompatible;
  interface org.apache.sshd.common.util.threads.CloseableExecutorService inherits unrelated defaults for close() from types java.util.concurrent.ExecutorService and org.apache.sshd.common.Closeable
[ERROR] /builddir/build/BUILD/apache-sshd-2.8.0/sshd-common/src/main/java/org/apache/sshd/common/util/threads/NoCloseExecutor.java:[43,8] org.apache.sshd.common.util.threads.NoCloseExecutor is not abstract and does not override abstract method close() in java.nio.channels.Channel
[ERROR] /builddir/build/BUILD/apache-sshd-2.8.0/sshd-common/src/main/java/org/apache/sshd/common/util/threads/SshThreadPoolExecutor.java:[35,8] types org.apache.sshd.common.Closeable and java.util.concurrent.ExecutorService are incompatible;
  class org.apache.sshd.common.util.threads.SshThreadPoolExecutor inherits unrelated defaults for close() from types org.apache.sshd.common.Closeable and java.util.concurrent.ExecutorService
[INFO] 3 errors 
[INFO] -------------

I was trying to resolvce this, but got into a deadlock maze a bit. Maybe there is new upstream reelase?

Comment 2 jiri vanek 2024-03-13 19:40:10 UTC
udpate to 2.11 fixed the issue. https://koji.fedoraproject.org/koji/taskinfo?taskID=114910363
update to 2.11 required bouncycastel 1.76, so I bumped bouncycastle to 1.77 (much more work then mina:()

So update of mina in f40 is waiting for https://bodhi.fedoraproject.org/updates/FEDORA-2024-c1d664909b (or to at least move to BR override)

Comment 3 jiri vanek 2024-03-14 09:25:46 UTC
backported to f40, update asap


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