Forum: Ruby-Gnome 2 0.19

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-05-26 11:19
(Received via mailing list)
Hi,

yesterday I released a new version of the Teatime applet
http://det.cable.nu/teatime/index.rbx which uses the new functionality
of context menus for applets. Today the first Linux distributor asked
me, when 0.19 will get released, cause the build failed with 0.18.1.

So I forward this question :-)

Cheers, detlef

--
http://det.cable.nu
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-26 13:03
(Received via mailing list)
Hi,

2009/5/26 Detlef Reichl <detlef.reichl@gmx.org>:

> yesterday I released a new version of the Teatime applet
> http://det.cable.nu/teatime/index.rbx which uses the new functionality
> of context menus for applets. Today the first Linux distributor asked
> me, when 0.19 will get released, cause the build failed with 0.18.1.
>
> So I forward this question :-)

I wanted to release 0.19 as development seriese but my computer isn't
good condition now...

I already updated NEW file and prepared Rakefile.
Could someone (one of commiters) release 0.19 for me?
Pleaese...

I think that remaind tasks are here:

  * confirm packages are buildable (rake build?)
  * confirm tests are passed (rake test?)
  * make packages (rake dist?)
  * release packages (rake release?)
  * confirm released packages are correct (download packages and build
them)
  * tag (rake tag?)
  * announce the release on the Wiki, ruby-gnome2-devel-en@ ML

The list may not be correct... If you find some wrong step, please write
it to RELEASING and add it to the Ruby-GNOME2 repository.
ref. cairo has RELEASING document:
http://cgit.freedesktop.org/cairo/tree/RELEASING


Thanks,
--
kou
3807680355002d0d5e8314a97333587e?d=identicon&s=25 Nikolai Weibull (Guest)
on 2009-05-26 13:16
(Received via mailing list)
On Tue, May 26, 2009 at 12:59, Kouhei Sutou <kou@cozmixng.org> wrote:

> 2009/5/26 Detlef Reichl <detlef.reichl@gmx.org>:

>> yesterday I released a new version of the Teatime applet
>> http://det.cable.nu/teatime/index.rbx which uses the new functionality
>> of context menus for applets. Today the first Linux distributor asked
>> me, when 0.19 will get released, cause the build failed with 0.18.1.

>> So I forward this question :-)

> I wanted to release 0.19 as development seriese but my computer isn't
> good condition now...

I just wanted to report that my gio bindings have been completed.
I'll try to get them out the door soon.  I have been more or less been
singlehandedly responsible for migrating from GroupWise to Exchange at
work, which has required an incredible amount of work, so this has
been on hold.  I need to make sure that my sourceforge account works
and stuff (I haven't logged in in a long time).  I'm not sure if I
(pcppopper) still have commit access, either.
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-26 14:49
(Received via mailing list)
Le mardi 26 mai 2009 à 19:59 +0900, Kouhei Sutou a écrit :
>   * confirm packages are buildable (rake build?)
>   * confirm tests are passed (rake test?)
>   * make packages (rake dist?)
>   * release packages (rake release?)
>   * confirm released packages are correct (download packages and build them)
>   * tag (rake tag?)
>   * announce the release on the Wiki, ruby-gnome2-devel-en@ ML

I successfuly built everything except for gtkmozembed

I also built all except gtkmozembed using generated
ruby-gnome2-all-0.19.0.tar.gz

Concerning the tests I get :

Tue May 26 14:32:51 +0200 2009 running test
for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/poppler
--------------------------------------------------------------------------------
Loaded suite .
Started
.......................E...O

Finished in 1.194534 seconds.

  1) Error:
test_get_image(TestPage):
NoMethodError: undefined method `get_image' for
#<Poppler::Page:0xb65c52e0 ptr=0x85c2400>
    ./test/test_page.rb:6:in `test_get_image'

  2) Omission: We doesn't have a PDF that has a thumbnail...
