Bug 251774 - Mk/bsd.default-versions.mk: Change default version of Java to 11
Summary: Mk/bsd.default-versions.mk: Change default version of Java to 11
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-12 06:06 UTC by Greg Lewis
Modified: 2020-12-30 01:51 UTC (History)
3 users (show)

See Also:
glewis: exp-run?


Attachments
Patch (439 bytes, patch)
2020-12-12 06:06 UTC, Greg Lewis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Lewis freebsd_committer 2020-12-12 06:06:21 UTC
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.
Comment 1 VVD 2020-12-12 14:41:24 UTC
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!
Comment 2 VVD 2020-12-12 15:00:42 UTC
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
Comment 3 Greg Lewis freebsd_committer 2020-12-13 20:06:58 UTC
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.
Comment 4 VVD 2020-12-13 21:34:32 UTC
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
Comment 5 VVD 2020-12-14 02:19:17 UTC
(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.
Comment 6 Antoine Brodin freebsd_committer 2020-12-21 13:00:47 UTC
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
Comment 7 Greg Lewis freebsd_committer 2020-12-22 02:17:37 UTC
Thanks Antoine!  I'll start working through that list after Christmas
Comment 8 commit-hook freebsd_committer 2020-12-26 20:07:56 UTC
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
Comment 9 commit-hook freebsd_committer 2020-12-26 23:02:16 UTC
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
Comment 10 commit-hook freebsd_committer 2020-12-27 02:28:34 UTC
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
Comment 11 commit-hook freebsd_committer 2020-12-27 02:31:37 UTC
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
Comment 12 commit-hook freebsd_committer 2020-12-27 02:33:38 UTC
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
Comment 13 commit-hook freebsd_committer 2020-12-27 03:01:42 UTC
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
Comment 14 commit-hook freebsd_committer 2020-12-27 04:17:50 UTC
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
Comment 15 commit-hook freebsd_committer 2020-12-27 04:24:53 UTC
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
Comment 16 commit-hook freebsd_committer 2020-12-27 05:07:57 UTC
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
Comment 17 Pedro F. Giffuni freebsd_committer 2020-12-27 15:33:29 UTC
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+.
Comment 18 commit-hook freebsd_committer 2020-12-27 18:57:19 UTC
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
Comment 19 commit-hook freebsd_committer 2020-12-27 19:00:21 UTC
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
Comment 20 commit-hook freebsd_committer 2020-12-27 19:06:22 UTC
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
Comment 21 commit-hook freebsd_committer 2020-12-29 19:17:38 UTC
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
Comment 22 commit-hook freebsd_committer 2020-12-30 00:08:15 UTC
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
Comment 23 commit-hook freebsd_committer 2020-12-30 01:51:26 UTC
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