From 1c28de653805994814937c5e1b1aa4932134c731 Mon Sep 17 00:00:00 2001 From: Max Howell <max@methylblue.com> Date: Thu, 1 Sep 2011 12:08:30 +0100 Subject: [PATCH] Use fullpaths to file and strip Fixes Homebrew/homebrew#7353. --- Library/Homebrew/cleaner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index 070f35b811..45f3d69b91 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. -- GitLab