test_thumbnail_pixbuf(TestPage)
./test/test_page.rb:40:in `test_thumbnail_pixbuf'

28 tests, 55 assertions, 0 failures, 1 errors, 0 pendings, 1 omissions,
0 notifications
--------------------------------------------------------------------------------
Tue May 26 14:33:06 +0200 2009 running test
for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/pango
--------------------------------------------------------------------------------
Loaded suite .
Started
F...

Finished in 0.010049 seconds.

  1) Failure:
test_end_index(TestAttribute) [./test/test-attribute.rb:15]:
<-1> expected but was
<4294967295>.

4 tests, 7 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications
--------------------------------------------------------------------------------
Tue May 26 14:33:06 +0200 2009 running test
for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk
--------------------------------------------------------------------------------
Loaded suite .
Started
....F.........F..............................

Finished in 0.431199 seconds.

  1) Failure:
test_broadcast_startup_message(TestGdkDisplay)
[/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:27]:
Exception raised:
Class: <NoMethodError>
Message: <"undefined method `broadcast_startup_message' for
#<Gdk::DisplayX11:0xb7449a00 ptr=0x9f5d0c8>">
---Backtrace---
/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:28:in
`test_broadcast_startup_message'
/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:27:in
`test_broadcast_startup_message'
---------------

  2) Failure:
test_program_name(TestGtkAboutDialog)
[/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gtk_about_dialog.rb:10]:
<"run-test.rb"> expected but was
<"ruby">.

45 tests, 89 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions,
0 notifications
--------------------------------------------------------------------------------

Other modules are OK
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-05-27 12:59
(Received via mailing list)
Hi,

I've also run the test suite, but complete. All parts build and
installed successfully.

I got several unicode conversion errors, which are not popped up in
Pascals test, as this tests are skipped if the libuconv is not
installed.


To the poppler/test/test_page.rb that reports

  1) Omission: We doesn't have a PDF that has a thumbnail...

I've tested the thumbnail extraction with poppler and Gdk::Pixbuf on
many documents and it works well. An example you can download here
http://www.datasheetdir.com/go/-xxx-x-lcvb.pdf . It contains thumbnails
for six pages. May be we should just drop this test (it works) if no one
can provide a free test PDF.

Cheers, detlef



/usr/bin/ruby1.8 run-test.rb
Wed May 27 03:25:38 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib
--------------------------------------------------------------------------------
Loaded suite test
Started
.........../home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_iochannel.rb:
line 39 GLib-CRITICAL **:g_io_channel_read_to_end: assertion
`channel->is_readable'
failed
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_iochannel.rb:
line 54 GLib-CRITICAL **:g_io_channel_read_to_end: assertion
`channel->is_readable'
failed
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_iochannel.rb:
line 59 GLib-WARNING **:Invalid file descriptor.

........................EF....................F.......FFFF.....F...F
F........O...

Finished in 0.905522 seconds.

  1) Error:
test_ucs4_to_utf16(TestGLibUnicode):
GLib::ConvertError: Character out of range for UTF-16
    /home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:321:in
`to_utf16'
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:321:in
`test_ucs4_to_utf16'

  2) Failure:
test_ucs4_to_utf8(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:330]:
<"あいうえお"> expected but was 
<"������������������������������">.

  3) Failure:
test_unichar_to_utf8(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:336]:
<"あ"> expected but was <"������">.

  4) Failure:
test_unicode_canonical_decomposition(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:170]:
<"a\000\000\000\001\003\000\000"> expected but was <"\000\000\000a\000
\000\003\001">.

  5) Failure:
test_unicode_canonical_ordering(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:162]:
<"a\000\000\000#\003\000\000\b\003\000\000e\000\000\000#\003\000\000\004
\003\000\000\001\003\000\000"> expected but was <"a\000\000\000\b\003
\000\000#\003\000\000e\000\000\000\004\003\000\000\001\003\000\000#\003
\000\000">.

  6) Failure:
