From 686f727f947a84784861bd3b027f663eb8f63544 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 1 Sep 2011 12:08:30 +0100 Subject: Use fullpaths to file and strip Fixes #7353.--- Library/Homebrew/cleaner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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. -- cgit v1.2.3