From acd913593a8a234bcc7d6c4e24c66f7bd62731d7 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 11 Sep 2009 11:10:20 -0500 Subject: [PATCH] Clear CDPATH to avoid make issues that depend on changing directories --- Library/Homebrew/brewkit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index f41a16f41d..41422ed9e2 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -179,6 +179,8 @@ paths=ENV['PATH'].split(':').reject do |p| end ENV['PATH']=paths*':' +# Clear CDPATH to avoid make issues that depend on changing directories +ENV.delete('CDPATH') def inreplace(path, before, after) before=Regexp.escape before.to_s