test_utf16_to_ucs4(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:307]:
<"B0\000\000D0\000\000F0\000\000H0\000\000J0\000\000"> expected but was
<"\000\000B0\000\000D0\000\000F0\000\000H0\000\000J0">.

diff:
- B0D0F0H0J0
?                   --
+ B0D0F0H0J0
? ++

  7) Failure:
test_utf16_to_utf8(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:313]:
<"あいうえお"> expected but was <"䈰䐰䘰䠰䨰">.

  8) Failure:
test_utf8_get_char(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:194]:
<1110441984> expected but was <12354>.

  9) Failure:
test_utf8_to_ucs4(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:294]:
<"B0\000\000D0\000\000F0\000\000H0\000\000J0\000\000"> expected but was
<"\000\0000B\000\0000D\000\0000F\000\0000H\000\0000J">.

 10) Failure:
test_utf8_to_utf16(TestGLibUnicode)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:288]:
<"B0D0F0H0J0"> expected but was <"0B0D0F0H0J">.

diff:
- B0D0F0H0J0
?          -
+ 0B0D0F0H0J
? +

 11) Omission: Only for Win32 platform
test_get_package_install_directory_of_module(TestGLibWin32)
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/glib-test-utils.rb:10:in
`only_win32'
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_win32.rb:7:in
`test_get_package_install_directory_of_module'

92 tests, 321 assertions, 9 failures, 1 errors, 0 pendings, 1
omissions, 0 notifications
--------------------------------------------------------------------------------
Wed May 27 03:25:40 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk
--------------------------------------------------------------------------------
Loaded suite .
Started
....F.........F..............................

Finished in 1.010254 seconds.

  1) Failure:
test_broadcast_startup_message(TestGdkDisplay)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test_gdk_display.rb:27]:
Exception raised: Class: <NoMethodError>
Message: <"undefined method `broadcast_startup_message' for
#<Gdk::DisplayX11:0x486ba300 ptr=0x10210080>">
---Backtrace---
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test_gdk_display.rb:28:in
`test_broadcast_startup_message'
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test_gdk_display.rb:27:in
`test_broadcast_startup_message'
---------------

  2) Failure:
test_program_name(TestGtkAboutDialog)
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test_gtk_about_dialog.rb:10]:
<"run-test.rb"> expected but was <"ruby1.8">.

45 tests, 89 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions,
0 notifications
--------------------------------------------------------------------------------
Wed May 27 03:25:43 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtkmozembed
--------------------------------------------------------------------------------
Loaded suite .
Started
..

Finished in 0.011747 seconds.

2 tests, 23 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions,
0 notifications
--------------------------------------------------------------------------------
Wed May 27 03:25:46 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtksourceview2
--------------------------------------------------------------------------------
Loaded suite .
Started
.

Finished in 0.069847 seconds.

1 tests, 3 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications
--------------------------------------------------------------------------------
Wed May 27 03:25:48 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gstreamer
--------------------------------------------------------------------------------
Loaded suite .
Started
....................................F.....P....................................
.................................

Finished in 12,114583 seconds.

  1) Failure:
test_create_clock(TestClock) [./test/test_clock.rb:3]:
<TypeError> exception expected but none was thrown.

  2) Pending: Async is correct behavior?
test_state(TestElement)
./test/test_element.rb:60:in `test_state'

112 tests, 282 assertions, 1 failures, 0 errors, 1 pendings, 0
omissions, 0 notifications
--------------------------------------------------------------------------------
Wed May 27 03:26:01 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/pango
--------------------------------------------------------------------------------
Loaded suite .
Started
F...

Finished in 0.142499 seconds.

  1) Failure:
test_end_index(TestAttribute) [./test/test-attribute.rb:15]:
<-1> expected but was
<4294967295>.

4 tests, 7 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0
notifications
--------------------------------------------------------------------------------
Wed May 27 03:26:03 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/poppler
--------------------------------------------------------------------------------
Loaded suite .
Started
...........................O

Finished in 1.396346 seconds.

  1) Omission: We doesn't have a PDF that has a thumbnail...
test_thumbnail_pixbuf(TestPage)
./test/test_page.rb:40:in `test_thumbnail_pixbuf'

