aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-07-03 18:39:45 -0500
committerDavid Barksdale <amatus@amatus.name>2014-07-03 18:39:45 -0500
commit1d9d8e0b95551263ef605bba271bbd98c6ab5ecf (patch)
tree61cd9b6e775c1c79c968daeeb66555f139dd57e5
parentc3e22d33f26319b4b2b7e3931b9e8e63dfaa896a (diff)
[build-utils/emscripten] Fix IDBFS for webworkers
-rw-r--r--gnunet-build/packages/build-utils/emscripten/Buildrules2
-rw-r--r--gnunet-build/packages/build-utils/emscripten/files/emscripten-1.18.0-fix-idbfs-for-webworkers.patch19
2 files changed, 20 insertions, 1 deletions
diff --git a/gnunet-build/packages/build-utils/emscripten/Buildrules b/gnunet-build/packages/build-utils/emscripten/Buildrules
index 7631362..a8d2e6a 100644
--- a/gnunet-build/packages/build-utils/emscripten/Buildrules
+++ b/gnunet-build/packages/build-utils/emscripten/Buildrules
@@ -1,7 +1,7 @@
VERSION="1.18.0"
DESCRIPTION="Emscripten is an LLVM-to-JavaScript compiler."
SOURCE_URI="git://github.com/amatus/${NAME}.git?${VERSION}&archive=${NAME}-${VERSION}.${ARCHIVE_FORMAT}"
-PATCHES="import-symbols"
+PATCHES="import-symbols fix-idbfs-for-webworkers"
# XXX: these are actually RDEPENDS but that's broken
BDEPENDS="build-utils/emscripten-fastcomp build-utils/node"
diff --git a/gnunet-build/packages/build-utils/emscripten/files/emscripten-1.18.0-fix-idbfs-for-webworkers.patch b/gnunet-build/packages/build-utils/emscripten/files/emscripten-1.18.0-fix-idbfs-for-webworkers.patch
new file mode 100644
index 0000000..479c7eb
--- /dev/null
+++ b/gnunet-build/packages/build-utils/emscripten/files/emscripten-1.18.0-fix-idbfs-for-webworkers.patch
@@ -0,0 +1,19 @@
+commit e1ba13fb602b82c80ead2cc0bafc9341993b3f53
+Author: David Barksdale <amatus@amatus.name>
+Date: Thu Jul 3 18:09:52 2014 -0500
+
+ Fix IDBFS for webworkers
+
+diff --git a/src/library_idbfs.js b/src/library_idbfs.js
+index 8082c19..d9718e8 100644
+--- a/src/library_idbfs.js
++++ b/src/library_idbfs.js
+@@ -3,7 +3,7 @@ mergeInto(LibraryManager.library, {
+ $IDBFS: {
+ dbs: {},
+ indexedDB: function() {
+- return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
++ return indexedDB || window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
+ },
+ DB_VERSION: 21,
+ DB_STORE_NAME: 'FILE_DATA',