aboutsummaryrefslogtreecommitdiffstats
path: root/testing/emscripten/closurecompiler-externs-path.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-03 19:51:18 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-03 19:52:59 +0200
commitc80e424f4e7cdf60cc2b949d4139422ebed6783c (patch)
tree4da5a8eb4c8bbee0b2753c6364ecd5fa580ea7f3 /testing/emscripten/closurecompiler-externs-path.patch
parent911d1a0406cf86f7d992807a16a4540b524bed25 (diff)
downloadaports-c80e424f4e7cdf60cc2b949d4139422ebed6783c.tar.bz2
aports-c80e424f4e7cdf60cc2b949d4139422ebed6783c.tar.xz
testing/emscripten: fix issues with Closure Compiler
And relax version bound for emscripten-optimizer.
Diffstat (limited to 'testing/emscripten/closurecompiler-externs-path.patch')
-rw-r--r--testing/emscripten/closurecompiler-externs-path.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/emscripten/closurecompiler-externs-path.patch b/testing/emscripten/closurecompiler-externs-path.patch
new file mode 100644
index 0000000000..d760156c8d
--- /dev/null
+++ b/testing/emscripten/closurecompiler-externs-path.patch
@@ -0,0 +1,17 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Mon, 4 Apr 2017 19:30:00 +0200
+Subject: [PATCH] Fix path to closurecompiler-externs
+
+We ship closurecompiler-externs in package node-closurecompiler-externs.
+
+--- a/tools/shared.py
++++ b/tools/shared.py
+@@ -2130,7 +2130,7 @@
+ raise Exception('closure compiler check failed')
+
+ CLOSURE_EXTERNS = path_from_root('src', 'closure-externs.js')
+- NODE_EXTERNS_BASE = path_from_root('third_party', 'closure-compiler', 'node-externs')
++ NODE_EXTERNS_BASE = '/usr/lib/node_modules/closurecompiler-externs'
+ NODE_EXTERNS = os.listdir(NODE_EXTERNS_BASE)
+ NODE_EXTERNS = [os.path.join(NODE_EXTERNS_BASE, name) for name in NODE_EXTERNS
+ if name.endswith('.js')]