FS#22986 - [ruby-gtk2] [ruby-pango] [ruby-glib2] need a patch
Attached to Project:
Community Packages
Opened by Giuseppe Borzi (gborzi) - Monday, 21 February 2011, 14:11 GMT
Last edited by Brad Fanella (cesura) - Monday, 21 February 2011, 22:56 GMT
Opened by Giuseppe Borzi (gborzi) - Monday, 21 February 2011, 14:11 GMT
Last edited by Brad Fanella (cesura) - Monday, 21 February 2011, 22:56 GMT
|
Details
Description: Launching gnome-screenruler that depends on the
mentioned packages I get an error message
/usr/share/screenruler/utils/canvas.rb:40:in `block in initialize': undefined method `create_cairo_context' for #<Gdk::Pixmap:0x98057c4 ptr=0x95fcb48> from /usr/bin/screenruler:74:in `call' from /usr/bin/screenruler:74:in `main' from /usr/bin/screenruler:74:in `<main>' Shutting down... as if ruby-gtk2 wasn't compiled with ruby-cairo support. The bug has been reported to the upstream developers and a patch has been proposed and accepted. It is available from here http://sourceforge.net/tracker/?func=detail&atid=470969&aid=3178228&group_id=53614 the name of the patch is patch-glib2_lib_mkmf-gnome2.rb recompiling and installing ruby-gtk2 with this patch changes the error message to /usr/share/screenruler/utils/ruler_window.rb:224:in `draw': undefined method `create_pango_layout' for #<Cairo::Context:0xa580f5c> from /usr/share/screenruler/utils/ruler_window.rb:55:in `block in initialize' from /usr/share/screenruler/utils/canvas.rb:40:in `call' from /usr/share/screenruler/utils/canvas.rb:40:in `block in initialize' from /usr/bin/screenruler:74:in `call' from /usr/bin/screenruler:74:in `main' from /usr/bin/screenruler:74:in `<main>' Shutting down... recompiling ruby-pango with the same patch fix this latter bug. Additional info: * package version(s) 0.90.7-1 * config and/or log files etc. Steps to reproduce: Install gnome-screenruler and launch it. |
This task depends upon
Comment by Giuseppe Borzi (gborzi) -
Monday, 21 February 2011, 14:12 GMT
Comment by Brad Fanella (cesura) -
Monday, 21 February 2011, 19:24 GMT
Comment by Giuseppe Borzi (gborzi) -
Monday, 21 February 2011, 22:46 GMT
I forgot to mention that ruby-glib2 doesn't need the above patch
to work.
I have committed packages "ruby-pango-0.90.7-2" and
"ruby-gtk-0.90.7-2", both patched according to the sourceforge
page that you linked to. With those two packages installed, I was
able to run screenruler without any issues. Can you confirm before
I close this bug? :-)
I've installed the new packages and it works for me. Thanks, the
bug can be closed.