Bug 1857903 - bsh fails to build with java-11-openjdk
Summary: bsh fails to build with java-11-openjdk
Alias: None
Product: Fedora
Classification: Fedora
Component: bsh
Version: rawhide
Hardware: All
OS: All
Target Milestone: ---
Assignee: Stewardship SIG
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: Java11
TreeView+ depends on / blocked
Reported: 2020-07-16 18:00 UTC by jiri vanek
Modified: 2020-07-20 20:14 UTC (History)
7 users (show)

Fixed In Version: bsh-2.0-18.b6.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-07-20 20:14:22 UTC
Type: ---

Attachments (Terms of Use)

Description jiri vanek 2020-07-16 18:00:55 UTC
bsh fails to build with java-11-openjdk as sytem JDK. See https://fedoraproject.org/wiki/Changes/Java11 .
See especially part about known failures: https://fedoraproject.org/wiki/Changes/Java11#common_issues_packagers_can_face_and_gathered_solutions

For the build logs, see: https://koji.fedoraproject.org/koji/taskinfo?taskID=47148091
We run the rebuild longer then 10days ago. Log may be gone. Also your package may be passing in regular rawhide.
To reproduce, simply: fedpkg clone bsh; cd bsh;  fedpkg build --target f33-java11; #The target is crucial.

We run two reruns your package failed both.

We had tried 650 packages, and 500 had passed, so the java-11-openjdk will be system JDK in f33, 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.
There will be usual mass rebuild once f33 branches. You may got another FTBFS bug.
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 Fabio Valentini 2020-07-16 18:51:50 UTC
I've now had time to look at this one.

I successfully managed to set -source 1.8 -target 1.8 for building code and javadocs, but then the build failed with this error:

    [javac] /builddir/build/BUILD/beanshell-2.0b6/src/bsh/util/AWTConsole.java:217: error: package java.awt.peer is not visible
    [javac] 		((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( 
    [javac] 		          ^
    [javac]   (package java.awt.peer is declared in module java.desktop, which does not export it)
    [javac] /builddir/build/BUILD/beanshell-2.0b6/src/bsh/util/AWTConsole.java:217: error: cannot find symbol
    [javac] 		((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( 
    [javac] 		                                  ^
    [javac]   symbol:   method getPeer()
    [javac]   location: class AWTConsole

Which looks like a proper Java 11 compatibility issue (private things actually being really private now?)

The upstream project is active again and is working towards a 3.0 release, and the 2.0 beta releases are considered "no longer supported" :(

Comment 2 jiri vanek 2020-07-17 03:40:36 UTC
highlight: This was rebuild in sidetag f33-java11. Thus --target is really necessary to reproduce failure.
please note: This side tag, f33-java11, will be merged to main f33 buildroot in aprox 14 days.

Comment 3 Fabio Valentini 2020-07-20 20:14:22 UTC
(Looked at what debian is doing to fix this. Naughty.)

Fixed and built for rawhide:

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