28 tests, 57 assertions, 0 failures, 0 errors, 0 pendings, 1 omissions,
0 notifications
--------------------------------------------------------------------------------
Wed May 27 03:26:12 +0200 2009 running test
for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gnomeprint
--------------------------------------------------------------------------------
Loaded suite .
Started
../test/test_context.rb: line 16
   GnomePrint-CRITICAL **:gnome_print_lineto: assertion `pc->haspage'
failed ./test/test_context.rb: line 22
   GnomePrint-CRITICAL **:gnome_print_lineto: assertion
`gp_gc_has_currentpoint (pc->gc)' failed ..

Finished in 0.126727 seconds.

3 tests, 11 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions,
0 notifications
--------------------------------------------------------------------------------

--
http://det.cable.nu
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-27 13:57
(Received via mailing list)
Hi,

2009/5/26 Pascal Terjan <pterjan@linuxfr.org>:
>
> I also built all except gtkmozembed using generated
> ruby-gnome2-all-0.19.0.tar.gz

Thanks for confirming.

>
>  1) Error:
> test_get_image(TestPage):
> NoMethodError: undefined method `get_image' for
> #<Poppler::Page:0xb65c52e0 ptr=0x85c2400>
>    ./test/test_page.rb:6:in `test_get_image'

This test requires cairo supported Ruby/Poppler.
We should check Ruby/Poppler supports cairo with
Poppler.cairo_available?
If you can, could you fix the test to work on non cairo supported
Ruby/Poppler
environment too.

> --------------------------------------------------------------------------------
> Tue May 26 14:33:06 +0200 2009 running test
> for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/pango
> --------------------------------------------------------------------------------

>  1) Failure:
> test_end_index(TestAttribute) [./test/test-attribute.rb:15]:
> <-1> expected but was
> <4294967295>.

This will be fixed with your patch.

> --------------------------------------------------------------------------------
> Tue May 26 14:33:06 +0200 2009 running test
> for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk
> --------------------------------------------------------------------------------

>  1) Failure:
> test_broadcast_startup_message(TestGdkDisplay)
> [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:27]:
> Exception raised:
> Class: <NoMethodError>
> Message: <"undefined method `broadcast_startup_message' for
> #<Gdk::DisplayX11:0xb7449a00 ptr=0x9f5d0c8>">
> ---Backtrace---
> /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:28:in 
`test_broadcast_startup_message'
> /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:27:in 
`test_broadcast_startup_message'

Ah. This test requires GLib fix.
I submitted a patch for that but it doesn't checked yet.
http://bugzilla.gnome.org/show_bug.cgi?id=528020

We can omit the test. Could you add omit(...) in the test?

>  2) Failure:
> test_program_name(TestGtkAboutDialog)
> [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gtk_about_dialog.rb:10]:
> <"run-test.rb"> expected but was
> <"ruby">.

This test will work well with "cd gtk && test/run-test.rb".


Thanks,
--
kou
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-27 15:02
(Received via mailing list)
Hi,

2009/5/27 Detlef Reichl <detlef.reichl@gmx.org>:

> I've also run the test suite, but complete. All parts build and
> installed successfully.

Thanks for confirming!

> I got several unicode conversion errors, which are not popped up in
> Pascals test, as this tests are skipped if the libuconv is not
> installed.

It seems that endian is different.

> To the poppler/test/test_page.rb that reports
>
>  1) Omission: We doesn't have a PDF that has a thumbnail...
>
> I've tested the thumbnail extraction with poppler and Gdk::Pixbuf on
> many documents and it works well. An example you can download here
> http://www.datasheetdir.com/go/-xxx-x-lcvb.pdf . It contains thumbnails
> for six pages. May be we should just drop this test (it works) if no one
> can provide a free test PDF.

