Package appears to be broken

Asked by Stefan Sundin

This package seems to be missing a file that is expected by the gem. Looking at the author's github, there's a file called init.rb that is located outside of the lib directory. I suspect it was excluded from the deb package.

$ irb
irb(main):001:0> require 'toml-rb'
LoadError: cannot load such file -- /usr/lib/ruby/init
 from /usr/lib/ruby/vendor_ruby/toml-rb.rb:1:in `require_relative'
 from /usr/lib/ruby/vendor_ruby/toml-rb.rb:1:in `<top (required)>'
 from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
 from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
 from (irb):1
 from /usr/bin/irb:11:in `<main>'

If I edit /usr/lib/ruby/vendor_ruby/toml-rb.rb and comment the first line, and add the things that are expected from (albeit slightly modified) https://github.com/emancu/toml-rb/blob/bfeccc6371ae72107895315a00bf62695caf19d9/init.rb

then it starts working.

Any help here?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ruby-toml-rb Edit question
Assignee:
No assignee Edit question
Solved by:
Stefan Sundin
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Revision history for this message
Stefan Sundin (stefansundin) said :
#2

Hi again,

I managed to work with the author of the gem to release a new version which doesn't use any files outside of the lib directory. So if the package was updated to the latest version of the gem (v1.1.1), then it should work.

I am new at this and I don't know how to contact the upstream debian package maintainer to request this upgrade. Any chance you could help me with that?

I think it would be reasonable to upgrade, considering that in the current state, the package does not work at all.

Thank you!

P.S. Here's the issue where I worked with the gem author: https://github.com/emancu/toml-rb/issues/106

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

For creating a bug report in Ubuntu, just open this question page in a web browser and scroll down.
Just above the "Message:" box there is a "Create bug report" button.

Information about Debian's bug tracker is here: https://www.debian.org/Bugs/Reporting

Revision history for this message
Stefan Sundin (stefansundin) said :
#4