Created attachment 220475 [details] Patch This change will update the default version of Java to 11, which is the current LTS release. I expect this will break some ports, these will need to be altered to specify that they require Java 8.
Yes! Yes! Yes! It's time to move forward! Time for maintainers and developers to update software to support Java 11. I'm using "DEFAULT_VERSIONS+= java=11" for at lest 2 years already, found several incompatibilities and fixed their or specify they require Java 8. Thanks!
lang/bsh: ============================================================================ compile: [javac] /tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/build.xml:176: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 155 source files to /tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/classes [javac] [javac] WARNING [javac] [javac] The -source switch defaults to 9 in JDK 9. [javac] If you specify -target 1.5 you now must also specify -source 1.5. [javac] Ant will implicitly add -source 1.5 for you. Please change your build file. [javac] warning: [options] bootstrap class path not set in conjunction with -source 5 [javac] error: Source option 5 is no longer supported. Use 6 or later. [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later. BUILD FAILED /tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/build.xml:176: Compile failed; see the compiler error output for details. ============================================================================ After just replace 1.5 with 1.6: [javac] /tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/src/bsh/util/AWTConsole.java:217: warning: TextComponentPeer is internal proprietary API and may be removed in a future release [javac] ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( [javac] ^ [javac] /tmp/work/usr/ports/lang/bsh/work/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 ============================================================================ Easy hack: --- Makefile.orig +++ Makefile @@ -15,7 +15,7 @@ GH_ACCOUNT= beanshell GH_PROJECT= beanshell -USE_JAVA= yes +USE_JAVA= 8 JAVA_BUILD= 8 USE_ANT= yes ============================================================================ More hard way is to update port to latest git commit: https://github.com/beanshell/beanshell
While I'd like to see everything work with OpenJDK 11, I'm going to mark ports as requiring Java 8 unless the upgrade is trivial. This is mostly due to time constraints. If you're interested, I'd encourage you to submit update patches to the maintainers instead.
I'm using: Build and work fine with OpenJDK 11: antlr3-3.5.2_1 apache-ant-1.10.8 apache-commons-codec-1.15 apache-commons-daemon-1.2.3 apache-commons-httpclient-3.1_2 apache-commons-lang3-3.8.1 apache-commons-logging-1.2 c3p0-0.9.5.3 davmail-5.5.1 dbvis-11.0.3 eclipse-4.16 gradle62-6.2.2_1 hamcrest-1.3 jd-gui-1.6.6 junit-4.12 maven-3.6.3 mysql-connector-java-8.0.22 openjfx14-14.0.2.1+1_1 postgresql-jdbc-42.2.16 projectlibre-1.8.0_1 protobuf-java-3.11.1 slf4j-1.7.21 soapui-5.5.0 sql-workbench-127 sqldeveloper-20.2.0.175.1842_1 squirrel-sql-4.1.0 swt-4.11 tagsoup-1.2.1_1 tomcat-devel-10.0.0 tomcat7-7.0.107 tomcat85-8.5.61 tomcat9-9.0.41 Require OpenJDK 8: bsh-2.0.b6_1 icedtea-web-1.8.4_6 java3d-1.5.2_5 sweethome3d-6.4.2_1 Ports already patched (with my patches): icedtea-web-1.8.4_6 - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248197 java3d-1.5.2_5 and sweethome3d-6.4.2_1 - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248169 So I know bsh-2.0.b6_1 only need the patch - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251824
(In reply to Greg Lewis from comment #3) bsh-2.0.b6_1 is fixed - all ports from my list are ready for this update.
New failure logs on 12.1 i386: http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/gervill-1.0.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/cytoscape-3.6.1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/figtree-1.4.4.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jalview-2.07_3.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/digital-0.25.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/rxtx-openjdk11-2.2p2_4.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/hsqldb-2.3.4.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jrrd-1.1.4.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/libgda5-jdbc-5.2.10.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/charva-1.1.4_6.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/hadoop2-2.7.2_3.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/libmatthew-0.8.1_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/libreadline-java-0.8.0_7.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/luajava-1.1_2.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/sabre-20100501.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/statcvs-0.7.0_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/statsvn-0.7.0_5.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/dnsjava-2.1.9.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/gogui-1.4.10.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jin-2.14.1_4.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/lizzie-0.6.105_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/lwjgl-2.9.4.20161208.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jogamp-jogl-2.3.2_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jogl-1.1.1_8.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/lightzone-4.1.8.3_7.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/apache-commons-lang-2.6.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/eclipse-ecj-4.4.2_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jasmin-2.4_1,1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/javamail-1.6.2.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jcalendar-1.3.3.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jdom-1.1.1,1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jxgrabkey-0.3.2.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/java-sigar-1.7.3_10.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/sqlitejdbc-056_2.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/rhino-1.7.r4_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/apache-commons-math-3.6.1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jtransforms-2.4.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/freeguide-0.11.1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jbidwatcher-2.5.6_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/iriverter-0.16_10.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jicofo-1.0.555_2.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jitsi-videobridge-2.1.183_3.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/vuze-5.7.4.0_2.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jicmp-1.4.4.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jicmp6-1.2.3.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jsch-0.1.54.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/pdf-renderer-0.9.1,1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/colt-1.2.0_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/Jmol-14.31.18.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/OpenSim-core-4.1_3.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/owasp-dependency-check-3.1.1_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/xml-security-1.5.5_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/bulk_extractor-1.5.5_10.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/hfsexplorer-0.23.1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jvmtop-0.8.0.27_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/jalingo-0.6.0_3.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/xmlenc-0.52_2.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/guacamole-client-1.2.0.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/helma-1.7.0_1.log http://pb2.nyi.freebsd.org/data/121i386-default-PR244494/2020-12-20_15h09m28s/logs/errors/nginx-full-1.18.0_6,2.log
Thanks Antoine! I'll start working through that list after Christmas
A commit references this bug: Author: glewis Date: Sat Dec 26 20:07:27 UTC 2020 New revision: 559308 URL: https://svnweb.freebsd.org/changeset/ports/559308 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/audio/gervill/Makefile
A commit references this bug: Author: glewis Date: Sat Dec 26 23:01:21 UTC 2020 New revision: 559318 URL: https://svnweb.freebsd.org/changeset/ports/559318 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/biology/jalview/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 02:28:29 UTC 2020 New revision: 559332 URL: https://svnweb.freebsd.org/changeset/ports/559332 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/devel/libreadline-java/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 02:31:06 UTC 2020 New revision: 559334 URL: https://svnweb.freebsd.org/changeset/ports/559334 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/devel/statcvs/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 02:33:04 UTC 2020 New revision: 559335 URL: https://svnweb.freebsd.org/changeset/ports/559335 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/devel/statsvn/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 03:00:51 UTC 2020 New revision: 559336 URL: https://svnweb.freebsd.org/changeset/ports/559336 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/java/apache-commons-lang/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 04:17:26 UTC 2020 New revision: 559339 URL: https://svnweb.freebsd.org/changeset/ports/559339 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/java/eclipse-ecj/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 04:24:02 UTC 2020 New revision: 559340 URL: https://svnweb.freebsd.org/changeset/ports/559340 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/java/jasmin/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 05:07:01 UTC 2020 New revision: 559343 URL: https://svnweb.freebsd.org/changeset/ports/559343 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/java/jcalendar/Makefile
I wonder why JAVA_BUILD= 8 stopped working. It was used to force building the package with JDK 8 but we could still use the packages with JDK 11+.
A commit references this bug: Author: glewis Date: Sun Dec 27 18:56:42 UTC 2020 New revision: 559402 URL: https://svnweb.freebsd.org/changeset/ports/559402 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/java/jdom/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 19:00:15 UTC 2020 New revision: 559403 URL: https://svnweb.freebsd.org/changeset/ports/559403 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/java/sigar/Makefile
A commit references this bug: Author: glewis Date: Sun Dec 27 19:05:28 UTC 2020 New revision: 559404 URL: https://svnweb.freebsd.org/changeset/ports/559404 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/misc/freeguide/Makefile
A commit references this bug: Author: glewis Date: Tue Dec 29 19:17:03 UTC 2020 New revision: 559606 URL: https://svnweb.freebsd.org/changeset/ports/559606 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/www/helma/Makefile
A commit references this bug: Author: glewis Date: Wed Dec 30 00:07:22 UTC 2020 New revision: 559633 URL: https://svnweb.freebsd.org/changeset/ports/559633 Log: Restrict to Java 8, since this doesn't compile with Java 11 PR: 251774 Changes: head/textproc/xmlenc/Makefile
A commit references this bug: Author: glewis Date: Wed Dec 30 01:51:11 UTC 2020 New revision: 559635 URL: https://svnweb.freebsd.org/changeset/ports/559635 Log: Target Java 6 rather than Java 5 so this compiles with Java 11 PR: 251774 Changes: head/sysutils/hfsexplorer/files/ head/sysutils/hfsexplorer/files/patch-build.xml
ping!
(In reply to Greg Lewis from comment #0) Please apply the fix in bug #265687 to allow openjdk11 to be built on 13-STABLE and -CURRENT before openjdk11 is made the default version!
ping
games/lwjgl 2.9.x doesn't support Java 11 - it need patch: -USE_JAVA= yes +USE_JAVA= 8 Added maintainer to CC. Also committed new port games/lwjgl3 with requirements Java 8 and 17+ for build and 17+ for run.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9d92e4bc7039624c251cd32e0e96f0cf84309585 commit 9d92e4bc7039624c251cd32e0e96f0cf84309585 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2024-05-31 10:31:31 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-05-31 10:37:43 +0000 games/lwjgl: set USE_JAVA=8, doesn't build with newer versions of Java While here: - fix dependencies - added x11 and xext; - pet portclippy. PR: 251774 Approved by: freebsd@skinc.ru (maintainer, timeout > 1 month) games/lwjgl/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)