summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2013-05-23 16:04:32 -0400
committerShea Levy <shea@shealevy.com>2013-05-27 02:05:45 -0400
commit5e064cc87167f1ad916bac809dd5127374f36fc7 (patch)
treeda06607bf06512ff1a94e525ee728d8b077ce449 /pkgs
parentdddf921b51e2f6e510a31958d5a14fb452b43b73 (diff)
downloadnixlib-5e064cc87167f1ad916bac809dd5127374f36fc7.tar
nixlib-5e064cc87167f1ad916bac809dd5127374f36fc7.tar.gz
nixlib-5e064cc87167f1ad916bac809dd5127374f36fc7.tar.bz2
nixlib-5e064cc87167f1ad916bac809dd5127374f36fc7.tar.lz
nixlib-5e064cc87167f1ad916bac809dd5127374f36fc7.tar.xz
nixlib-5e064cc87167f1ad916bac809dd5127374f36fc7.tar.zst
nixlib-5e064cc87167f1ad916bac809dd5127374f36fc7.zip
v8: Bump
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/v8/default.nix10
-rw-r--r--pkgs/development/libraries/v8/fix-GetLocalizedMessage-usage.patch27
2 files changed, 34 insertions, 3 deletions
diff --git a/pkgs/development/libraries/v8/default.nix b/pkgs/development/libraries/v8/default.nix
index 1634be1363ae..b325c2a107de 100644
--- a/pkgs/development/libraries/v8/default.nix
+++ b/pkgs/development/libraries/v8/default.nix
@@ -5,18 +5,22 @@ assert readline != null;
 let
   system = stdenv.system;
   arch = if system == "i686-linux" then "ia32" else if system == "x86_64-linux" || system == "x86_64-darwin" then "x64" else "";
-  version = "3.11.10.22";
+  version = "3.14.5.9";
 in
 
 assert arch != "";
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation {
     name = "v8-${version}";
+
     src = fetchsvn {
       url = "http://v8.googlecode.com/svn/tags/${version}";
-      sha256 = "1bm3hg4pa17xvs8s895bwklxpaihl3f3vzghdg55s1wd0y4dj96j";
+      sha256 = "18qp5qp5xrb6f00w01cklz358yrl54pks963f5rwvwz82d8sfyqr";
+      name = "v8-${version}-src";
     };
 
+    patches = [ ./fix-GetLocalizedMessage-usage.patch ];
+
     configurePhase = ''
       mkdir build/gyp
       ln -sv ${gyp}/bin/gyp build/gyp/gyp
diff --git a/pkgs/development/libraries/v8/fix-GetLocalizedMessage-usage.patch b/pkgs/development/libraries/v8/fix-GetLocalizedMessage-usage.patch
new file mode 100644
index 000000000000..3bc0fff4d509
--- /dev/null
+++ b/pkgs/development/libraries/v8/fix-GetLocalizedMessage-usage.patch
@@ -0,0 +1,27 @@
+From dbe142c4eda0f15fad9fa85743dd11b81292fa8f Mon Sep 17 00:00:00 2001
+From: Timothy J Fontaine <tjfontaine@gmail.com>
+Date: Thu, 23 May 2013 13:57:59 -0700
+Subject: [PATCH] v8: fix GetLocalizedMessage usage
+
+As is the backport of the abort on uncaught exception wouldn't compile
+because we it was passing in `this` when it was unnecessary.
+---
+ deps/v8/src/isolate.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/isolate.cc b/src/isolate.cc
+index 04a438b..5a5293e 100644
+--- a/src/isolate.cc
++++ b/src/isolate.cc
+@@ -1161,7 +1161,7 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) {
+           (report_exception || can_be_caught_externally)) {
+         fatal_exception_depth++;
+         fprintf(stderr, "%s\n\nFROM\n",
+-          *MessageHandler::GetLocalizedMessage(this, message_obj));
++          *MessageHandler::GetLocalizedMessage(message_obj));
+         PrintCurrentStackTrace(stderr);
+         OS::Abort();
+       }
+-- 
+1.8.1.6
+