Does someone have a free test PDF?
If nobody have it, I'll ask Calros, the maintainer of Poppler glib
bindings,
about it later.

Thanks,
--
kou
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-05-27 15:22
(Received via mailing list)
Hi,

Kouhei Sutou schrieb:

> Hi,
>
> 2009/5/27 Detlef Reichl <detlef.reichl@gmx.org>:
>
> > I got several unicode conversion errors, which are not popped up in
> > Pascals test, as this tests are skipped if the libuconv is not
> > installed.
>
> It seems that endian is different.

My dev computer is a PowerPc mac (big-enidan)


[copied from other mail]

>  1) Error:
> test_get_image(TestPage):
> NoMethodError: undefined method `get_image' for
> #<Poppler::Page:0xb65c52e0 ptr=0x85c2400>
>    ./test/test_page.rb:6:in `test_get_image'

This test requires cairo supported Ruby/Poppler.
We should check Ruby/Poppler supports cairo with
Poppler.cairo_available? If you can, could you fix the test to work on
non cairo supported Ruby/Poppler environment too.



Because I am not in this test stuff and can't really test cause I have
cairo installed, short question: OK to commit?


ruby-gnome2/poppler/test/test_page.rb
ruby-gnome2-dev/poppler/test/test_page.rb
--- ruby-gnome2/poppler/test/test_page.rb  2009-05-27
15:11:27.000000000 +0200 +++
ruby-gnome2-dev/poppler/test/test_page.rb  2009-05-23
03:36:31.000000000 +0200 @@ -2,7 +2,7 @@ def test_get_image
     document = Poppler::Document.new(image_pdf)
     page, mapping = find_first_image_mapping(document)
-    if later_version?(0, 7, 2) and Poppler.cairo__available?
+    if later_version?(0, 7, 2)
       assert_kind_of(Cairo::ImageSurface, page.get_image
(mapping.image_id)) assert_kind_of(Cairo::ImageSurface, mapping.image)
     else


Cheers, detlef

--
http://det.cable.nu
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-27 16:16
(Received via mailing list)
Hi,

2009/5/27 Detlef Reichl <detlef.reichl@gmx.org>:

>> > I got several unicode conversion errors, which are not popped up in
>> > Pascals test, as this tests are skipped if the libuconv is not
>> > installed.
>>
>> It seems that endian is different.
>
> My dev computer is a PowerPc mac (big-enidan)

OK. Maybe uconv doesn't support big-endian.
We should use NKF.nkf instead of uconv.
e.g.
  Uconv.u8tou4 -> NKF.nkf("-W -w16B", string) on big-endian
  Uconv.u8tou4 -> NKF.nkf("-W -w16L", string) on little-endian

> Because I am not in this test stuff and can't really test cause I have
> cairo installed, short question: OK to commit?

It seems that two "_" exists. (typo?)
Others are OK for me.

>       assert_kind_of(Cairo::ImageSurface, page.get_image
> (mapping.image_id)) assert_kind_of(Cairo::ImageSurface, mapping.image)
>     else


Thanks,
--
kou
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-05-27 16:36
(Received via mailing list)
Hi,

Kouhei Sutou schrieb:

> It seems that two "_" exists. (typo?)

*outch* thanks for pointing this out!

Cheer, detlef

--
http://det.cable.nu
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-27 17:21
(Received via mailing list)
Le mercredi 27 mai 2009 à 20:56 +0900, Kouhei Sutou a écrit :
>
> Ah. This test requires GLib fix.
> I submitted a patch for that but it doesn't checked yet.
> http://bugzilla.gnome.org/show_bug.cgi?id=528020
>
> We can omit the test. Could you add omit(...) in the test?

Done

> >  2) Failure:
> > test_program_name(TestGtkAboutDialog)
> > [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gtk_about_dialog.rb:10]:
> > <"run-test.rb"> expected but was
> > <"ruby">.
>
> This test will work well with "cd gtk && test/run-test.rb".

hmm no it does not, I still get "ruby"
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-05-28 01:07
(Received via mailing list)
Hi,

