Add OpenJDK 11 archives for aarch64 (arm64). This allows users to build Bazel on arm64 machines without requiring any flags. RELNOTES: Bazel can now be bootstrapped and built on arm64 platforms without requiring any flags or patches. PiperOrigin-RevId: 255391424
diff --git a/src/minimize_jdk.sh b/src/minimize_jdk.sh index cfa7760..fb9186b 100755 --- a/src/minimize_jdk.sh +++ b/src/minimize_jdk.sh
@@ -51,7 +51,10 @@ mv "tmp.$$/reduced.zip" "$out" rm -rf "tmp.$$" else - tar xf "$fulljdk" + # The --no-same-owner flag instructs tar to not try to chown extracted files + # to the owner stored in the archive - it will try to do that when running as + # root, but fail when running inside Docker, so we explicitly disable it. + tar xf "$fulljdk" --no-same-owner cd zulu* ./bin/jlink --module-path ./jmods/ --add-modules "$modules" \ --vm=server --strip-debug --no-man-pages \