ffi 1.9.18-java → 1.9.21-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/Rakefile +14 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62b5fbab3399555e17e6e57505b9bee2b9410a1e
|
4
|
+
data.tar.gz: 192559cc1c17625ec0994edbc20c59177cd2ba7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c5359fbc0dc3687373fc8c4e8629b4e29073c61f7a3236cf29f684ea6fe8967ef248cafa681939492199ca4dbc2c0b58793f9749c3773d9f6db108cff061a0
|
7
|
+
data.tar.gz: 9b9603dc7bf049b71fd314cd1a6cf1f0ec8caf938177e2a8f3d2cad9004dd80be2ffc6f4ca97a50be4d569136be82da6e57bc466da61aae7420561b5989f841b
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ At a minimum, you will need:
|
|
43
43
|
* A C compiler (e.g. Xcode on OSX, gcc on everything else)
|
44
44
|
* libffi development library - this is commonly in the libffi-dev or libffi-devel
|
45
45
|
|
46
|
-
On Linux systems running with [PaX](https://en.wikipedia.org/wiki/PaX) (Gentoo, Alpine, etc.) FFI may trigger `
|
46
|
+
On Linux systems running with [PaX](https://en.wikipedia.org/wiki/PaX) (Gentoo, Alpine, etc.) FFI may trigger `mprotect` errors. You may need to disable [mprotect](https://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options#Restrict_mprotect.28.29) for ruby (`paxctl -m [/path/to/ruby]`) for the time being until a solution is found.
|
47
47
|
|
48
48
|
## Installation
|
49
49
|
|
@@ -54,8 +54,9 @@ From rubygems:
|
|
54
54
|
or from the git repository on github:
|
55
55
|
|
56
56
|
git clone git://github.com/ffi/ffi.git
|
57
|
+
git submodule update --init --recursive
|
57
58
|
cd ffi
|
58
|
-
rake
|
59
|
+
rake install
|
59
60
|
|
60
61
|
## License
|
61
62
|
|
data/Rakefile
CHANGED
@@ -65,7 +65,18 @@ OS = case RbConfig::CONFIG['host_os'].downcase
|
|
65
65
|
RbConfig::CONFIG['host_os'].downcase
|
66
66
|
end
|
67
67
|
|
68
|
-
|
68
|
+
def which(name)
|
69
|
+
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
|
70
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
|
71
|
+
exts.each do |ext|
|
72
|
+
app = File.join(path, name+ext)
|
73
|
+
return app if File.executable? app
|
74
|
+
end
|
75
|
+
end
|
76
|
+
nil
|
77
|
+
end
|
78
|
+
|
79
|
+
GMAKE = which('gmake').nil? ? 'make' : 'gmake'
|
69
80
|
|
70
81
|
LIBTEST = "build/libtest.#{LIBEXT}"
|
71
82
|
BUILD_DIR = "build"
|
@@ -175,7 +186,7 @@ if USE_RAKE_COMPILER
|
|
175
186
|
ext.cross_platform = %w[i386-mingw32 x64-mingw32] # forces the Windows platform instead of the default one
|
176
187
|
end
|
177
188
|
|
178
|
-
ENV['RUBY_CC_VERSION'] ||= '1.
|
189
|
+
ENV['RUBY_CC_VERSION'] ||= '1.9.3:2.0.0:2.1.6:2.2.2:2.3.0'
|
179
190
|
|
180
191
|
# To reduce the gem file size strip mingw32 dlls before packaging
|
181
192
|
ENV['RUBY_CC_VERSION'].to_s.split(':').each do |ruby_version|
|
@@ -191,7 +202,7 @@ if USE_RAKE_COMPILER
|
|
191
202
|
desc "build a windows gem without all the ceremony."
|
192
203
|
task "gem:windows" do
|
193
204
|
require "rake_compiler_dock"
|
194
|
-
RakeCompilerDock.sh "bundle && rake cross native gem MAKE='nice make -j`nproc`'"
|
205
|
+
RakeCompilerDock.sh "sudo apt-get update && sudo apt-get install -y libltdl-dev && bundle && rake cross native gem MAKE='nice make -j`nproc`'"
|
195
206
|
end
|
196
207
|
end
|
197
208
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.21
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Wayne Meissner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby FFI library
|
14
14
|
email: wmeissner@gmail.com
|
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
42
|
rubyforge_project:
|
43
|
-
rubygems_version: 2.
|
43
|
+
rubygems_version: 2.5.2
|
44
44
|
signing_key:
|
45
45
|
specification_version: 4
|
46
46
|
summary: Ruby FFI
|