From b6729191fa62f3ebed6aba8935255f2a4f9b42a0 Mon Sep 17 00:00:00 2001 From: Josh Bode Date: Wed, 13 Jan 2016 00:27:32 -0500 Subject: [PATCH] diagnostic: update check for findutils. Check for non-prefixed findutils in path via gnubin symlinks or directly Closes Homebrew/homebrew#46987. Signed-off-by: Mike McQuaid --- Library/Homebrew/diagnostic.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 47057d6626..6b8330f231 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -1205,8 +1205,9 @@ module Homebrew end def check_for_non_prefixed_findutils + gnubin = "#{Formulary.factory("findutils").prefix}/libexec/gnubin" default_names = Tab.for_name("findutils").with? "default-names" - if default_names then <<-EOS.undent + if paths.include?(gnubin) || default_names then <<-EOS.undent Putting non-prefixed findutils in your path can cause python builds to fail. EOS end