Pascal Terjan schrieb:

> > >  2) Failure:
> > > test_program_name(TestGtkAboutDialog)
> > > [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gtk_about_dialog.rb:10]:
> > > <"run-test.rb"> expected but was
> > > <"ruby">.
> >
> > This test will work well with "cd gtk && test/run-test.rb".
>
> hmm no it does not, I still get "ruby"

this comes from gtk/src/gtkmain.c in the gtk_m_init function. There is
the following code block:


    gargv = ALLOCA_N(char *, gargc + 1);
    gargv[0] = RVAL2CSTR(rb_argv0);

    for (i = 0; i < gargc; i++) {
        if (TYPE(RARRAY_PTR(argary)[i]) == T_STRING) {
            gargv[i+1] = RVAL2CSTR(RARRAY_PTR(argary)[i]);
        }
        else {
            gargv[i+1] = "";
        }
    }
8<----------snip----------
    is_initialized = gtk_init_check(&gargc, &gargv);


The value of rb_argv0 is pushed in the first position of the parameters
of the gtk_init_check call. At this point rb_argv0 is "ruby".

If my traces are right, the gtk_m_init function is the first function in
ruby-gtks code space. So, for me, the rb_argv0 value seems unusable for
this task. AFAIK $0 always contains the programs name. So with this
little patch we get, what we expect.


--- ruby-gnome2/gtk/src/rbgtkmain.c  2009-05-27
22:36:18.000000000 +0200 +++ ruby-gnome2-dev/gtk/src/rbgtkmain.c
2009-05-28 00:44:50.000000000 +0200 @@ -93,6 +93,7 @@
     gint i, gargc;
     VALUE argary;
     gchar** gargv;
+    VALUE progname;

     if (_initialized)
         return self;
@@ -108,9 +109,10 @@
         Check_Type(argary, T_ARRAY);
         gargc = RARRAY_LEN(argary);
     }
-
+
     gargv = ALLOCA_N(char *, gargc + 1);
