Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258243 - net-irc/weechat: ruby bindings fail with ruby 1.9 as default
Summary: net-irc/weechat: ruby bindings fail with ruby 1.9 as default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ruby19
  Show dependency tree
 
Reported: 2009-02-08 22:17 UTC by Alex Legler (RETIRED)
Modified: 2011-04-28 10:50 UTC (History)
2 users (show)

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


Attachments
propsed patch (weechat-ruby19.patch,603 bytes, patch)
2009-02-08 22:17 UTC, Alex Legler (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Legler (RETIRED) archtester gentoo-dev Security 2009-02-08 22:17:04 UTC
weechat's Ruby bindings fail to build with ruby 1.9.
Since they use the default interpreter, this can cause problems. Until upstream fixes that, it should explicitly use Ruby 1.8.

Something like the attached patch should fix that.
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-02-08 22:17:51 UTC
Created attachment 181395 [details, diff]
propsed patch
Comment 2 Tomás Touceda (RETIRED) gentoo-dev 2009-09-25 16:59:22 UTC
I can't reproduce this with weechat-0.2.6.2 and ruby-1.9.1_p243.

Is this still a bug?
Comment 3 Hans de Graaff gentoo-dev Security 2009-09-26 18:58:42 UTC
There is nothing in the Changelog of weechat to suggest that this got fixed on their end at least for any of the 0.2.6 versions, but maybe something changed on the ruby 1.9 end. Alex?
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-09-27 13:58:44 UTC
Ruby is silently ignored now...

alex@neon weechat % USE="ruby" ebuild weechat-0.2.6.2.ebuild install
...

Following components were asked but not found, they will not be built:
 ruby gnutls

Interfaces........................ : ncurses
Build with GNUtls support......... : no
Build with flock support.......... : yes
Build with Plugin support......... : yes
              Perl plugin......... : yes (5.8.8)
              Python plugin....... : yes (2.6)
              Ruby plugin......... : no 
              Lua plugin.......... : no 
              Aspell plugin....... : no
              Charset plugin...... : yes
Compile with debug info........... : no
              Backtrace........... : yes
Build doc..........................: 
Print debugging messages.......... : no

I guess they look for a versionless libruby.so which does no longer exist.
Comment 5 Hans de Graaff gentoo-dev Security 2009-10-03 09:49:46 UTC
This works fine for me with just ruby 1.8.7 installed:

Build with Plugin support......... : yes
              Perl plugin......... : yes (5.8.8)
              Python plugin....... : yes (2.6)
              Ruby plugin......... : yes (1.8)
              Lua plugin.......... : no 

Does this mean that we can close this bug since ruby 1.9 will be ignored?
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-09-19 09:56:30 UTC
This is still not resolved. We'd like to unmask ruby:1.9 in the near future.

Newer weechat packages use cmake, and my patch no longer works and I lack the cmake-fu to fix it. scarabeus, you should get the idea of the patch, can you please take care of that?
Comment 7 Daniel Anderson 2011-01-01 21:28:58 UTC
I think this issue is gone as the weechat changelog indicates Ruby >=1.9.1 support was added in 0.3.1.

Seems to build fine for me with 1.9.1p243
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-28 10:50:21 UTC
Hopefully fixed in main tree.