[MacPorts] #55530: junit @4.6: error: Source option 1.5 is no longer supported. Use 1.6 or later. (was: Installation subversion-javahlbindings failed)

MacPorts noreply at macports.org
Sun Dec 17 00:16:57 UTC 2017


#55530: junit @4.6: error: Source option 1.5 is no longer supported. Use 1.6 or
later.
-------------------------+-----------------
  Reporter:  filipnelis  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  junit       |
-------------------------+-----------------
Changes (by ryandesign):

 * port:   => junit


Old description:

> When performing the following installation: sudo port install subversion-
> javahlbindings +no_bdb +universal
> I get the following error:
> '''Error''': Failed to build junit: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_junit/junit/main.log
> for details.
> '''Error''': Follow https://guide.macports.org/#project.tickets to report
> a bug.
> '''Error''': Processing of port subversion-javahlbindings failed

New description:

 When performing the following installation: sudo port install subversion-
 javahlbindings +no_bdb +universal
 I get the following error:
 {{{
 Error: Failed to build junit: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_junit/junit/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port subversion-javahlbindings failed
 }}}

--

Comment:

 The log says:

 {{{
 :info:build     [javac]           WARNING
 :info:build     [javac]
 :info:build     [javac] The -source switch defaults to 9 in JDK 9.
 :info:build     [javac] If you specify -target 1.5 you now must also
 specify -source 1.5.
 :info:build     [javac] Ant will implicitly add -source 1.5 for you.
 Please change your build file.
 :info:build     [javac] warning: [options] bootstrap class path not set in
 conjunction with -source 1.5
 :info:build     [javac] error: Source option 1.5 is no longer supported.
 Use 1.6 or later.
 :info:build     [javac] error: Target option 1.5 is no longer supported.
 Use 1.6 or later.
 }}}

 The junit port is very old and may just need to be updated. I tried to do
 that years ago and failed; see #27086. Maybe the situation has improved
 since then.

--
Ticket URL: <https://trac.macports.org/ticket/55530#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list