Bug #1504
closedinstalled ri docu is not where ri actually searches when compiled with program-suffix
Description
=begin
when I updated to the latest patch version I noticed that ri isn't working anymore.
I'm installing with program-suffix:
./configure --enable-shared --enable-pthread --prefix=/usr --program-suffix=19
make
make install
make install-doc
All binaries get installed with program-suffix "19" in /usr/bin/
the lib directory is also suffixed: /usr/lib/ruby19/1.9.1
but the ri directory isn't: /usr/share/ri/1.9.1
in instruby.rb on line 286 the install dir is defined this way:
ridatadir = File.join(CONFIG['datadir'], "ri", CONFIG['ruby_version'], "system")
in /usr/lib/ruby19/1.9.1/rdoc/ri/paths.rb the doc dir is build like this (around line 31):
if m = /ruby/.match(RbConfig::CONFIG['RUBY_INSTALL_NAME'])
m = [m.pre_match, m.post_match]
else
m = [""] * 2
end
ri = "#{m[0]}ri#{m[1]}"
base = File.join(RbConfig::CONFIG['datadir'], ri, VERSION)
so it searches for /usr/share/ri19/1.9.1
maybe instruby.rb should be patched to include prefixes/suffixes to binaries/directories as well.
(I'm on Arch Linux, using [and maintaining] the ruby19 package: http://aur.archlinux.org/packages.php?ID=23973)
=end