Summary: | lang/bsh: doesn't build with DEFAULT_VERSIONS+= java=11 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Vladimir Druzenko <vvd> | ||||
Component: | Individual Port(s) | Assignee: | Pedro F. Giffuni <pfg> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | Flags: | bugzilla:
maintainer-feedback?
(pfg) |
||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
URL: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251774 | ||||||
Attachments: |
|
Description
Vladimir Druzenko
2020-12-13 21:31:20 UTC
It is a well known fact that the port only builds with Java 8 and that's why the port specifies: JAVA_BUILD= 8 Upstream's version in github builds and works fine with newr Java but there is no official release. A commit references this bug: Author: pfg Date: Mon Dec 14 02:11:04 UTC 2020 New revision: 558070 URL: https://svnweb.freebsd.org/changeset/ports/558070 Log: lang/bsh: Use JDK 8. It is well known this port requires Java 8 to build. Use Java 8 explicitly so setting the default to another version doesn't break it. PR: 251824 Approved by: thierry (mentor, implicit) Changes: head/lang/bsh/Makefile Committed, thanks! (In reply to Pedro F. Giffuni from comment #1) > It is a well known fact that the port only builds with Java 8 and that's why the port specifies: > JAVA_BUILD= 8 But this doesn't work as expected. :-( > Upstream's version in github builds and works fine with newr Java but there is no official release. Ye, I checked upstream before create this PR: they have several old and new bug reports with questions and suggestions about new release - or at least create tag 3.0 alpha 1. Maybe update to last commit? Don't know is it good idea or not… > Committed, thanks! Thank you for fast commit! (In reply to VVD from comment #4) JAVA_BUILD=8 worked for a while, I have no idea why it stopped working. I am involved in the beanshell project, unfortunately no one seems to have gathered the courage to do a new release. Plus we all have a serious lack of time. After https://svnweb.freebsd.org/ports?view=revision&sortby=date&revision=559045 got error: [javac] /tmp/work/usr/ports/lang/bsh/work/beanshell-2.1.0/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 A commit references this bug: Author: pfg Date: Thu Dec 24 20:51:12 UTC 2020 New revision: 559189 URL: https://svnweb.freebsd.org/changeset/ports/559189 Log: lang/bsh: use Java 8 While 2.1.0 is an improvement it still doesn't include all the fixes for deprecated APIs in JDK 11+. Upstream's master branch does much better but there is no easy patch, so set JDK to 8 for now. PR: 251824 Approved by: thierry (mentor, implicit) Changes: head/lang/bsh/Makefile (In reply to VVD from comment #6) Thanks for reporting. Unfortunately there is no easy fix at this time, although upstream did solve the issue. |