aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb6
-rw-r--r--Library/Homebrew/formula_installer.rb7
-rw-r--r--Library/Homebrew/requirements/cctools_requirement.rb4
3 files changed, 10 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index b2f1f195d..fa9507fb3 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -122,13 +122,13 @@ module Homebrew
end
def check_xcode
- # TODO: reinstate check_for_bad_install_name_tool
+ # TODO: reinstate check_for_bad_install_name_tool and check_for_installed_developer_tools
# currently check_for_bad_install_name_tool fails because it tries to call
# the /usr/bin/otool stub program on systems without XCode/CLT
+ # check_for_installed_developer_tools doesn't fail, but produces a warning
+ # when one is no longer required
checks = Checks.new
%w[
- check_for_unsupported_osx
- check_for_installed_developer_tools
check_xcode_license_approved
check_for_osx_gcc_installer
].each do |check|
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index ed02abb9a..8377e25f6 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -13,6 +13,7 @@ require "cmd/postinstall"
require "hooks/bottles"
require "debrew"
require "sandbox"
+require "requirements/cctools_requirement"
class FormulaInstaller
include FormulaCellarChecks
@@ -328,8 +329,10 @@ class FormulaInstaller
end
def install_relocation_tools
- ohai "placeholder"
- true
+ cctools = CctoolsRequirement.new
+ return if cctools.satisfied?
+
+ install_dependency(cctools.to_dependency, inherited_options_for(cctools))
end
class DependencyInstaller < FormulaInstaller
diff --git a/Library/Homebrew/requirements/cctools_requirement.rb b/Library/Homebrew/requirements/cctools_requirement.rb
index a9f807d74..37be3207b 100644
--- a/Library/Homebrew/requirements/cctools_requirement.rb
+++ b/Library/Homebrew/requirements/cctools_requirement.rb
@@ -2,7 +2,7 @@ class CctoolsRequirement < Requirement
fatal true
default_formula 'cctools'
- satisfy do
- MacOS::XCode.installed? || MacOS::CLT.installed?
+ satisfy(:build_env => false) do
+ MacOS::Xcode.installed? || MacOS::CLT.installed? || Formula['cctools'].installed?
end
end