Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533048 - dev-ruby/ruby-gdk3-2.2.3 should depend on dev-ruby/ruby-cairo-gobject
Summary: dev-ruby/ruby-gdk3-2.2.3 should depend on dev-ruby/ruby-cairo-gobject
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-19 19:55 UTC by Franz Trischberger
Modified: 2014-12-27 07:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2014-12-19 19:55:33 UTC
$ ruby20 -e "require 'webkit-gtk'"
/usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- cairo-gobject (LoadError)
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib64/ruby/gems/2.0.0/gems/gdk3-2.2.3/lib/gdk3.rb:18:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:128:in `require'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:39:in `require'
        from /usr/lib64/ruby/site_ruby/2.0.0/gtk3/base.rb:8:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib64/ruby/site_ruby/2.0.0/gtk3.rb:7:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib64/ruby/gems/2.0.0/gems/webkit-gtk-2.2.3/lib/webkit-gtk.rb:18:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:128:in `require'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
        from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:39:in `require'
        from -e:1:in `<main>'

After installing ruby-cairo-gobject the command finishes successfully.

It may be that the dependency is also missing for other versions of ruby-webkit-gtk (didn't check).
Comment 1 Franz Trischberger 2014-12-19 21:04:28 UTC
Well, it wasn't a direct dependency of ruby-webkit-gtk. I looked into the sources and only found ruby-gdk3 depend on ruby-cairo-gobject (besides ruby-clutter, which isn't a dep of euby-webkit-gtk - but there the dep is listed correctly).

The ebuild diff is here:


--- ruby-gdk3-2.2.3.ebuild.org  2014-12-19 21:55:58.147320086 +0100
+++ ruby-gdk3-2.2.3.ebuild      2014-12-19 21:56:25.423318246 +0100
@@ -17,6 +17,7 @@
 ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}"
 ruby_add_rdepend ">=dev-ruby/ruby-gdkpixbuf2-${PV}
        >=dev-ruby/ruby-atk-${PV}
+       >=dev-ruby/ruby-cairo-gobject-${PV}
        >=dev-ruby/ruby-pango-${PV}"
 
 each_ruby_configure() {
Comment 2 Franz Trischberger 2014-12-20 11:27:06 UTC
I just checked out the ruby-gnome2 repo:
ruby-gdk3 >=2.2.1 requires "cairo-gobject" in gdk3/lib/gdk3.rb, but the gdk3/Rakefile got adjusted only at 2.2.3.

As I don't know (yet) about the internals of those (e)builds: Is is suffiecient to adjust the rdeps in the affected ebuilds or is a patch (to the Rakefile) needed?
Comment 3 Hans de Graaff gentoo-dev Security 2014-12-27 07:31:47 UTC
(In reply to Franz Fellner from comment #2)
> I just checked out the ruby-gnome2 repo:
> ruby-gdk3 >=2.2.1 requires "cairo-gobject" in gdk3/lib/gdk3.rb, but the
> gdk3/Rakefile got adjusted only at 2.2.3.
> 
> As I don't know (yet) about the internals of those (e)builds: Is is
> suffiecient to adjust the rdeps in the affected ebuilds or is a patch (to
> the Rakefile) needed?

We only have 2.2.3 in the tree, not 2.2.1 and 2.2.2, so adding the missing dependency should be enough. I've done that now. Thanks for the report.