From 624ca35f42d0941bf6f69cac3bc16079ab10f7b1 Mon Sep 17 00:00:00 2001 From: Grant Hutchins Date: Sat, 16 Jan 2016 17:21:41 -0600 Subject: [PATCH] diagnostic: note El Capitan upgrade permissions. On all of the machines I have upgraded to OS X El Capitan, my /usr/local directory has changed ownership. Since this message shows up as an error during `brew update`, I figured it would be good to beef up the explanation. Closes Homebrew/homebrew#44670. Signed-off-by: Mike McQuaid --- Library/Homebrew/diagnostic.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 7e3c5e4912..47057d6626 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -514,9 +514,10 @@ module Homebrew unless HOMEBREW_PREFIX.writable_real? then <<-EOS.undent The /usr/local directory is not writable. Even if this directory was writable when you installed Homebrew, other - software may change permissions on this directory. Some versions of the + software may change permissions on this directory. For example, upgrading + to OS X El Capitan has been known to do this. Some versions of the "InstantOn" component of Airfoil or running Cocktail cleanup/optimizations - are known to do this. + are known to do this as well. You should probably change the ownership and permissions of /usr/local back to your user account.