Closed mpeschel10 closed 1 year ago
FWIW Upstream Issue in Bazel: https://github.com/bazelbuild/bazel/issues/15531#issuecomment-1146666693
Doing the workaround of setting java 11 manually since 2022, would be great to have this in the PKGBUILD.
Hey @mpeschel10 this is a great idea. Let's loop in the related issue this PR closes. patches #22
By default on Arch,
$PATH
includes/usr/lib/jvm/default
. Since I installedjdk-openjdk
beforejdk11-openjdk
, my default points to java 20:Even though I have java 11 installed, which bazel needs, java 20 is the default. This appears to cause the following error:
This issue can be fixed by putting java 11 first in PATH:
Therefore, this pull request adds
PATH="/usr/lib/jvm/java-11-openjdk/bin:$PATH"
to PKGBUILD. I also remembered to bump pkgrel and .SRCINFO!