chromium-91-java-only-allowed-in-android-builds.patch 724 B

123456789101112131415161718
  1. References: https://bugs.chromium.org/p/chromium/issues/detail?id=1192875
  2. Index: chromium-91.0.4472.57/third_party/closure_compiler/compiler.py
  3. ===================================================================
  4. --- chromium-91.0.4472.57.orig/third_party/closure_compiler/compiler.py
  5. +++ chromium-91.0.4472.57/third_party/closure_compiler/compiler.py
  6. @@ -13,8 +13,7 @@ import subprocess
  7. _CURRENT_DIR = os.path.join(os.path.dirname(__file__))
  8. -_JAVA_PATH = os.path.join(_CURRENT_DIR, "..", "jdk", "current", "bin", "java")
  9. -assert os.path.isfile(_JAVA_PATH), "java only allowed in android builds"
  10. +_JAVA_PATH = "java"
  11. class Compiler(object):
  12. """Runs the Closure compiler on given source files to typecheck them