Opened 7 years ago

Closed 5 years ago

#55530 closed defect (fixed)

junit @4.6: error: Source option 1.5 is no longer supported. Use 1.6 or later.

Reported by: filipnelis Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dkarr78 (David Karr), pierswalter (Piers Uso Walter), libsystem-ethan, MacTrophy, chrstphrchvz (Christopher Chavez)
Port: junit

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Attachments (1)

main.log (45.6 KB) - added by filipnelis 7 years ago.

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by filipnelis

Attachment: main.log added

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: junit added
Summary: Installation subversion-javahlbindings failedjunit @4.6: error: Source option 1.5 is no longer supported. Use 1.6 or later.

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.

comment:2 Changed 7 years ago by ProgrammingPoet (Gregory Gelfond)

This also affects the ports: swi-prolog-* and others for which unit is a dependency.

comment:3 Changed 7 years ago by ianroberts (Ian Roberts)

Why does JUnit need to build from source anyway? The "build" process for the apache-ant port seems to simply download the already-compiled binary distribution and install that, could JUnit do something similar?

comment:4 Changed 7 years ago by dkarr78 (David Karr)

Cc: dkarr78 added

comment:5 Changed 7 years ago by pierswalter (Piers Uso Walter)

Cc: pierswalter added

comment:6 Changed 7 years ago by libsystem-ethan

Cc: libsystem-ethan added

comment:7 Changed 6 years ago by sealinglip

I've encountered this problem too!

comment:8 Changed 6 years ago by MacTrophy

Cc: MacTrophy added

comment:9 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

I believe this is fixed by [a25b56bd7d/macports-ports] (junit 4.12_0): the port now uses the prebuilt binary distribution instead of building from the source distribution. Can this ticket be closed?

comment:10 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:11 Changed 5 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.