diff options
| author | Max Howell | 2010-05-10 00:19:14 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:04 -0800 |
| commit | d5f1787f64767cc992ea6b4d41707acd0f8aeb3a (patch) | |
| tree | 311c91b33e1f02767a30d3fc97c6d8b36ae1d209 /Library/Homebrew/install.rb | |
| parent | d3b41f29e190c0c13c0ec80b59c56a0dcfe4666c (diff) | |
| download | homebrew-d5f1787f64767cc992ea6b4d41707acd0f8aeb3a.tar.bz2 | |
A install name fix step during install
We currently only fix relative paths, but we should expand this more.
Diffstat (limited to 'Library/Homebrew/install.rb')
| -rwxr-xr-x | Library/Homebrew/install.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 880d9081f..b7de5df10 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -120,6 +120,18 @@ def install f ohai 'Finishing up' if ARGV.verbose? + keg = Keg.new f.prefix + + begin + keg.fix_install_names + rescue Exception => e + onoe "Failed to fix install names" + puts "The formula built, but you may encounter issues using it or linking other" + puts "formula against it." + ohai e, e.backtrace if ARGV.debug? + show_summary_heading = true + end + begin require 'cleaner' Cleaner.new f @@ -177,10 +189,10 @@ def install f # link from Cellar to Prefix begin - Keg.new(f.prefix).link + keg.link rescue Exception => e onoe "The linking step did not complete successfully" - puts "The package built, but is not symlinked into #{HOMEBREW_PREFIX}" + puts "The formula built, but is not symlinked into #{HOMEBREW_PREFIX}" puts "You can try again using `brew link #{f.name}'" if ARGV.debug? ohai e, e.backtrace |
