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
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
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?
Created attachment 248842 [details] build.log
(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
Created attachment 248844 [details] eclass-debug.log
Is this still a problem with recent versions of ruby-pango and rcairo?
(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