きりかノート 3冊め

おあそびプログラミング

MacPortsのrb-gnomeを1.1.3に

動作確認したのでMacPortsruby-gnome2関連のport一式を新しいバージョンに更新しました。ruby-1.8用です。ruby-1.9.xで使いたい人はgemから入れてください。

以下、自分用メモ。

   ruby-gnome2 1.1.3
   =================

   gtk modules
   -----------

   [v] glib2 --- 184 tests, 420 assertions, 0 failures, 0 errors, 0 pendings, 1 omissions, 0 notifications
   [v] pango --- 4 tests, 8 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
   [v] atk --- テスト、サンプルなし
   [v] gtk2 --- 49 tests, 92 assertions, 3 failures, 1 errors, 0 pendings, 2 omissions, 0 notifications

   gnome modules
   -------------

   [x] poppler --- 28 tests, 51 assertions, 0 failures, 1 errors, 0 pendings, 3 omissions, 0 notifications

       ...................Error: Invalid XRef entry
       ....E
       ===============================================================================
       Error: test_get_image(TestPage)
       NoMethodError: undefined method `image_id' for nil:NilClass
       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-poppler/rb-poppler/work/ruby-gnome2-all-1.1.3-x86_64/poppler/test/test_page.rb:6:in `test_get_image'
            3:     document = Poppler::Document.new(image_pdf)
            4:     page, mapping = find_first_image_mapping(document)
            5:     if later_version?(0, 7, 2) and Poppler.cairo_available?
         => 6:       assert_kind_of(Cairo::ImageSurface, page.get_image(mapping.image_id))
            7:       assert_kind_of(Cairo::ImageSurface, mapping.image)
            8:     else
            9:       assert_kind_of(Gdk::Pixbuf, mapping.image)

   [v] rsvg --- sample/svg-viewer.rb でsvgファイルを表示して確認
   [v] vte --- sample/terminal.rbがウィンドウは表示されるがプロンプトがでない。${prefix}/bin/vteも同様なので気にしないことに。

   exmerimental modules
   --------------------

   [x] gstreamer --- 116 tests, 282 assertions, 4 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

       ===============================================================================
       Failure: <#<Gst::Buffer::CopyFlags flags|timestamps|caps>> expected but was
       <#<Gst::Buffer::CopyFlags flags|timestamps|caps|qdata>>.

       diff:
       - #<Gst::Buffer::CopyFlags flags|timestamps|caps>
       + #<Gst::Buffer::CopyFlags flags|timestamps|caps|qdata>
       ?                                               ++++++
       test_copy_flags(TestBuffer)
       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-gstreamer/rb-gstreamer/work/ruby-gnome2-all-1.1.3/gstreamer/test/test_buffer.rb:108:in `test_copy_flags'
            105:   def test_copy_flags
            106:     assert_equal(Gst::Buffer::CopyFlags::FLAGS |
            107:                  Gst::Buffer::CopyFlags::TIMESTAMPS |
         => 108:                  Gst::Buffer::CopyFlags::CAPS,
            109:                  Gst::Buffer::CopyFlags::ALL)
            110:
            111:     assert_equal(Gst::Buffer::COPY_FLAGS |

       ===============================================================================
       ..............F
       ===============================================================================
       Failure: <nil> expected to not be nil.
       test_each(TestCaps)
       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-gstreamer/rb-gstreamer/work/ruby-gnome2-all-1.1.3/gstreamer/test/test_caps.rb:18:in `smpte_caps'
            15:   private
            16:   def smpte_caps
            17:     smpte = Gst::ElementFactory.find("smpte")
         => 18:     assert_not_nil(smpte)
            19:     smpte.pad_templates.find do |template|
            20:       template.direction == Gst::Pad::SRC
            21:     end.caps.to_caps

       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-gstreamer/rb-gstreamer/work/ruby-gnome2-all-1.1.3/gstreamer/test/test_caps.rb:12:in `test_each'
       ===============================================================================
       F
       ===============================================================================
       Failure: <nil> expected to not be nil.
       test_get_structure(TestCaps)
       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-gstreamer/rb-gstreamer/work/ruby-gnome2-all-1.1.3/gstreamer/test/test_caps.rb:18:in `smpte_caps'
            15:   private
            16:   def smpte_caps
            17:     smpte = Gst::ElementFactory.find("smpte")
         => 18:     assert_not_nil(smpte)
            19:     smpte.pad_templates.find do |template|
            20:       template.direction == Gst::Pad::SRC
            21:     end.caps.to_caps

       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-gstreamer/rb-gstreamer/work/ruby-gnome2-all-1.1.3/gstreamer/test/test_caps.rb:7:in `test_get_structure'
       ===============================================================================
       F
       ===============================================================================
       Failure: <nil> expected to not be nil.
       test_size(TestCaps)
       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-gstreamer/rb-gstreamer/work/ruby-gnome2-all-1.1.3/gstreamer/test/test_caps.rb:18:in `smpte_caps'
            15:   private
            16:   def smpte_caps
            17:     smpte = Gst::ElementFactory.find("smpte")
         => 18:     assert_not_nil(smpte)
            19:     smpte.pad_templates.find do |template|
            20:       template.direction == Gst::Pad::SRC
            21:     end.caps.to_caps

       /Volumes/CUnix/opt/local/var/macports/build/_Volumes_CHome_kimuraw_proj_macports_ports_ruby_rb-gstreamer/rb-gstreamer/work/ruby-gnome2-all-1.1.3/gstreamer/test/test_caps.rb:3:in `test_size'
       ===============================================================================