ankiit / logstash

Automatically exported from code.google.com/p/logstash
0 stars 0 forks source link

jls-grok libffi dependency installs requires version unsupported with Ruby 1.8.x #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
libffi stopped supporting Ruby 1.8 as of the 1.0 release. Consequently, other 
projects which use libffi (ie. Vagrant) and support Ruby 1.8.x have locked 
themselves to version 0.6.3.

This manifests itself as such:

/usr/lib/ruby/gems/1.8/gems/ffi-1.0.5/lib/ffi/memorypointer.rb:27:in 
`from_string': undefined method `bytesize' for #<String:0x2b7aeb9ee6c0> 
(NoMethodError)
        from /usr/lib/ruby/gems/1.8/gems/jls-grok-0.3.3209/lib/grok.rb:62:in `add_patterns_from_file'

Original issue reported on code.google.com by charles....@gmail.com on 16 Feb 2011 at 4:29

GoogleCodeExporter commented 9 years ago
The test suite passes with libffi 0.6.3.

As such, resolving this issue can be as simple as changing 
spec.add_dependency("ffi", ">= 1.0.5") to spec.add_dependency("ffi", "~> 
0.6.3") in grok/ruby/grok.gemspec

Original comment by charles....@gmail.com on 16 Feb 2011 at 4:36

GoogleCodeExporter commented 9 years ago
I updated the gemspec in git master. 

jls-grok 0.4.1 pushed to rubygems. Marking fixed; reopen if this is not the 
case :)

Original comment by jls.semi...@gmail.com on 16 Feb 2011 at 5:38

GoogleCodeExporter commented 9 years ago

Original comment by jls.semi...@gmail.com on 16 Feb 2011 at 5:47