lib64.patch 947 B

1234567891011121314151617181920
  1. --- a/installer.rb
  2. +++ b/installer.rb
  3. @@ -281,7 +281,7 @@
  4. if install_autoconf_package('source', 'Ruby Enterprise Edition')
  5. # Some installed files may have wrong permissions
  6. # (not world-readable). So we fix this.
  7. - if sh("chmod -R g+r,o+r,o-w #{@destdir}#{@prefix}/lib/ruby")
  8. + if sh("chmod -R g+r,o+r,o-w #{@destdir}#{@prefix}/lib*/ruby")
  9. if @using_system_allocator_library &&
  10. !sh("install source/libsystem_allocator.dylib #{@destdir}#{@prefix}/lib/")
  11. return false
  12. @@ -307,7 +307,7 @@
  13. def install_rubygems
  14. # We might be installing into a fakeroot, so add the fakeroot's library
  15. # search paths to RUBYLIB so that gem installation will work.
  16. - basedir = "#{@destdir}#{@prefix}/lib/ruby"
  17. + basedir = "#{@destdir}#{@prefix}/lib*/ruby"
  18. libdir = "#{basedir}/1.8"
  19. archname = File.basename(File.dirname(Dir["#{libdir}/*/thread.#{PlatformInfo::RUBYLIBEXT}"].first))
  20. extlibdir = "#{libdir}/#{archname}"