Commit b002d92c authored by Dirkjan Bussink's avatar Dirkjan Bussink
Browse files

Don't set the Rubinius gems directory to the prefix

This causes tricky issues with Bundler. Bundler assumes that the
configure gem path *only* contains gems. When using this configuration
option, this is not the case.

What happens is that Bundler then removes the path for the Ruby stdlib
from the load path, because it is located inside what is configured as
the gems directory. This then breaks for example Rails applications when
using ruby-build to build Rubinius.

Also see: https://github.com/rubinius/rubinius/issues/2544
parent e19a1248
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ build_package_ree_installer() {
build_package_rbx() {
  local package_name="$1"

  { ./configure --prefix="$PREFIX_PATH" --gemsdir="$PREFIX_PATH" $RUBY_CONFIGURE_OPTS
  { ./configure --prefix="$PREFIX_PATH" $RUBY_CONFIGURE_OPTS
    rake install
  } >&4 2>&1
}