-    gargv[0] = RVAL2CSTR(rb_argv0);
+    progname = rb_eval_string("$0");
+    gargv[0] = RVAL2CSTR(progname);

     for (i = 0; i < gargc; i++) {
         if (TYPE(RARRAY_PTR(argary)[i]) == T_STRING) {


I know, that the use of rb_eval_string may not be the right(tm) way,
but I don't wanted to bother with this strange func pointers for hooked
variables. If someone wants to change this: feel free to do so.

Cheers, detlef

--
http://det.cable.nu
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-28 16:16
(Received via mailing list)
Hi,

2009/5/28 Pascal Terjan <pterjan@linuxfr.org>:
>> > /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:27:in 
`test_broadcast_startup_message'
>>
>> Ah. This test requires GLib fix.
>> I submitted a patch for that but it doesn't checked yet.
>> http://bugzilla.gnome.org/show_bug.cgi?id=528020
>>
>> We can omit the test. Could you add omit(...) in the test?
>
> Done

Thanks!

I want Pascal or Detlef to release 0.19.0. Could you release it, please?


--
kou
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-28 16:17
(Received via mailing list)
Hi,

2009/5/28 Detlef Reichl <detlef.reichl@gmx.org>:

>         Check_Type(argary, T_ARRAY);
>         if (TYPE(RARRAY_PTR(argary)[i]) == T_STRING) {
>
>
> I know, that the use of rb_eval_string may not be the right(tm) way,
> but I don't wanted to bother with this strange func pointers for hooked
> variables. If someone wants to change this: feel free to do so.

You can use rb_gv_get("$0").


Thanks,
--
kou
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-05-29 00:26
(Received via mailing list)
Hi,

Kouhei Sutou schrieb:

> You can use rb_gv_get("$0").

thanks, I didn't knew this function.

A grep over the sources shows, that rb_argv0 is used in several other
places as the program name, too. May be they also need to be fixed.

If no one is faster than me (*wink* ;-) ) I will take a look at it in
the next week.

Cheers, detlef

--
http://det.cable.nu
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-05-29 01:20
(Received via mailing list)
Hi,


Kouhei Sutou schrieb:

>
> I want Pascal or Detlef to release 0.19.0. Could you release it, please?

I'm very sorry, but the time I can spend for ruby-gnome until next
Monday goes straight to zero. The only thing, I will commit the program
name fix in the next few minutes.

Cheers, detlef

--
http://det.cable.nu
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-29 01:43
(Received via mailing list)
Le jeudi 28 mai 2009 à 23:21 +0200, Detlef Reichl a écrit :
> name fix in the next few minutes.
I can't do it tonight but will try tomorrow
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-29 12:00
(Received via mailing list)
Le jeudi 28 mai 2009 à 23:27 +0200, Pascal Terjan a écrit :
> > Monday goes straight to zero. The only thing, I will commit the program
> > name fix in the next few minutes.
>
> I can't do it tonight but will try tomorrow
>

I guess I'm not allowed to do so, rake release fails :

misc/release.rb:77:in `find_target_release_link': can't find package ID
(RuntimeError)
  from misc/release.rb:98:in `go_edit_release_page'

And I don't see any link on the webpage to manage the files
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-29 16:16
(Received via mailing list)
Hi,

In <1243591164.12871.1.camel@plop>
  "Re: [ruby-gnome2-devel-en] 0.19" on Fri, 29 May 2009 11:59:23 +0200,
  Pascal Terjan <pterjan@linuxfr.org> wrote:

> I guess I'm not allowed to do so, rake release fails :
>
> misc/release.rb:77:in `find_target_release_link': can't find package ID
> (RuntimeError)
>   from misc/release.rb:98:in `go_edit_release_page'
>
> And I don't see any link on the webpage to manage the files

I'm sorry. I've update your permission.
Please try again!


Thanks,
--
kou
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-29 17:09
(Received via mailing list)
Le vendredi 29 mai 2009 à 22:51 +0900, Kouhei Sutou a écrit :
> >   from misc/release.rb:98:in `go_edit_release_page'
> >
> > And I don't see any link on the webpage to manage the files
>
> I'm sorry. I've update your permission.
> Please try again!

rake release failed on submitting news :

misc/release.rb:207:in `submit_news': undefined method `summary=' for
nil:NilClass (NoMethodError)
  from misc/release.rb:235:in `main'
  from misc/release.rb:239
rake aborted!

The tarballs are however available and checked and the release is tagged

I will update the wiki later and post a real announce here (except if
someone want to do it before :) )
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-29 17:19
(Received via mailing list)
Hi,

In <1243609697.12871.8.camel@plop>
  "Re: [ruby-gnome2-devel-en] 0.19" on Fri, 29 May 2009 17:08:17 +0200,
  Pascal Terjan <pterjan@linuxfr.org> wrote:

>> > (RuntimeError)
> nil:NilClass (NoMethodError)
>   from misc/release.rb:235:in `main'
>   from misc/release.rb:239
> rake aborted!

Could you submit news by hand?

> The tarballs are however available and checked and the release is tagged

Thanks!

> I will update the wiki later and post a real announce here (except if
> someone want to do it before :) )

And could you update NEWS file? It has place holders,
2009-XX-XX and WRITE ME.


Thanks,
--
kou
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-29 17:35
(Received via mailing list)
Le samedi 30 mai 2009 à 00:19 +0900, Kouhei Sutou a écrit :
> >>   "Re: [ruby-gnome2-devel-en] 0.19" on Fri, 29 May 2009 11:59:23 +0200,
> >> I'm sorry. I've update your permission.
> Could you submit news by hand?
I don't find where to do that on the website

> > The tarballs are however available and checked and the release is tagged
>
> Thanks!
>
> > I will update the wiki later and post a real announce here (except if
> > someone want to do it before :) )
>
> And could you update NEWS file? It has place holders,
> 2009-XX-XX and WRITE ME.

