Bug 236072 - sci-physics/root: improve ruby bindings
Bug#: 236072 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: sci-physics@gentoo.org Reported By: benni@netronaut.de
Component: Ebuilds
URL: 
Summary: sci-physics/root: improve ruby bindings
Keywords:  
Status Whiteboard: 
Opened: 2008-08-28 22:02 0000
Description:   Opened: 2008-08-28 22:02 0000
Hi,

root offers to install ruby bindings, but they are hidden in the non-standard
location /usr/lib/root, so users need to manually updated there RUBYLIB (where
ruby searches for libraries). This is an issue similar to bug 232124.

This patch updates RUBYLIB and, since the bindings library is called libRuby,
does some patching of Makefiles and source files to get it called ROOT (so
users can "require 'ROOT'" in their ruby code).

Probably, this renaming of the library will cause some confusion, since scripts
might not run, but the old situation is rather insane.


Cheers,

Benjamin

Reproducible: Always

------- Comment #1 From Benjamin Bannier 2008-08-28 22:02:46 0000 -------
Created an attachment (id=164035) [details]
patch against main tree

------- Comment #2 From Benjamin Bannier 2008-08-29 19:20:53 0000 -------
Created an attachment (id=164082) [details]
updated patch against main tree

Hi,

I promised that renaming the library would case problems, and I just ran into
the first one: since the python and ruby modules with above patch have the same
name, python would not load it's module anymore.

I am attaching a patch that names the ruby modules ROOT_rb, a name much less
desirable than ROOT, but I still believe that a ruby module named libRuby in
the standard module load path is insane.

------- Comment #3 From Sébastien Fabbro 2008-09-23 13:05:31 0000 -------
Now in cvs. Thanks!