The annoying warnings of emacs on Ubuntu 10.4:
** (emacs:23587): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed
can be fixed by modifying the following line in /usr/share/themes/Ambiance/gtk-2.0/gtkrc from:
GtkRange::trough-under-steppers = 0
to:
GtkRange::trough-under-steppers = 1
Thanks to Alf on https://bugs.launchpad.net/ubuntu/+source/light-themes/+bug/538499
Monday, June 7, 2010
Sunday, June 6, 2010
Building Ruby: readline and tk
So I installed libreadline5-dev instead of libreadline6-dev:
$ sudo apt-get remove libreadline6-dev
$ sudo apt-get install libreadline5-dev
Then ext/readline/extconf.rb seems happy:
$ cd ext/readline
$ ruby extconf.rb
checking for tgetnum() in -lncurses... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... yes
...
And, for tk support, the simplest way is to download ActiveTcl from http://www.activestate.com/activetcl/downloads and install it. ext/tk/extconf.rb looks for ActiveTcl.
$ sudo apt-get remove libreadline6-dev
$ sudo apt-get install libreadline5-dev
Then ext/readline/extconf.rb seems happy:
$ cd ext/readline
$ ruby extconf.rb
checking for tgetnum() in -lncurses... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... yes
...
And, for tk support, the simplest way is to download ActiveTcl from http://www.activestate.com/activetcl/downloads and install it. ext/tk/extconf.rb looks for ActiveTcl.
Friday, June 4, 2010
Ruby now rejects to link readline 6
It took a while for me to figure out why I can't enable readline in ruby any more.
The revision 28118 (06/01/2010) has changed readline/extconf.rb to reject readline V6.
According to ruby-core:25272, it is addressing a GPLv3 issue. Here's from the original post:
The revision 28118 (06/01/2010) has changed readline/extconf.rb to reject readline V6.
According to ruby-core:25272, it is addressing a GPLv3 issue. Here's from the original post:
Hello.
Recently readline 6.0 was released and its license was changed from GPLv2+ (GPL version 2 and any later) to GPLv3+ [1][2]
Unfortunately Ruby's license is still under GPLv2 and Ruby's original license [3], which is incompatible with GPLv3 [4]. So unless Ruby's license is changed to "GPLv2+ or Ruby's original license" or so , Ruby's readline module cannot be shipped any more. Note that "Ruby's original license" is regarded as incompatible with GPL [5].
So please change the Ruby's license to GPLv3 (and GPLv2) compat.
[1] http://tiswww.case.edu/php/chet/readline/rltop.html
[2] https://www.redhat.com/archives/fedora-devel-list/2009-July/msg00192.html
[3] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/COPYING?view=co
[4] https://fedoraproject.org/wiki/Licensing#GPL_Compatibility_Matrix
[5] https://fedoraproject.org/wiki/Licensing
Subscribe to:
Posts (Atom)