[MacPorts] #55659: bazel doesn't build with JDK 9.0.1
MacPorts
noreply at macports.org
Tue Jan 9 13:29:08 UTC 2018
#55659: bazel doesn't build with JDK 9.0.1
------------------------------+-------------------
Reporter: korni | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Keywords: bazel, jdk, java | Port: bazel
------------------------------+-------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/55659>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list