File chromium-91-java-only-allowed-in-android-builds.patch of Package chromium-ffmpeg-extra (Revision 4407c879c2f3d7778ebd138b74f5810a)

Currently displaying revision 4407c879c2f3d7778ebd138b74f5810a , Show latest

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