Opened 7 years ago

Closed 7 years ago

#55659 closed defect (fixed)

bazel doesn't build with JDK 9.0.1

Reported by: korni Owned by: RootFunction
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: bazel

Description

The JDK version is determined by

% /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin/javac -version
javac 9.0.1

bazel-0.5.2-dist/scripts/bootstrap/buildenv.sh, line 292:

if [[ "$JAVAC_VERSION" =~ javac\ (1\.([789]|[1-9][0-9])).*$ ]]; then
    JAVAC_VERSION=${BASH_REMATCH[1]}

expects something like

% /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/javac -version
javac 1.7.0_79

and thus is unable to retrieve the version number, breaking the build.

Change History (5)

comment:1 Changed 7 years ago by kencu (Ken)

comment:2 Changed 7 years ago by kencu (Ken)

Oh, actually there are two PR's to update bazel. I used this one <https://github.com/macports/macports-ports/pull/1098>. but updated it further to 0.9.0 <https://github.com/kencu/myports/tree/master/devel/bazel>.

We should really get one of these committed.

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Keywords: bazel jdk java removed
Owner: set to RootFunction
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers bazel), if any.

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

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