libv8 3.16.14.15 → 3.16.14.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +26 -10
- data/CHANGELOG.md +8 -1
- data/Rakefile +1 -1
- data/ext/libv8/location.rb +1 -1
- data/ext/libv8/patcher.rb +1 -1
- data/lib/libv8/version.rb +1 -1
- data/patches/disable-xcode-debugging.patch +11 -0
- data/patches/do-not-use-MAP_NORESERVE-on-freebsd.patch +31 -0
- data/release/x86_64-freebsd11/Vagrantfile +86 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 105ae60d9f5ca7cdf4670ae6e580382b9af9189ea3123f2e9467b84754542f2f
|
4
|
+
data.tar.gz: 149b4b7f3348fdd4503f4a3c1e3553c54c29e2eb4428c2166a59c6abd84e1b51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9938c279edcec49063afd4166f0a5831d61ee9a6f111295e613cb5c50335f2dcb8533897280d6d135021399691d1d3952ea508eedfee7bbd03308a342596c0c
|
7
|
+
data.tar.gz: 88ddf7171c252b6a2cda81cf1f88e85d32e295bfdad964bf8e03fc84028f248449f32acef18bbc189f4bb0d42d82fd4536f4b5ff02f4bd047c1e1a52e59540bb
|
data/.travis.yml
CHANGED
@@ -1,37 +1,53 @@
|
|
1
|
+
language: ruby
|
1
2
|
rvm:
|
2
|
-
- 2.
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 1.9.3
|
3
|
+
- 2.4.0
|
4
|
+
- 2.3.3
|
5
|
+
- 2.2
|
6
6
|
- rbx
|
7
7
|
matrix:
|
8
8
|
include:
|
9
|
-
- rvm:
|
9
|
+
- rvm: 2.4.0
|
10
|
+
os: osx
|
11
|
+
osx_image: xcode8.2
|
12
|
+
- rvm: 2.4.0
|
10
13
|
os: osx
|
11
14
|
osx_image: xcode7.3
|
12
15
|
- rvm: system
|
13
16
|
os: osx
|
14
|
-
osx_image:
|
17
|
+
osx_image: xcode8.2
|
15
18
|
- rvm: system
|
16
19
|
os: osx
|
17
|
-
osx_image:
|
18
|
-
|
20
|
+
osx_image: xcode7.3
|
21
|
+
- rvm: ruby-2.3.2-clang
|
22
|
+
env: CXX=clang++
|
23
|
+
- rvm: 1.9.3
|
24
|
+
allow_failures:
|
25
|
+
- rvm: 1.9.3
|
26
|
+
- rvm: rbx
|
27
|
+
fast_finish: true
|
28
|
+
bundler_args: --jobs=4 --retry=3
|
19
29
|
before_install:
|
20
30
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
|
21
31
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install git-svn; fi
|
22
32
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then gem update --system; fi
|
23
33
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then gem update bundler; fi
|
24
|
-
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo gem install bundler
|
34
|
+
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TRAVIS_RUBY_VERSION" == "system" ]; then sudo gem install bundler; fi
|
35
|
+
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TRAVIS_RUBY_VERSION" != "system" ]; then gem update --system; fi
|
36
|
+
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TRAVIS_RUBY_VERSION" != "system" ]; then gem update bundler; fi
|
25
37
|
script:
|
26
38
|
- MAKEFLAGS+=-j8 bundle exec rake checkout compile spec binary --trace
|
27
39
|
deploy:
|
28
40
|
provider: releases
|
29
41
|
file: $(git ls-files -o pkg | head -1)
|
30
42
|
api_key:
|
31
|
-
secure:
|
43
|
+
secure: OMCBceg89uRnU+FIPAPbeOK2pISvV4Cz62r9iTRIGXQCOOXX8M40i77/3DmtkMtc9FEuNyAu1+CH886PL2WtZZPK4CmEU3HuqXz1a5VsCI+zcAZL1tevKvblXOVQ3MG+B/SZRC3rEzGwjk4027WtzCCGoGCLUu4TFJP05+/8XN4=
|
32
44
|
skip_cleanup: true
|
33
45
|
on:
|
34
46
|
tags: true
|
47
|
+
condition: $TRAVIS_OS_NAME = osx
|
48
|
+
all_branches: true
|
49
|
+
cache:
|
50
|
+
bundler: true
|
35
51
|
notifications:
|
36
52
|
recipients:
|
37
53
|
- cowboyd@thefrontside.net
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
###
|
1
|
+
### 3.16.14.18, 3.16.14.19 - 2016-03-01:
|
2
|
+
|
3
|
+
* Dramatically reduce the binary size on macOS (thanks @aviat)
|
4
|
+
* Fix compilation on FreeBSD 11 #231
|
5
|
+
|
6
|
+
### 3.16.14.16, 3.16.14.17 - 2016-04-28:
|
7
|
+
|
8
|
+
* macOS Sierra binary gem
|
2
9
|
|
3
10
|
### 3.16.14.14, 3.16.14.15 - 2016-04-28:
|
4
11
|
|
data/Rakefile
CHANGED
@@ -92,7 +92,7 @@ task :devkit do
|
|
92
92
|
end
|
93
93
|
|
94
94
|
namespace :build do
|
95
|
-
['x86_64-linux', 'x86-linux', 'x86_64-freebsd10'].each do |arch|
|
95
|
+
['x86_64-linux', 'x86-linux', 'x86_64-freebsd10', 'x86_64-freebsd11'].each do |arch|
|
96
96
|
desc "build binary gem for #{arch}"
|
97
97
|
task arch do
|
98
98
|
arch_dir = Pathname(__FILE__).dirname.join("release/#{arch}")
|
data/ext/libv8/location.rb
CHANGED
data/ext/libv8/patcher.rb
CHANGED
@@ -6,7 +6,7 @@ module Libv8
|
|
6
6
|
|
7
7
|
def patch!
|
8
8
|
File.open(".applied_patches", File::RDWR|File::CREAT) do |f|
|
9
|
-
available_patches = Dir.glob(File.join(PATCH_DIRECTORY, '*.patch'))
|
9
|
+
available_patches = Dir.glob(File.join(PATCH_DIRECTORY, '*.patch')).sort
|
10
10
|
applied_patches = f.readlines.map(&:chomp)
|
11
11
|
|
12
12
|
(available_patches - applied_patches).each do |patch|
|
data/lib/libv8/version.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
diff --git a/build/standalone.gypi b/build/standalone.gypi
|
2
|
+
index 125c5bf..7c1fe2b 100644
|
3
|
+
--- a/build/standalone.gypi
|
4
|
+
+++ b/build/standalone.gypi
|
5
|
+
@@ -194,6 +194,7 @@
|
6
|
+
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
|
7
|
+
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
|
8
|
+
'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
|
9
|
+
+ 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', # No -gdwarf-2
|
10
|
+
'GCC_VERSION': 'com.apple.compilers.llvmgcc42',
|
11
|
+
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
|
@@ -0,0 +1,31 @@
|
|
1
|
+
diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc
|
2
|
+
index 62653b4ca7..a64dd98ce5 100644
|
3
|
+
--- a/src/platform-freebsd.cc
|
4
|
+
+++ b/src/platform-freebsd.cc
|
5
|
+
@@ -368,7 +368,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment)
|
6
|
+
void* reservation = mmap(OS::GetRandomMmapAddr(),
|
7
|
+
request_size,
|
8
|
+
PROT_NONE,
|
9
|
+
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
|
10
|
+
+ MAP_PRIVATE | MAP_ANON,
|
11
|
+
kMmapFd,
|
12
|
+
kMmapFdOffset);
|
13
|
+
if (reservation == MAP_FAILED) return;
|
14
|
+
@@ -440,7 +440,7 @@ void* VirtualMemory::ReserveRegion(size_t size) {
|
15
|
+
void* result = mmap(OS::GetRandomMmapAddr(),
|
16
|
+
size,
|
17
|
+
PROT_NONE,
|
18
|
+
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
|
19
|
+
+ MAP_PRIVATE | MAP_ANON,
|
20
|
+
kMmapFd,
|
21
|
+
kMmapFdOffset);
|
22
|
+
|
23
|
+
@@ -470,7 +470,7 @@ bool VirtualMemory::UncommitRegion(void* base, size_t size) {
|
24
|
+
return mmap(base,
|
25
|
+
size,
|
26
|
+
PROT_NONE,
|
27
|
+
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED,
|
28
|
+
+ MAP_PRIVATE | MAP_ANON | MAP_FIXED,
|
29
|
+
kMmapFd,
|
30
|
+
kMmapFdOffset) != MAP_FAILED;
|
31
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
5
|
+
# configures the configuration version (we support older styles for
|
6
|
+
# backwards compatibility). Please don't change it unless you know what
|
7
|
+
# you're doing.
|
8
|
+
Vagrant.configure(2) do |config|
|
9
|
+
# The most common configuration options are documented and commented below.
|
10
|
+
# For a complete reference, please see the online documentation at
|
11
|
+
# https://docs.vagrantup.com.
|
12
|
+
|
13
|
+
# Every Vagrant development environment requires a box. You can search for
|
14
|
+
# boxes at https://atlas.hashicorp.com/search.
|
15
|
+
config.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
|
16
|
+
|
17
|
+
# Disable automatic box update checking. If you disable this, then
|
18
|
+
# boxes will only be checked for updates when the user runs
|
19
|
+
# `vagrant box outdated`. This is not recommended.
|
20
|
+
# config.vm.box_check_update = false
|
21
|
+
|
22
|
+
# Create a forwarded port mapping which allows access to a specific port
|
23
|
+
# within the machine from a port on the host machine. In the example below,
|
24
|
+
# accessing "localhost:8080" will access port 80 on the guest machine.
|
25
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
26
|
+
|
27
|
+
# Create a private network, which allows host-only access to the machine
|
28
|
+
# using a specific IP.
|
29
|
+
# config.vm.network "private_network", ip: "192.168.33.10"
|
30
|
+
config.vm.network "private_network", ip: "192.168.33.11"
|
31
|
+
|
32
|
+
# Create a public network, which generally matched to bridged network.
|
33
|
+
# Bridged networks make the machine appear as another physical device on
|
34
|
+
# your network.
|
35
|
+
# config.vm.network "public_network"
|
36
|
+
|
37
|
+
# Share an additional folder to the guest VM. The first argument is
|
38
|
+
# the path on the host to the actual folder. The second argument is
|
39
|
+
# the path on the guest to mount the folder. And the optional third
|
40
|
+
# argument is a set of non-required options.
|
41
|
+
config.vm.synced_folder ".", "/vagrant", nfs: true
|
42
|
+
config.vm.synced_folder "../..", "/libv8", nfs: true
|
43
|
+
|
44
|
+
|
45
|
+
# Provider-specific configuration so you can fine-tune various
|
46
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
47
|
+
# Example for VirtualBox:
|
48
|
+
#
|
49
|
+
# config.vm.provider "virtualbox" do |vb|
|
50
|
+
# # Display the VirtualBox GUI when booting the machine
|
51
|
+
# vb.gui = true
|
52
|
+
#
|
53
|
+
# # Customize the amount of memory on the VM:
|
54
|
+
# vb.memory = "1024"
|
55
|
+
# end
|
56
|
+
#
|
57
|
+
# View the documentation for the provider you are using for more
|
58
|
+
# information on available options.
|
59
|
+
# Various settings as suggested by the FreeBSD community
|
60
|
+
config.ssh.shell = "sh"
|
61
|
+
config.vm.base_mac = "080027D14C66"
|
62
|
+
config.vm.provider :virtualbox do |vb|
|
63
|
+
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
|
64
|
+
vb.customize ["modifyvm", :id, "--audio", "none"]
|
65
|
+
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
|
66
|
+
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
|
67
|
+
end
|
68
|
+
|
69
|
+
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
70
|
+
# such as FTP and Heroku are also available. See the documentation at
|
71
|
+
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
72
|
+
# config.push.define "atlas" do |push|
|
73
|
+
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
74
|
+
# end
|
75
|
+
|
76
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
77
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
78
|
+
# documentation for more information about their specific syntax and use.
|
79
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
80
|
+
# sudo apt-get update
|
81
|
+
# sudo apt-get install -y apache2
|
82
|
+
# SHELL
|
83
|
+
config.vm.provision "shell", inline: <<-SHELL
|
84
|
+
pkg install -y gmake ruby rubygem-bundler git-subversion python2
|
85
|
+
SHELL
|
86
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libv8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.16.14.
|
4
|
+
version: 3.16.14.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Lowell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -101,12 +101,15 @@ files:
|
|
101
101
|
- libv8.gemspec
|
102
102
|
- patches/disable-building-tests.patch
|
103
103
|
- patches/disable-werror-on-osx.patch
|
104
|
+
- patches/disable-xcode-debugging.patch
|
104
105
|
- patches/do-not-imply-vfp3-and-armv7.patch
|
106
|
+
- patches/do-not-use-MAP_NORESERVE-on-freebsd.patch
|
105
107
|
- patches/do-not-use-vfp2.patch
|
106
108
|
- patches/fPIC-for-static.patch
|
107
109
|
- patches/mingw-generate-makefiles.sh
|
108
110
|
- release/x86-linux/Vagrantfile
|
109
111
|
- release/x86_64-freebsd10/Vagrantfile
|
112
|
+
- release/x86_64-freebsd11/Vagrantfile
|
110
113
|
- release/x86_64-linux/Vagrantfile
|
111
114
|
- spec/location_spec.rb
|
112
115
|
- spec/spec_helper.rb
|
@@ -3053,7 +3056,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
3053
3056
|
version: '0'
|
3054
3057
|
requirements: []
|
3055
3058
|
rubyforge_project: libv8
|
3056
|
-
rubygems_version: 2.
|
3059
|
+
rubygems_version: 2.5.2
|
3057
3060
|
signing_key:
|
3058
3061
|
specification_version: 4
|
3059
3062
|
summary: Distribution of the V8 JavaScript engine
|