Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338512 - Ruby-Pango is not working with Cairo
Summary: Ruby-Pango is not working with Cairo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-24 00:21 UTC by Stefan Salewski
Modified: 2012-04-30 10:33 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,53.50 KB, text/plain)
2010-09-27 21:59 UTC, Stefan Salewski
Details
eclass-debug.log (eclass-debug.log,1.14 KB, text/plain)
2010-09-27 22:03 UTC, Stefan Salewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Salewski 2010-09-24 00:21:36 UTC
I am unable to get
/usr/share/doc/ruby-pango-0.19.4/sample/pango_cairo.rb

working. Error message is
"This sample requires Pango 1.0.0 or later and cairo support"
and if I remove "Pango.cairo_available?" I get
pango_cairo.rb:29:in `draw_text': undefined method `create_pango_layout'

I tried reemerging all related ebuild, no success.

One idea:
emerge -av ruby-pango
[ebuild   R   ] dev-ruby/ruby-pango-0.19.4  USE="-test" RUBY_TARGETS="ruby18"

shows

checking for rb_cairo.h... no

I verified with command locate that there is no rb_cairo.h or rbcairo.h available -- may that be a problem?

This is for dev-ruby/rcairo-1.8.5  USE="svg -doc -test" RUBY_TARGETS="ruby18"

Thanks,

Stefan Salewski


Reproducible: Always
Comment 1 Stefan Salewski 2010-09-24 10:52:52 UTC
Yes, missing rb_cairo.h seems to be the problem, see
http://rpmfind.net/linux/RPM/fedora/12/x86_64/ruby-cairo-devel-1.8.0-4.fc12.x86_64.html

I just fixed it manually by

cp /var/tmp/portage/dev-ruby/rcairo-1.8.5/work/all/rcairo-1.8.5/ext/cairo/rb_cairo.h //usr/lib64/ruby/site_ruby/1.8/x86_64-linux/

emerge -av ruby-pango

/usr/share/doc/ruby-pango-0.19.4/sample/pango_cairo.rb

works now.

Thanks

Stefan Salewski
Comment 2 Hans de Graaff gentoo-dev Security 2010-09-27 18:57:18 UTC
Something else must be going on because I don't have rb_cairo.h on my system either but the pango sample runs fine.

Could you add the full build output to the bug?
Comment 3 Stefan Salewski 2010-09-27 21:59:07 UTC
Created attachment 248842 [details]
build.log
Comment 4 Stefan Salewski 2010-09-27 22:01:31 UTC
(In reply to comment #2)
> Something else must be going on because I don't have rb_cairo.h on my system
> either but the pango sample runs fine.
> 
> Could you add the full build output to the bug?
> 

Please note, this bug may be related to bug
http://bugs.gentoo.org/show_bug.cgi?id=302943

For 
cp rcairo-1.8.0-r1.ebuild rcairo-1.8.1-r2.ebuild
emerge -av =dev-ruby/rcairo-1.8.1-2
emerge -av ruby-gtk2
emerge -av ruby-gnome2

all is fine.

emerging dev-ruby/rcairo-1.8.5
removes rb_cairo.h but cairo-pong.rb was still working.
But after re-emerging ruby-gtk2 and ruby-gnome2 cairo-pong.rb refuses to work with message "cairo-pong.rb:16: GTK+ 2.8.0 or later and cairo support are requered. (RuntimeError)"

And after 
dev-ruby/ruby-pango-0.19.4  USE="-test" RUBY_TARGETS="ruby18"

I get

stefan@AMD64X2 ~ $ ruby pango_cairo.rb 
This sample requires Pango 1.0.0 or later and cairo support

I will attach the output of
AMD64X2 ruby-pango # pwd
/usr/portage/dev-ruby/ruby-pango
AMD64X2 ruby-pango # ebuild ruby-pango-0.19.4.ebuild install

files build.log and eclass-debug.log

stefan@AMD64X2 ~ $ ls -l /var/tmp/portage/dev-ruby/ruby-pango-0.19.4/temp/          
total 168
-rw-rw-r-- 1 portage portage 54784 Sep 27 23:26 build.log
-rw-rw-r-- 1 root    root     1170 Sep 27 23:25 eclass-debug.log
-rw-r--r-- 1 root    root    96409 Sep 27 23:26 environment
drwxrwxr-x 2 portage portage  4096 Sep 27 23:26 logging
-rw-r--r-- 1 root    root        0 Sep 27 23:26 prepallman.filelist
-rw-r--r-- 1 root    root        0 Sep 27 23:26 ruby-ng-ruby18-mislink.log
Comment 5 Stefan Salewski 2010-09-27 22:03:02 UTC
Created attachment 248844 [details]
eclass-debug.log
Comment 6 Hans de Graaff gentoo-dev Security 2012-04-30 07:01:58 UTC
Is this still a problem with recent versions of ruby-pango and rcairo?
Comment 7 Stefan Salewski 2012-04-30 10:14:39 UTC
(In reply to comment #6)
> Is this still a problem with recent versions of ruby-pango and rcairo?

For me all was working fine after your fix from (2011-05-02 19:10:43 UTC )

https://bugs.gentoo.org/show_bug.cgi?id=302943

Some months ago I switched to ruby 1.9 -- all is working fine including ruby-gnome2, rcairo and ruby-pango.

Thanks,

Stefan Salewski