Project

General

Profile

Actions

Bug #1504

closed

installed ri docu is not where ri actually searches when compiled with program-suffix

Bug #1504: installed ri docu is not where ri actually searches when compiled with program-suffix

Added by badboy (Jan-Erik R.) almost 17 years ago. Updated almost 15 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]
Backport:

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

Actions

Also available in: PDF Atom