diff options
| author | Max Howell | 2011-09-01 12:08:30 +0100 |
|---|---|---|
| committer | Max Howell | 2011-09-01 12:08:30 +0100 |
| commit | 1c28de653805994814937c5e1b1aa4932134c731 (patch) | |
| tree | acb3b7d03daa2630c37837f605d52d62e7ad03a2 /Library | |
| parent | a27eda9df21ec4fa8950ab5247ba8b0f21e1eb33 (diff) | |
| download | brew-1c28de653805994814937c5e1b1aa4932134c731.tar.bz2 | |
Use fullpaths to file and strip
Fixes Homebrew/homebrew#7353.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cleaner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index 070f35b81..45f3d69b9 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -30,7 +30,7 @@ class Cleaner puts "strip #{path}" if ARGV.verbose? path.chmod 0644 # so we can strip unless path.stat.nlink > 1 - system "strip", *(args+path) + system "/usr/bin/strip", *(args+path) else path = path.to_s.gsub ' ', '\\ ' @@ -48,7 +48,7 @@ class Cleaner def clean_file path perms = 0444 - case `file -h '#{path}'` + case `/usr/bin/file -h '#{path}'` when /Mach-O dynamically linked shared library/ # Stripping libraries is causing no end of trouble. Lets just give up, # and try to do it manually in instances where it makes sense. |
