From c076a272eeefba3b5425eb6f651997cd2eb6e4e9 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 24 Sep 2012 09:46:42 -0400 Subject: [PATCH] Work even when RUBYLIB='-' Apparently setting RUBYLIB to '-' causes the library path to be unset. So we need to set our own library path in our scripts. Fixes Homebrew/homebrew-versions/#47. --- Library/ENV/libsuperenv.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/ENV/libsuperenv.rb b/Library/ENV/libsuperenv.rb index 48093cc9b2..8b38156c48 100644 --- a/Library/ENV/libsuperenv.rb +++ b/Library/ENV/libsuperenv.rb @@ -1,6 +1,9 @@ # Yes, a good deal of this could be imported from Homebrew-proper # But Homebrew-proper is dog-slow currently, and I didn't want every cc -# instantiation to be slower be a tangible amount. +# instantiation to be slower by a tangible amount. + +# https://github.com/Homebrew/homebrew-versions/issues/47 +$:.unshift "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8" class String def directory?; File.directory? self end