Backport #7115

[[Ruby 1.9:]] fix rbconfig for --enable-load-relative

Added by Michal Papis over 1 year ago. Updated over 1 year ago.

[ruby-core:47866]
Status:Closed
Priority:Normal
Assignee:Usaku NAKAMURA

Description

continuation of http://bugs.ruby-lang.org/issues/6903

I have prepared a patch that:

  • fixes detection of lib64
  • replaces all occurrences of /prefix/ with "$(prefix)"

So ruby after allocation is still functional, including relative paths for compilation gem native extensions.

https://github.com/wayneeseguin/rvm/blob/master/patches/ruby/1.9.3/ruby-multilib.patch#L64-102


Related issues

Related to ruby-trunk - Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2) Closed 10/16/2012

Associated revisions

Revision 37155
Added by Usaku NAKAMURA over 1 year ago

merge revision(s) 36847,36873: [Backport #7115]

* configure.in (LIBDIR_BASENAME): use configured libdir value to fix
  --enable-load-relative on systems where libdir is not default value,
  overridden in config.site files.   [Bug #6903]

* ruby.c (ruby_init_loadpath_safe): ditto.

History

#1 Updated by Nobuyoshi Nakada over 1 year ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport93
  • Status changed from Open to Assigned
  • Assignee set to Usaku NAKAMURA

#2 Updated by Usaku NAKAMURA over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37155.
Michal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 36847,36873: [Backport #7115]

* configure.in (LIBDIR_BASENAME): use configured libdir value to fix
  --enable-load-relative on systems where libdir is not default value,
  overridden in config.site files.   [Bug #6903]

* ruby.c (ruby_init_loadpath_safe): ditto.

Also available in: Atom PDF