[v8] - Export some more symbols for node.js

Lubomir Rintel lkundrak at fedoraproject.org
Tue Jan 11 16:55:12 UTC 2011


commit 26972f5d7c8555743c7d9626765f8ce9cb91eb1e
Author: Lubomir Rintel <lkundrak at v3.sk>
Date:   Tue Jan 11 17:53:14 2011 +0100

    - Export some more symbols for node.js

 v8-3.0.0.1-export.patch |   30 ++++++++++++++++++++++++++++++
 v8.spec                 |   11 ++++++++---
 2 files changed, 38 insertions(+), 3 deletions(-)
---
diff --git a/v8-3.0.0.1-export.patch b/v8-3.0.0.1-export.patch
new file mode 100644
index 0000000..eaf8e81
--- /dev/null
+++ b/v8-3.0.0.1-export.patch
@@ -0,0 +1,30 @@
+From 57dbb6d9e624cf059b79502b698e4aea3ebb372d Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Tue, 28 Dec 2010 10:47:36 +0100
+Subject: [PATCH] Export v8::Object::GetIndexedPropertiesExternalArrayData*()
+
+Node.js uses those.
+---
+ include/v8.h |    6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/include/v8.h b/include/v8.h
+index 8ecf63a..6a656b4 100644
+--- a/include/v8.h
++++ b/include/v8.h
+@@ -1647,9 +1647,9 @@ class Object : public Value {
+       ExternalArrayType array_type,
+       int number_of_elements);
+   bool HasIndexedPropertiesInExternalArrayData();
+-  void* GetIndexedPropertiesExternalArrayData();
+-  ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
+-  int GetIndexedPropertiesExternalArrayDataLength();
++  V8EXPORT void* GetIndexedPropertiesExternalArrayData();
++  V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
++  V8EXPORT int GetIndexedPropertiesExternalArrayDataLength();
+ 
+   V8EXPORT static Local<Object> New();
+   static inline Object* Cast(Value* obj);
+-- 
+1.7.3.2
+
diff --git a/v8.spec b/v8.spec
index 6ef5a41..f28b17d 100644
--- a/v8.spec
+++ b/v8.spec
@@ -2,7 +2,7 @@
 
 Name:           v8
 Version:        3.0.0.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        JavaScript Engine
 Group:          System Environment/Libraries
 License:        BSD
@@ -16,6 +16,7 @@ Source0:        %{name}-%{version}.tar.gz
 Source1:        v8-js2c
 Patch0:         v8-2.5.9-ccflags.patch
 Patch1:         v8-2.5.9-shebangs.patch
+Patch2:         v8-3.0.0.1-export.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 ExclusiveArch:  %{ix86} x86_64 %{arm}
 BuildRequires:  scons, readline-devel
@@ -39,11 +40,12 @@ Development headers, libraries and tools for v8.
 %setup -q
 %patch0 -p1 -b .ccflags
 %patch1 -p1 -b .shebangs
+%patch2 -p1 -b .export
 find \( -name '*.cc' -o -name '*.h' \) -print0 |xargs -0 chmod -x
 
 
 %build
-# Certains options enabled by -O2 causes binaries to crash immediately, for reasons yet unknown,
+# Certain options enabled by -O2 causes binaries to crash immediately, for reasons yet unknown,
 CCFLAGS="%{optflags} -fno-reorder-blocks -fno-strict-aliasing" \
         scons %{_smp_mflags} env='CCFLAGS: -fPIC' \
         library d8 cctests sample \
@@ -98,12 +100,15 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Dec 28 2010 Lubomir Rintel <lkundrak at v3.sk> - 3.0.0.1-3
+- Export some more symbols for node.js
+
 * Mon Dec 13 2010 Lubomir Rintel <lkundrak at v3.sk> - 3.0.0.1-2
 - Remove files with broken licenses
 - Fix mode of files in -debuginfo (this time for real)
 
 * Sat Dec 11 2010 Lubomir Rintel <lkundrak at v3.sk> - 3.0.0.1-1
-- Fix mode of a header file in -debuginfo
+- Fix mode of a header file in -debuginfo 
 - Newer version
 
 * Fri Dec 10 2010 Lubomir Rintel <lkundrak at v3.sk> - 2.5.9-2


More information about the scm-commits mailing list