libv8 3.11.8.3 → 3.11.8.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  *.a
5
5
  .rbx/
6
6
  Gemfile.lock
7
+ Makefile
7
8
  pkg/*
8
9
  tmp/*
9
10
  lib/libv8/build/*
data/README.md CHANGED
@@ -31,8 +31,8 @@ To get the source, these commands will get you started:
31
31
 
32
32
  git clone git@github.com:cowboyd/libv8
33
33
  cd libv8
34
- git submodule update --init
35
34
  bundle install
35
+ bundle exec rake checkout
36
36
  bundle exec rake compile
37
37
 
38
38
 
data/Rakefile CHANGED
@@ -27,7 +27,8 @@ task :checkout do
27
27
  # Fix gyp trying to build platform-linux on FreeBSD 9 and FreeBSD 10.
28
28
  # Based on: https://chromiumcodereview.appspot.com/10079030/patch/1/2
29
29
  sh "patch -N -p0 -d vendor/v8 < patches/add-freebsd9-and-freebsd10-to-gyp-GetFlavor.patch"
30
- sh "patch -N -p1 -d vendor/v8 < patches/fPIC-on-linux-x64.patch"
30
+ sh "patch -N -p1 -d vendor/v8 < patches/fPIC-on-x64.patch"
31
+ sh "patch -N -p1 -d vendor/v8 < patches/gcc42-on-freebsd.patch" if RUBY_PLATFORM.include?("freebsd") && !system("pkg_info | grep gcc-4")
31
32
  end
32
33
 
33
34
  desc "compile v8 via the ruby extension mechanism"
@@ -8,7 +8,9 @@ include Libv8::Arch
8
8
  include Libv8::Make
9
9
  include Libv8::Compiler
10
10
 
11
+ profile = enable_config('debug') ? 'debug' : 'release'
12
+
11
13
  Dir.chdir(File.expand_path '../../../vendor/v8', __FILE__) do
12
- puts `env CXX=#{compiler} LINK=#{compiler} #{make} #{libv8_arch}.release GYPFLAGS="-Dhost_arch=#{libv8_arch}"`
14
+ puts `env CXX=#{compiler} LINK=#{compiler} #{make} #{libv8_arch}.#{profile} GYPFLAGS="-Dhost_arch=#{libv8_arch}"`
13
15
  end
14
16
  exit $?.exitstatus
@@ -1,17 +1,28 @@
1
- require 'mkmf'
1
+ require 'rbconfig'
2
+
2
3
  require 'libv8/arch'
3
4
  module Libv8
4
5
 
5
6
  module_function
6
7
 
8
+ def config
9
+ Config::MAKEFILE_CONFIG
10
+ end
11
+
7
12
  def libv8_object(name)
8
- filename = "#{libv8_source_path}/out/#{Libv8::Arch.libv8_arch}.release/libv8_#{name}.#{$LIBEXT}"
13
+ filename = "#{libv8_profile}/libv8_#{name}.#{config['LIBEXT']}"
9
14
  unless File.exists? filename
10
- filename = "#{libv8_source_path}/out/#{Libv8::Arch.libv8_arch}.release/obj.target/tools/gyp/libv8_#{name}.#{$LIBEXT}"
15
+ filename = "#{libv8_profile}/obj.target/tools/gyp/libv8_#{name}.#{config['LIBEXT']}"
11
16
  end
12
17
  return filename
13
18
  end
14
19
 
20
+ def libv8_profile
21
+ base = "#{libv8_source_path}/out/#{Libv8::Arch.libv8_arch}"
22
+ debug = "#{base}.debug"
23
+ File.exists?(debug) ? debug : "#{base}.release"
24
+ end
25
+
15
26
  def libv8_base
16
27
  libv8_object :base
17
28
  end
@@ -1,3 +1,3 @@
1
1
  module Libv8
2
- VERSION = "3.11.8.3"
2
+ VERSION = "3.11.8.4"
3
3
  end
@@ -0,0 +1,14 @@
1
+ diff --git a/build/standalone.gypi b/build/standalone.gypi
2
+ index ebdf557..c7a59bc 100644
3
+ --- a/build/standalone.gypi
4
+ +++ b/build/standalone.gypi
5
+ @@ -98,6 +98,9 @@
6
+ [ 'OS=="linux"', {
7
+ 'cflags': [ '-ansi' ],
8
+ }],
9
+ + [ '(OS=="linux" or OS=="freebsd") and v8_target_arch=="x64" and component=="static_library"', {
10
+ + 'cflags': [ '-fPIC' ],
11
+ + }],
12
+ [ 'visibility=="hidden"', {
13
+ 'cflags': [ '-fvisibility=hidden' ],
14
+ }],
@@ -6,8 +6,8 @@ index ebdf557..c7a59bc 100644
6
6
  [ 'OS=="linux"', {
7
7
  'cflags': [ '-ansi' ],
8
8
  }],
9
- + [ 'OS=="linux" and v8_target_arch=="x64" and component=="static_library"', {
10
- + 'cflags': [ '-fPIC', ],
9
+ + [ 'OS=="freebsd"', {
10
+ + 'cflags': [ '-fno-strict-aliasing', ],
11
11
  + }],
12
12
  [ 'visibility=="hidden"', {
13
13
  'cflags': [ '-fvisibility=hidden' ],
@@ -98,8 +98,8 @@
98
98
  [ 'OS=="linux"', {
99
99
  'cflags': [ '-ansi' ],
100
100
  }],
101
- [ 'OS=="linux" and v8_target_arch=="x64" and component=="static_library"', {
102
- 'cflags': [ '-fPIC', ],
101
+ [ '(OS=="linux" or OS=="freebsd") and v8_target_arch=="x64" and component=="static_library"', {
102
+ 'cflags': [ '-fPIC' ],
103
103
  }],
104
104
  [ 'visibility=="hidden"', {
105
105
  'cflags': [ '-fvisibility=hidden' ],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libv8
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.8.3
4
+ version: 3.11.8.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-07 00:00:00.000000000 Z
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -83,7 +83,8 @@ files:
83
83
  - lib/libv8/version.rb
84
84
  - libv8.gemspec
85
85
  - patches/add-freebsd9-and-freebsd10-to-gyp-GetFlavor.patch
86
- - patches/fPIC-on-linux-x64.patch
86
+ - patches/fPIC-on-x64.patch
87
+ - patches/gcc42-on-freebsd.patch
87
88
  - patches/src_platform-freebsd.cc.patch
88
89
  - spec/libv8_spec.rb
89
90
  - spec/spec_helper.rb
@@ -1778,27 +1779,21 @@ files:
1778
1779
  - vendor/v8/build/gyp/OWNERS
1779
1780
  - vendor/v8/build/gyp/PRESUBMIT.py
1780
1781
  - vendor/v8/build/gyp/pylib/gyp/__init__.py
1781
- - vendor/v8/build/gyp/pylib/gyp/__init__.pyc
1782
1782
  - vendor/v8/build/gyp/pylib/gyp/common.py
1783
- - vendor/v8/build/gyp/pylib/gyp/common.pyc
1784
1783
  - vendor/v8/build/gyp/pylib/gyp/easy_xml.py
1785
1784
  - vendor/v8/build/gyp/pylib/gyp/easy_xml_test.py
1786
1785
  - vendor/v8/build/gyp/pylib/gyp/generator/__init__.py
1787
- - vendor/v8/build/gyp/pylib/gyp/generator/__init__.pyc
1788
1786
  - vendor/v8/build/gyp/pylib/gyp/generator/dump_dependency_json.py
1789
1787
  - vendor/v8/build/gyp/pylib/gyp/generator/gypd.py
1790
1788
  - vendor/v8/build/gyp/pylib/gyp/generator/gypsh.py
1791
1789
  - vendor/v8/build/gyp/pylib/gyp/generator/make.py
1792
- - vendor/v8/build/gyp/pylib/gyp/generator/make.pyc
1793
1790
  - vendor/v8/build/gyp/pylib/gyp/generator/msvs.py
1794
1791
  - vendor/v8/build/gyp/pylib/gyp/generator/msvs_test.py
1795
1792
  - vendor/v8/build/gyp/pylib/gyp/generator/ninja.py
1796
1793
  - vendor/v8/build/gyp/pylib/gyp/generator/ninja_test.py
1797
1794
  - vendor/v8/build/gyp/pylib/gyp/generator/scons.py
1798
1795
  - vendor/v8/build/gyp/pylib/gyp/generator/xcode.py
1799
- - vendor/v8/build/gyp/pylib/gyp/generator/xcode.pyc
1800
1796
  - vendor/v8/build/gyp/pylib/gyp/input.py
1801
- - vendor/v8/build/gyp/pylib/gyp/input.pyc
1802
1797
  - vendor/v8/build/gyp/pylib/gyp/mac_tool.py
1803
1798
  - vendor/v8/build/gyp/pylib/gyp/msvs_emulation.py
1804
1799
  - vendor/v8/build/gyp/pylib/gyp/MSVSNew.py
@@ -1812,12 +1807,9 @@ files:
1812
1807
  - vendor/v8/build/gyp/pylib/gyp/SCons.py
1813
1808
  - vendor/v8/build/gyp/pylib/gyp/sun_tool.py
1814
1809
  - vendor/v8/build/gyp/pylib/gyp/system_test.py
1815
- - vendor/v8/build/gyp/pylib/gyp/system_test.pyc
1816
1810
  - vendor/v8/build/gyp/pylib/gyp/win_tool.py
1817
1811
  - vendor/v8/build/gyp/pylib/gyp/xcode_emulation.py
1818
- - vendor/v8/build/gyp/pylib/gyp/xcode_emulation.pyc
1819
1812
  - vendor/v8/build/gyp/pylib/gyp/xcodeproj_file.py
1820
- - vendor/v8/build/gyp/pylib/gyp/xcodeproj_file.pyc
1821
1813
  - vendor/v8/build/gyp/pylib/gyp/xml_fix.py
1822
1814
  - vendor/v8/build/gyp/pylintrc
1823
1815
  - vendor/v8/build/gyp/samples/samples
@@ -2523,7 +2515,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
2523
2515
  version: '0'
2524
2516
  segments:
2525
2517
  - 0
2526
- hash: 2167820676660108591
2518
+ hash: 44742288692122060
2527
2519
  required_rubygems_version: !ruby/object:Gem::Requirement
2528
2520
  none: false
2529
2521
  requirements:
@@ -2532,7 +2524,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2532
2524
  version: '0'
2533
2525
  segments:
2534
2526
  - 0
2535
- hash: 2167820676660108591
2527
+ hash: 44742288692122060
2536
2528
  requirements: []
2537
2529
  rubyforge_project: libv8
2538
2530
  rubygems_version: 1.8.24