[DRE-maint] Bug#815802: ruby-gir-ffi: Requiring 'gir_ffi' fails

Antonio Ospite ao2 at ao2.it
Wed Feb 24 15:18:05 UTC 2016


Package: ruby-gir-ffi
Version: 0.9.0-1
Severity: important

Dear Maintainer,

requiring 'gir_ffi' fails when using just the Debian packages, I have
a file with just this line:

require 'gir_ffi'

and when I execute it I get this error:

$ ruby test.rb 
/usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- ffi/bit_masks (LoadError)
        from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/vendor_ruby/gir_ffi/core.rb:2:in `<top (required)>'
        from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/vendor_ruby/gir_ffi.rb:1:in `<top (required)>'
        from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from test.rb:1:in `<main>'

It looks like this happens because the ffi-bit_masks[1] plugin is
missing and it's not available in Debian so it can't be pulled in
automatically as a dependency of ruby-gir-ffi.

[1] https://github.com/postmodern/ffi-bit_masks

by installing the plugin via gem the error is gone:

$ sudo gem install ffi-bit_masks
[sudo] password for user: 
Fetching: ffi-bit_masks-0.1.0.gem (100%)
Successfully installed ffi-bit_masks-0.1.0
Parsing documentation for ffi-bit_masks-0.1.0
Installing ri documentation for ffi-bit_masks-0.1.0
Done installing documentation for ffi-bit_masks after 0 seconds
1 gem installed
$ ruby test.rb 
$

However if I install the ruby-gir-ffi as a Debian package I would like
not to have to pull stuff in using gem.

I guess ffi-bit_masks would need to be packaged to make ruby-gir-ffi
work as expected when installed as a Debian package.

Thanks,
   Antonio


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-rc4-ao2 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages ruby-gir-ffi depends on:
ii  libgirepository-1.0-1       1.46.0-4
ii  libglib2.0-dev              2.46.2-3
ii  ruby                        1:2.2.4
ii  ruby-ffi                    1.9.10debian-1
ii  ruby-indentation            0.1.1-1
ii  ruby2.1 [ruby-interpreter]  2.1.5-4
ii  ruby2.2 [ruby-interpreter]  2.2.4-1

ruby-gir-ffi recommends no packages.

Versions of packages ruby-gir-ffi suggests:
ii  gir1.2-glib-2.0    1.46.0-4
ii  gir1.2-gtk-3.0     3.18.7-1
pn  gir1.2-webkit-1.0  <none>

-- no debconf information
-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?



More information about the Pkg-ruby-extras-maintainers mailing list