Hmm I committed this before upload if I'm not wrong
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-29 17:41
(Received via mailing list)
Hi,

In <1243611228.12871.9.camel@plop>
  "Re: [ruby-gnome2-devel-en] 0.19" on Fri, 29 May 2009 17:33:47 +0200,
  Pascal Terjan <pterjan@linuxfr.org> wrote:

> I don't find where to do that on the website

Ah, sorry. It's my problem. I've updated your permission.

>> > I will update the wiki later and post a real announce here (except if
>> > someone want to do it before :) )
>>
>> And could you update NEWS file? It has place holders,
>> 2009-XX-XX and WRITE ME.
>
> Hmm I committed this before upload if I'm not wrong

It's OK for this release.
Could you update it in just trunk?


Thanks,
--
kou
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2009-05-31 21:16
Any news on that? I am waiting happily for a new release :-)
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-06-01 11:19
(Received via mailing list)
Hi,

Marc Heiler schrieb:

> Any news on that? I am waiting happily for a new release :-)

It's already out since 2009-05-29. Only the news on the main page are
not updated till now.

Cheers, detlef

--
http://det.cable.nu
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2009-06-01 15:08
> It's already out since 2009-05-29. Only the news on the main page are
> not updated till now.


Thanks for the information!
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-06-02 14:55
(Received via mailing list)
Hi,

In <20090601111900.fef0bb71.detlef.reichl@gmx.org>
  "Re: [ruby-gnome2-devel-en] 0.19" on Mon, 1 Jun 2009 11:19:00 +0200,
  Detlef Reichl <detlef.reichl@gmx.org> wrote:

>> Any news on that? I am waiting happily for a new release :-)
>
> It's already out since 2009-05-29. Only the news on the main page are
> not updated till now.

Pascal, could you announce your great work? :-)


Thanks,
--
kou
4913bcb685792f601ae9813b4713abb9?d=identicon&s=25 Detlef Reichl (Guest)
on 2009-06-02 16:26
(Received via mailing list)
Hi,

Detlef Reichl schrieb:

> A grep over the sources shows, that rb_argv0 is used in several other
> places as the program name, too. May be they also need to be fixed.

I've done this for gnome, libgda, bonobo and panel-applet.

For gstreamer, which also uses rb_argv0 I'm not sure. I found nothing
in the docs of gstreamer nor in the sources, that the programs name is
used. Is it?

Cheers, detlef

--
http://det.cable.nu
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-06-03 14:55
(Received via mailing list)
Le mardi 02 juin 2009 à 21:56 +0900, Kouhei Sutou a écrit :
>
> Pascal, could you announce your great work? :-)
>

Do you know how does the news part of the wiki work ?
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-06-03 15:01
(Received via mailing list)
Hi,

In <1244033688.2481.48.camel@plop>
  "Re: [ruby-gnome2-devel-en] 0.19" on Wed, 03 Jun 2009 14:54:48 +0200,
  Pascal Terjan <pterjan@linuxfr.org> wrote:

>> > It's already out since 2009-05-29. Only the news on the main page are
>> > not updated till now.
>>
>> Pascal, could you announce your great work? :-)
>>
>
> Do you know how does the news part of the wiki work ?

You can post a news from here:
  http://ruby-gnome2.sourceforge.jp/hiki.cgi?create_news

ref.:
  https://sourceforge.net/mailarchive/forum.php?thre...


Thanks,
--
kou
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-06-03 15:03
(Received via mailing list)
Le mercredi 03 juin 2009 à 22:02 +0900, Kouhei Sutou a écrit :
> >>
> >
> > Do you know how does the news part of the wiki work ?
>
> You can post a news from here:
>   http://ruby-gnome2.sourceforge.jp/hiki.cgi?create_news
>
> ref.:
> 
https://sourceforge.net/mailarchive/forum.php?thre...

Oh sorry I had missed that message
Thank you for the explanation
This topic is locked and can not be replied to.